$ git clone --recursive https://github.com/msk-access/bam_collapsing.git
$ cd bam_collapsing
$ git submodule init
$ pip install toil[cwl]==4.2.0
Note: you may use any CWL executor available, provided it works with your batch system
$ cwltool bam_collapsing.cwl inputs.json
$ toil-cwl-runner \
--singularity \
--jobStore my_jobStore \
--batchSystem lsf \
--workDir `pwd` \
--outdir `pwd` \
--logFile cwltoil.log \
--writeLogs `pwd` \
--logLevel DEBUG \
--retryCount 2 \
--disableCaching \
--maxLogFileSize 20000000000 \
--stats \
bam_collapsing.cwl \
inputs.yaml