-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from broadinstitute/dp-nextstrain
nextstrain wdl updates
- Loading branch information
Showing
5 changed files
with
216 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version 1.0 | ||
|
||
import "../tasks/tasks_nextstrain.wdl" as nextstrain | ||
|
||
workflow filter_sequences { | ||
meta { | ||
description: "Filter and subsample a sequence set. See https://nextstrain-augur.readthedocs.io/en/stable/usage/cli/filter.html" | ||
} | ||
|
||
call nextstrain.filter_subsample_sequences as filter | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version 1.0 | ||
|
||
import "../tasks/tasks_nextstrain.wdl" as nextstrain | ||
|
||
workflow mafft_iqtree { | ||
meta { | ||
description: "Align assemblies, mask sites, build tree." | ||
author: "Broad Viral Genomics" | ||
email: "viral-ngs@broadinstitute.org" | ||
} | ||
|
||
input { | ||
Array[File] assembly_fastas | ||
File ref_fasta | ||
} | ||
|
||
parameter_meta { | ||
assembly_fastas: { | ||
description: "Set of assembled genomes to align and build trees. These must represent a single chromosome/segment of a genome only. Fastas may be one-sequence-per-individual or a concatenated multi-fasta (unaligned) or a mixture of the two.", | ||
patterns: ["*.fasta", "*.fa"] | ||
} | ||
ref_fasta: { | ||
description: "A reference assembly (not included in assembly_fastas) to align assembly_fastas against. Typically from NCBI RefSeq or similar.", | ||
patterns: ["*.fasta", "*.fa"] | ||
} | ||
} | ||
|
||
call nextstrain.concatenate { | ||
input: | ||
infiles = assembly_fastas, | ||
output_name = "all_samples_combined_assembly.fasta" | ||
} | ||
call nextstrain.mafft_one_chr as mafft { | ||
input: | ||
sequences = concatenate.combined, | ||
ref_fasta = ref_fasta, | ||
basename = "all_samples_aligned.fasta" | ||
} | ||
call nextstrain.snp_sites { | ||
input: | ||
msa_fasta = mafft.aligned_sequences | ||
} | ||
call nextstrain.augur_mask_sites { | ||
input: | ||
sequences = mafft.aligned_sequences | ||
} | ||
call nextstrain.draft_augur_tree { | ||
input: | ||
msa_or_vcf = augur_mask_sites.masked_sequences | ||
} | ||
|
||
output { | ||
File combined_assemblies = concatenate.combined | ||
File multiple_alignment = mafft.aligned_sequences | ||
File unmasked_snps = snp_sites.snps_vcf | ||
File masked_alignment = augur_mask_sites.masked_sequences | ||
File ml_tree = draft_augur_tree.aligned_tree | ||
} | ||
} |