Skip to content

Commit

Permalink
Switch FASTQC to multicore
Browse files Browse the repository at this point in the history
In an attempt to close #378 following bcbio/bcbio-nextgen#2989 via s-andrews/FastQC#24
  • Loading branch information
jfy133 committed Apr 8, 2020
1 parent 9f7dbd7 commit bc966a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ if (params.run_convertbam) {
* STEP 1a - FastQC
*/
process fastqc {
label 'sc_small'
label 'mc_small'
tag "$name"
publishDir "${params.outdir}/FastQC/input_fastq", mode: 'copy',
saveAs: {filename -> filename.indexOf(".zip") > 0 ? "zips/$filename" : "$filename"}
Expand All @@ -836,7 +836,7 @@ process fastqc {

script:
"""
fastqc -q $reads
fastqc -t $cpus -q $reads
rename 's/_fastqc\\.zip\$/_raw_fastqc.zip/' *_fastqc.zip
rename 's/_fastqc\\.html\$/_raw_fastqc.html/' *_fastqc.html
"""
Expand Down Expand Up @@ -980,7 +980,7 @@ if (!params.skip_adapterremoval) {
* STEP 2b - FastQC after clipping/merging (if applied!)
*/
process fastqc_after_clipping {
label 'sc_small'
label 'mc_small'
tag "${name}"
publishDir "${params.outdir}/FastQC/after_clipping", mode: 'copy',
saveAs: {filename -> filename.indexOf(".zip") > 0 ? "zips/$filename" : "$filename"}
Expand All @@ -995,7 +995,7 @@ process fastqc_after_clipping {

script:
"""
fastqc -q $reads
fastqc -t $cpus -q $reads
"""
}

Expand Down

0 comments on commit bc966a4

Please sign in to comment.