Skip to content

Commit

Permalink
Bug fix for WDL using MTX input (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjfleming authored Oct 31, 2023
1 parent 7a834a4 commit cf71148
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wdl/cellbender_remove_background.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,15 @@ task run_cellbender_remove_background_gpu {
[ -f $dir/$name ] || mv ~{genes_file} $dir/$name
fi

# use the directory as the input in the case of an MTX file
if [[ "~{input_file_unfiltered}" == *.mtx* ]]; then
input=$(dirname ~{input_file_unfiltered})
else
input=~{input_file_unfiltered}
fi

cellbender remove-background \
--input "~{input_file_unfiltered}" \
--input $input \
--output "~{sample_name}_out.h5" \
--cuda \
~{"--checkpoint " + checkpoint_file} \
Expand Down

0 comments on commit cf71148

Please sign in to comment.