Skip to content
Snippets Groups Projects
Commit 81cb8e68 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Give trim_galore all cpu's available

parent 131b5517
Branches
Tags
3 merge requests!37v0.0.1,!13Develop,!12Resolve "Make scripts input files for processes"
Pipeline #5837 canceled with stages
in 2 minutes and 17 seconds
......@@ -121,21 +121,14 @@ process trimData {
hostname >>${repRID}.trimData.err
ulimit -a >>${repRID}.trimData.err
if [ `nproc` -gt 8 ]
then
ncore=8
else
ncore=`nproc`
fi
# trim fastqs
if [ '${fastq[1]}' == 'null' ]
then
ends='se'
trim_galore --gzip -q 25 --illumina --length 35 --basename ${repRID} -j \${ncore} ${fastq[0]} 1>>${repRID}.trimData.log 2>>${repRID}.trimData.err;
trim_galore --gzip -q 25 --illumina --length 35 --basename ${repRID} -j `nproc` ${fastq[0]} 1>>${repRID}.trimData.log 2>>${repRID}.trimData.err;
else
ends='pe'
trim_galore --gzip -q 25 --illumina --length 35 --paired --basename ${repRID} -j \${ncore} ${fastq[0]} ${fastq[1]} 1>>${repRID}.trimData.log 2>>${repRID}.trimData.err;
trim_galore --gzip -q 25 --illumina --length 35 --paired --basename ${repRID} -j `nproc` ${fastq[0]} ${fastq[1]} 1>>${repRID}.trimData.log 2>>${repRID}.trimData.err;
fi
"""
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment