Skip to content

Commit 457e9b7

Browse files
Refactor NaiveCollector to use explicit type annotations and improve code readability
1 parent 81cda1f commit 457e9b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/algorithms/naivecollector.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ function NaiveCollector(
3636
overlap::Bool = false,
3737
kwargs...
3838
) where {N}
39-
regorf = alternative_start ? biore"NTG(?:[N]{3})*?T(AG|AA|GA)"dna : biore"ATG(?:[N]{3})*?T(AG|AA|GA)"dna
39+
regorf::BioRegex = alternative_start ? biore"NTG(?:[N]{3})*?T(AG|AA|GA)"dna : biore"ATG(?:[N]{3})*?T(AG|AA|GA)"dna
4040
revseq = reverse_complement(seq)
4141
seqlen = length(seq)
4242
seqname = _varname(seq)
4343

44-
function createorfs(x, strand)
45-
while length(x.captured[1]:x.captured[3]) > minlen
44+
function createorfs(x, strand::Strand)
45+
while length(x.captured[1]:x.captured[3])::Int64 > minlen
4646
if strand == STRAND_POS
4747
start = x.captured[1]
4848
stop = x.captured[3] + 1

0 commit comments

Comments
 (0)