Skip to content

Commit

Permalink
subsample with seqtk instead of using head (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixAja authored Jun 20, 2024
1 parent 15f611d commit a7c54be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workflows/long-read-mngs/run.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ task RunSubsampling {
command <<<
set -euxo pipefail
head -"~{subsample_depth}" "~{input_fastq}" > sample.subsampled.fastq
# set seed to 42 for reproducibility
seqtk sample -s42 "~{input_fastq}" "~{subsample_depth}" > sample.subsampled.fastq
# We should always have reads after subsampling, but adding for consistency with other steps
filter_count sample.subsampled.fastq subsampled "No reads remaining after subsampling"
Expand Down

0 comments on commit a7c54be

Please sign in to comment.