Skip to content

Commit

Permalink
Merge pull request #96 from broadinstitute/dp-nextstrain
Browse files Browse the repository at this point in the history
add sequence counts to filter_subsample_sequences outputs
  • Loading branch information
dpark01 authored Jun 4, 2020
2 parents 6a9ea03 + 00832a2 commit 67cd94c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pipes/WDL/tasks/tasks_nextstrain.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ task filter_subsample_sequences {
~{"--exclude-where " + exclude_where} \
~{"--include-where " + include_where} \
--output "~{in_basename}.filtered.fasta"
cat ~{sequences_fasta} | grep \> | wc -l > IN_COUNT
cat ~{in_basename}.filtered.fasta | grep \> | wc -l > OUT_COUNT
}
runtime {
docker: docker
Expand All @@ -133,8 +135,10 @@ task filter_subsample_sequences {
preemptible: 1
}
output {
File filtered_fasta = "~{in_basename}.filtered.fasta"
String augur_version = read_string("VERSION")
File filtered_fasta = "~{in_basename}.filtered.fasta"
String augur_version = read_string("VERSION")
Int sequences_in = read_int("IN_COUNT")
Int sequences_out = read_int("OUT_COUNT")
}
}
Expand Down

0 comments on commit 67cd94c

Please sign in to comment.