Skip to content

Commit

Permalink
run seqkitSort with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixAja committed Nov 20, 2023
1 parent 3467ac9 commit 86034c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workflows/index-generation/index-generation.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ task SeqkitSort {
File fasta
Int cpu
Int threads = if cpu * 0.5 < 1 then 1 else floor(cpu * 0.5)
String docker_image_id
}
# Sort NT/NR by length with the longer sequences first
# This is needed because the downstream compression algorithm iterates through NT/NR in order only emitting
Expand All @@ -662,6 +663,7 @@ task SeqkitSort {
command <<<
set -euxo pipefail

python3 /usr/local/bin/break_apart_fasta_by_seq_length.py --fasta-file ~{fasta}
rm ~{fasta}
for file in *.fa; do
Expand All @@ -674,6 +676,10 @@ task SeqkitSort {
output {
File sorted = "sorted_${fasta}"
}
runtime {
docker: docker_image_id
cpu: cpu
}

}

Expand Down

0 comments on commit 86034c9

Please sign in to comment.