Skip to content

Commit

Permalink
set memory usage in runtime and added set -euo pipefail in command
Browse files Browse the repository at this point in the history
  • Loading branch information
mflynn-lanl committed Jul 29, 2024
1 parent 848116d commit ab2a960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/workflow/WDL/metaT/metat_assembly.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ task megahit_assembly{

# parameter from https://www.nature.com/articles/s41597-019-0132-4
command <<<
set -euo pipefail
megahit --12 ${rqc_clean_reads[0]} -t ${no_of_cpus} -o out/ --out-prefix mh --k-list 23,43,63,83,103,123
mkdir -p ${assem_out_fdr}
cat out/mh.contigs.fa |sed 's/>.*_/>${assem_out_prefix}_/'|sed 's/ .*//' > ${assem_out_fdr}/${assem_out_prefix}.contigs.fa
Expand All @@ -20,6 +21,7 @@ task megahit_assembly{
runtime {
docker: DOCKER
cpu: no_of_cpus
memory: "120 GiB"
}

output{
Expand Down

0 comments on commit ab2a960

Please sign in to comment.