Skip to content

Commit

Permalink
Set min-length filters by segment (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 authored Oct 3, 2024
1 parent 2f644c2 commit 53a0112
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion phylogenetic/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ strain_id_field: "accession"
display_strain_field: "strain"

filter:
min_length: 500
min_length:
l: 5000
s: 2000
include: "defaults/include.txt" # need to always include root strains
exclude: "defaults/exclude.txt"
query: "is_lab_host != 'true'"
Expand Down
2 changes: 1 addition & 1 deletion phylogenetic/rules/prepare_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rule filter:
"benchmarks/{segment}/filter.txt"
params:
strain_id_field = config["strain_id_field"],
min_length = config['filter']['min_length'],
min_length = lambda wildcards: config['filter']['min_length'][wildcards.segment],
query = config['filter']['query'],
custom_params = config['filter']['custom_params'],
shell:
Expand Down

0 comments on commit 53a0112

Please sign in to comment.