Skip to content

Commit aa47376

Browse files
committed
Manta update to 1.0.0 and better run-strategy
1 parent 0743931 commit aa47376

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

main.nf

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,16 @@ process manta {
7979
module 'bioinfo-tools'
8080
module "$params.modules.manta"
8181

82+
errorStrategy { task.exitStatus == 143 ? 'retry' : 'terminate' }
83+
time { params.long_job * 2**task.attempt }
84+
maxRetries 3
85+
queue 'core'
86+
cpus 4
87+
8288
when: 'manta' in workflowSteps
8389

8490
script:
8591
"""
86-
# Manta follows symlinks and expects the index to be with the original
87-
# file, so we copy it, and then clean up at script EXIT with a trap.
88-
# TODO, this is fixed in manta v0.29.5, https://github.com/Illumina/manta/issues/32
89-
DIR=`pwd`
90-
function cleanup() {
91-
echo "CLEAN UP"
92-
cd \$DIR
93-
if [ -f bamfile ]; then
94-
rm bamfile
95-
fi
96-
}
97-
trap cleanup EXIT
98-
cp bamfile_tmp bamfile
99-
10092
configManta.py --normalBam bamfile --referenceFasta $params.ref_fasta --runDir testRun
10193
cd testRun
10294
./runWorkflow.py -m local -j $params.threads

nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ params {
66
// Modules and their versions on the HPC-system
77
modules {
88
samtools = 'samtools/0.1.19'
9-
manta = 'manta/0.27.1'
9+
manta = 'manta/1.0.0'
1010
fermikit = 'fermikit/r178'
1111
vcftools = "vcftools/0.1.14"
1212
tabix = "tabix/0.2.6"

0 commit comments

Comments
 (0)