Skip to content

Commit 15b1724

Browse files
Rename orf_rbs_score function to orbs and update return type to Int64; export orbs in RBS module
1 parent f5379c9 commit 15b1724

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/rbs.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export RBS, orf_rbs_score, motifseq, offset
1+
export RBS, orf_rbs_score, orbs, motifseq, offset
22
public _rbswindows, _findrbs
33

44
"""
@@ -199,7 +199,7 @@ function _findrbs(orf::ORFI{N,F}) where {N,F}
199199
end
200200

201201
"""
202-
orf_rbs_score(orf::ORFI{N,F}) where {N,F} -> Float64
202+
orf_rbs_score(orf::ORFI{N,F}) where {N,F} -> Int64
203203
204204
Calculate a ribosome binding site (RBS) score for a given open reading frame (ORF).
205205
@@ -223,7 +223,7 @@ The function:
223223
RBS motifs and their scores are predefined in `FORWARDRBSMOTIFS` for positive strand
224224
and `REVERSERBSMOTIFS` for negative strand sequences.
225225
"""
226-
function orf_rbs_score(orf::ORFI{N,F}) where {N,F}
226+
function orbs(orf::ORFI{N,F}) where {N,F}
227227
# Initialize the score and the max scores dictionary
228228
wsymb = (:a, :b, :c)
229229
windows = _rbswindows(orf)
@@ -253,6 +253,8 @@ function orf_rbs_score(orf::ORFI{N,F}) where {N,F}
253253
return totscore
254254
end
255255

256+
const orf_rbs_score = orbs
257+
256258
export motifseq
257259
function motifseq(rbs::RBS)
258260
return rbs.motif

0 commit comments

Comments
 (0)