Skip to content

Commit

Permalink
Merge branch 'tighter_allele_filter' into fastqc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Golob committed Sep 8, 2023
2 parents fee0960 + 295dfe2 commit 333d83b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/refpackage.nf
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ seq_ids = defaultdict(set)
id_seq = {}
with open('${repo_recruit_f}', 'rt') as recruit_h:
for sr in fastalite.fastalite(recruit_h):
# Here is where we can do our max-length filtering
if len(sr.seq) > ${params.max_allele_len}:
continue
# Implicit else...
seq_ids[sr.seq].add(sr.id)
id_seq[sr.id] = sr.seq
Expand Down Expand Up @@ -885,6 +889,10 @@ def helpMessage() {
params.help = false
params.taxdmp = false

// Add a parameter for a maximum allele size. Tighter can help with the subsequent alignments etc

params.max_allele_len = 1600

params.raxml = 'og'


Expand Down

0 comments on commit 333d83b

Please sign in to comment.