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

Ingest nextclade updates #54

Merged
merged 3 commits into from
Jul 16, 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
2 changes: 1 addition & 1 deletion ingest/defaults/nextclade_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nextclade:
dataset_name: ""
# Path to the mapping for renaming Nextclade output columns
# The path should be relative to the ingest directory
field_map: "config/nextclade_field_map.tsv"
field_map: "defaults/nextclade_field_map.tsv"
# This is the ID field you would use to match the Nextclade output with the record metadata.
# This should be the new name that you have defined in your field map.
id_field: "seqName"
1 change: 0 additions & 1 deletion ingest/defaults/nextclade_field_map.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# columns would be useful for your downstream phylogenetic analysis.
seqName seqName
clade clade
lineage lineage
coverage coverage
totalMissing missing_data
totalSubstitutions divergence
Expand Down
6 changes: 3 additions & 3 deletions ingest/rules/nextclade.smk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rule get_nextclade_dataset:
dataset_name=DATASET_NAME
shell:
"""
nextclade2 dataset get \
nextclade3 dataset get \
--name={params.dataset_name:q} \
--output-zip={output.dataset} \
--verbose
Expand All @@ -47,10 +47,10 @@ rule run_nextclade:
params:
# The lambda is used to deactivate automatic wildcard expansion.
# https://github.com/snakemake/snakemake/blob/384d0066c512b0429719085f2cf886fdb97fd80a/snakemake/rules.py#L997-L1000
translations=lambda w: "results/translations/{gene}.fasta",
translations=lambda w: "results/translations/{cds}.fasta",
shell:
"""
nextclade2 run \
nextclade3 run \
{input.sequences} \
--input-dataset {input.dataset} \
--output-tsv {output.nextclade} \
Expand Down