Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Clade I build #284

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phylogenetic/defaults/clade-i/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ auspice_name: "mpox_clade-I"
filter:
min_date: 1900
min_length: 100000
exclude_where: 'clade!=I'
victorlin marked this conversation as resolved.
Show resolved Hide resolved


### We don't want to subsample, so specify a config which is essentially a no-op
### Filter to only Clade I sequences
subsample:
everything:
group_by: ""
sequences_per_group: ""
query: "'clade in [\"I\", \"Ia\", \"Ib\"]'"
victorlin marked this conversation as resolved.
Show resolved Hide resolved

## align
max_indel: 10000
Expand Down
6 changes: 6 additions & 0 deletions phylogenetic/rules/prepare_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ rule subsample:
sequences_per_group=lambda w: config["subsample"][w.sample][
"sequences_per_group"
],
query=lambda w: (
f"--query {config['subsample'][w.sample]['query']}"
if "query" in config["subsample"][w.sample]
else ""
),
other_filters=lambda w: config["subsample"][w.sample].get("other_filters", ""),
exclude=lambda w: (
f"--exclude-where {' '.join([f'lineage={l}' for l in config['subsample'][w.sample]['exclude_lineages']])}"
Expand All @@ -113,6 +118,7 @@ rule subsample:
--output-strains {output.strains} \
{params.group_by} \
{params.sequences_per_group} \
{params.query} \
{params.exclude} \
{params.other_filters} \
--output-log {output.log}
Expand Down