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

feat: use nightly nextclade tree #1170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 9 additions & 3 deletions workflow/snakemake_rules/main_workflow.smk
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,20 @@ rule prepare_nextclade:
Downloading reference files for nextclade (used for alignment and qc).
"""
output:
nextclade_dataset = "data/sars-cov-2-nextclade-defaults.zip",
nextclade_dataset = directory("data/sars-cov-2-nextclade-defaults"),
params:
name = config["nextclade_dataset"],
conda: config["conda_environment"]
shell:
r"""
nextclade --version
nextclade dataset get --name {params.name} --output-zip {output.nextclade_dataset}
nextclade dataset get --name {params.name} --output-dir {output.nextclade_dataset}

# override tree.json with nightly tree
curl -fsSL \
-o {output.nextclade_dataset}/tree.json \
-H "Accept: application/vnd.nextstrain.dataset.main+json;q=1, application/json;q=0.9, text/plain;q=0.8, */*;q=0.1" \
"https://nextstrain.org/staging/nextclade/sars-cov-2"
"""

rule build_align:
Expand All @@ -473,7 +479,7 @@ rule build_align:
"""
input:
sequences = rules.combine_samples.output.sequences,
nextclade_dataset = "data/sars-cov-2-nextclade-defaults.zip",
nextclade_dataset = "data/sars-cov-2-nextclade-defaults",
output:
alignment = "results/{build_name}/aligned.fasta",
nextclade_qc = 'results/{build_name}/nextclade_qc.tsv',
Expand Down
Loading