Skip to content

Commit

Permalink
make snp calling optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Nov 28, 2022
1 parent 159ea05 commit d860d3b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pipes/WDL/workflows/augur_from_assemblies.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ workflow augur_from_assemblies {

File? clades_tsv
Array[String]? ancestral_traits_to_infer

Boolean make_snps_vcf = false
}

parameter_meta {
Expand Down Expand Up @@ -66,9 +68,11 @@ workflow augur_from_assemblies {
ref_fasta = ref_fasta,
basename = "all_samples_aligned.fasta"
}
call nextstrain.snp_sites {
input:
msa_fasta = mafft.aligned_sequences
if(make_snps_vcf) {
call nextstrain.snp_sites {
input:
msa_fasta = mafft.aligned_sequences
}
}


Expand Down Expand Up @@ -165,7 +169,7 @@ workflow augur_from_assemblies {
output {
File combined_assemblies = filter_sequences_by_length.filtered_fasta
File multiple_alignment = mafft.aligned_sequences
File unmasked_snps = snp_sites.snps_vcf
File? unmasked_snps = snp_sites.snps_vcf

File metadata_merged = derived_cols.derived_metadata
File keep_list = fasta_to_ids.ids_txt
Expand Down

0 comments on commit d860d3b

Please sign in to comment.