Parallel by Region (sh)
This applet performs a basic SAMtools count on a series of sliced (by canonical chromosome) BAM files in parallel using wait (Ubuntu 14.04+).
How is the SAMtools dependency provided?
"runSpec": {
...
"execDepends": [
{"name": "samtools"}
]
}Debugging
set -e -x -o pipefail
echo "Value of mappings_sorted_bam: '${mappings_sorted_bam}'"
echo "Value of mappings_sorted_bai: '${mappings_sorted_bai}'"
mkdir workspace
cd workspace
dx download "${mappings_sorted_bam}"
if [ -z "$mappings_sorted_bai" ]; then
samtools index "$mappings_sorted_bam_name"
else
dx download "${mappings_sorted_bai}"
fiParallel Run
Job Output
Last updated
Was this helpful?