Skip to content

Commit

Permalink
Refactor NaiveCollector to use explicit type annotations and improve …
Browse files Browse the repository at this point in the history
…code readability
  • Loading branch information
camilogarciabotero committed Sep 2, 2024
1 parent 81cda1f commit 457e9b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/naivecollector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ function NaiveCollector(
overlap::Bool = false,
kwargs...
) where {N}
regorf = alternative_start ? biore"NTG(?:[N]{3})*?T(AG|AA|GA)"dna : biore"ATG(?:[N]{3})*?T(AG|AA|GA)"dna
regorf::BioRegex = alternative_start ? biore"NTG(?:[N]{3})*?T(AG|AA|GA)"dna : biore"ATG(?:[N]{3})*?T(AG|AA|GA)"dna
revseq = reverse_complement(seq)
seqlen = length(seq)
seqname = _varname(seq)

function createorfs(x, strand)
while length(x.captured[1]:x.captured[3]) > minlen
function createorfs(x, strand::Strand)
while length(x.captured[1]:x.captured[3])::Int64 > minlen
if strand == STRAND_POS
start = x.captured[1]
stop = x.captured[3] + 1
Expand Down

0 comments on commit 457e9b7

Please sign in to comment.