Skip to content

Commit f5379c9

Browse files
Refactor GeneFinder and RBS modules by removing unused criteria and cleaning up code
1 parent b8d8eb0 commit f5379c9

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/GeneFinder.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@ using GenomicFeatures: GenomicFeatures, AbstractGenomicInterval, Strand, summary
3434
include("algorithms/naivefinder.jl")
3535
include("algorithms/naivecollector.jl")
3636

37-
# Coding Criteria
38-
include("criteria/lordr.jl")
39-
4037
# Main functions
4138
include("types.jl")
4239
include("findorfs.jl")
43-
include("iscoding.jl")
4440
include("io.jl")
4541

4642
# Utils and extended functions
@@ -50,6 +46,9 @@ include("extended.jl")
5046
# RBS Scoring
5147
include("rbs.jl")
5248

49+
# Coding Criteria
50+
include("criteria.jl")
51+
5352
# Precompiled workloads
5453
include("workload.jl")
5554

src/rbs.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export RBS, orf_rbs_score, motifseq, offset
2-
32
public _rbswindows, _findrbs
43

54
"""
@@ -81,7 +80,6 @@ const REVERSERBSMOTIFS = Dict(
8180
ExactSearchQuery(dna"TCGTC", iscompatible) => 9,
8281
)
8382

84-
8583
## based on the Prodigal paper:
8684
# Spacer Range | Representative RBS Motif(s)
8785
# ------------ | ---------------------------
@@ -142,7 +140,6 @@ function _rbswindows(orf::ORFI{N,F}) where {N,F}
142140
return filter(window -> first(window) >= 1 && last(window) >= 1, windows)
143141
end
144142

145-
146143
"""
147144
_findrbs(orf::ORFI{N,F}) where {N,F} -> Vector{RBS}
148145
@@ -196,10 +193,6 @@ function _findrbs(orf::ORFI{N,F}) where {N,F}
196193
push!(rbsvect, RBS(rbseq, offset, symbol, scr, orf.strand))
197194
end
198195
end
199-
# if occursin(rbs, sqv)
200-
# push!(rbsvect, RBS(rbs.seq, window, scr, symbol))
201-
# # score += scr # Use the value associated with the key
202-
# end
203196
end
204197
end
205198
return rbsvect

0 commit comments

Comments
 (0)