Skip to content

Commit

Permalink
Merge pull request #92 from broadinstitute/dp-fixes
Browse files Browse the repository at this point in the history
rmdup VM resize and filter_bam_to_taxa bugfix
  • Loading branch information
dpark01 committed Jun 1, 2020
2 parents 7403dc6 + 91b8ca8 commit 3287af4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions pipes/WDL/tasks/tasks_metagenomics.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,16 @@ task filter_bam_to_taxa {

touch taxfilterargs
TAXNAMELIST="${write_lines(select_first([taxonomic_names, []]))}"
if [ -n "$(cat $TAXNAMELIST)" ]; then echo "--taxNames" >> taxfilterargs; fi
if [ -n "$(cat $TAXNAMELIST)" ]; then
echo "--taxNames" >> taxfilterargs
fi
cat $TAXNAMELIST >> taxfilterargs

TAX_IDs="${sep=' ' taxonomic_ids}"
if [ -n "$TAX_IDs" ]; then TAX_IDs="--taxIDs $TAX_IDs"; fi
TAXIDLIST="${write_lines(select_first([taxonomic_ids, []]))}"
if [ -n "$(cat $TAXIDLIST)" ]; then
echo "--taxIDs" >> taxfilterargs
fi
cat $TAXIDLIST >> taxfilterargs

metagenomics.py --version | tee VERSION

Expand All @@ -681,7 +686,6 @@ task filter_bam_to_taxa {
"${out_basename}.bam" \
nodes.dmp \
names.dmp \
$TAX_IDs \
${true='--exclude' false='' exclude_taxa} \
${true='--without-children' false='' withoutChildren} \
${'--minimum_hit_groups=' + minimum_hit_groups} \
Expand Down
2 changes: 1 addition & 1 deletion pipes/WDL/tasks/tasks_read_utils.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ task rmdup_ubam {
memory: select_first([machine_mem_gb, 7]) + " GB"
cpu: 2
disks: "local-disk 375 LOCAL"
dx_instance_type: "mem1_ssd1_v2_x2"
dx_instance_type: "mem2_ssd1_v2_x2"
}
}

Expand Down

0 comments on commit 3287af4

Please sign in to comment.