Skip to content

Commit

Permalink
filter_subsample_sequences should emit input/output sequence counts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Jun 4, 2020
1 parent 6a9ea03 commit 00832a2
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 00832a2

Please sign in to comment.