Skip to content

Commit 2cf2c96

Browse files
committed
refactor: nf-core subworkflows install fastq_fastqc_umitools_trimgalore
1 parent d7aa733 commit 2cf2c96

File tree

6 files changed

+113
-32
lines changed

6 files changed

+113
-32
lines changed

conf/modules.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ if (!params.skip_bbsplit && params.bbsplit_fasta_list) {
172172

173173
if (!(params.skip_fastqc || params.skip_qc)) {
174174
process {
175-
withName: '.*:FASTQC_UMITOOLS_TRIMGALORE:FASTQC' {
175+
withName: '.*:FASTQ_FASTQC_UMITOOLS_TRIMGALORE:FASTQC' {
176176
ext.args = '--quiet'
177177
}
178178
}
179179
}
180180

181181
if (!params.skip_trimming) {
182182
process {
183-
withName: '.*:FASTQC_UMITOOLS_TRIMGALORE:TRIMGALORE' {
183+
withName: '.*:FASTQ_FASTQC_UMITOOLS_TRIMGALORE:TRIMGALORE' {
184184
ext.args = {
185185
[
186186
"--fastqc_args '-t ${task.cpus}' ",
@@ -218,7 +218,7 @@ if (!params.skip_trimming) {
218218

219219
if (params.with_umi && !params.skip_umi_extract) {
220220
process {
221-
withName: '.*:FASTQC_UMITOOLS_TRIMGALORE:UMITOOLS_EXTRACT' {
221+
withName: '.*:FASTQ_FASTQC_UMITOOLS_TRIMGALORE:UMITOOLS_EXTRACT' {
222222
ext.args = [
223223
params.umitools_extract_method ? "--extract-method=${params.umitools_extract_method}" : '',
224224
params.umitools_bc_pattern ? "--bc-pattern='${params.umitools_bc_pattern}'" : '',

modules.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"trimgalore": {
150150
"branch": "master",
151-
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905"
151+
"git_sha": "b51a69e30973c71950225c817ad07a3337d22c40"
152152
},
153153
"ucsc/bedclip": {
154154
"branch": "master",
@@ -201,6 +201,10 @@
201201
"fastq_align_hisat2": {
202202
"branch": "master",
203203
"git_sha": "9057e75e8ac959373a72a9402130fdea2e2d1398"
204+
},
205+
"fastq_fastqc_umitools_trimgalore": {
206+
"branch": "master",
207+
"git_sha": "b51a69e30973c71950225c817ad07a3337d22c40"
204208
}
205209
}
206210
}

modules/nf-core/trimgalore/main.nf

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/fastqc_umitools_trimgalore.nf renamed to subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/main.nf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/meta.yml

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workflows/rnaseq.nf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ include { CUSTOM_DUMPSOFTWAREVERSIONS } from '../modules/nf-core/custom/dumpsoft
143143
//
144144
// SUBWORKFLOW: Consisting entirely of nf-core/modules
145145
//
146-
include { FASTQC_UMITOOLS_TRIMGALORE } from '../subworkflows/nf-core/fastqc_umitools_trimgalore'
147-
include { FASTQ_ALIGN_HISAT2 } from '../subworkflows/nf-core/fastq_align_hisat2/main'
148-
include { BAM_SORT_STATS_SAMTOOLS } from '../subworkflows/nf-core/bam_sort_stats_samtools/main'
149-
include { BAM_MARKDUPLICATES_PICARD } from '../subworkflows/nf-core/bam_markduplicates_picard/main'
150-
include { BAM_RSEQC } from '../subworkflows/nf-core/bam_rseqc/main'
146+
include { FASTQ_FASTQC_UMITOOLS_TRIMGALORE } from '../subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/main'
147+
include { FASTQ_ALIGN_HISAT2 } from '../subworkflows/nf-core/fastq_align_hisat2/main'
148+
include { BAM_SORT_STATS_SAMTOOLS } from '../subworkflows/nf-core/bam_sort_stats_samtools/main'
149+
include { BAM_MARKDUPLICATES_PICARD } from '../subworkflows/nf-core/bam_markduplicates_picard/main'
150+
include { BAM_RSEQC } from '../subworkflows/nf-core/bam_rseqc/main'
151151
include {
152152
BAM_DEDUP_STATS_SAMTOOLS_UMITOOLS as BAM_DEDUP_STATS_SAMTOOLS_UMITOOLS_GENOME
153153
BAM_DEDUP_STATS_SAMTOOLS_UMITOOLS as BAM_DEDUP_STATS_SAMTOOLS_UMITOOLS_TRANSCRIPTOME
@@ -230,24 +230,24 @@ workflow RNASEQ {
230230
//
231231
// SUBWORKFLOW: Read QC, extract UMI and trim adapters
232232
//
233-
FASTQC_UMITOOLS_TRIMGALORE (
233+
FASTQ_FASTQC_UMITOOLS_TRIMGALORE (
234234
ch_cat_fastq,
235235
params.skip_fastqc || params.skip_qc,
236236
params.with_umi,
237237
params.skip_umi_extract,
238238
params.skip_trimming,
239239
params.umi_discard_read
240240
)
241-
ch_versions = ch_versions.mix(FASTQC_UMITOOLS_TRIMGALORE.out.versions)
241+
ch_versions = ch_versions.mix(FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.versions)
242242

243243
//
244244
// Filter channels to get samples that passed minimum trimmed read count
245245
//
246246
ch_fail_trimming_multiqc = Channel.empty()
247-
ch_filtered_reads = FASTQC_UMITOOLS_TRIMGALORE.out.reads
247+
ch_filtered_reads = FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.reads
248248
if (!params.skip_trimming) {
249249
ch_filtered_reads
250-
.join(FASTQC_UMITOOLS_TRIMGALORE.out.trim_log)
250+
.join(FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.trim_log)
251251
.map {
252252
meta, reads, trim_log ->
253253
if (!meta.single_end) {
@@ -787,9 +787,9 @@ workflow RNASEQ {
787787
ch_fail_trimming_multiqc.ifEmpty([]),
788788
ch_fail_mapping_multiqc.ifEmpty([]),
789789
ch_fail_strand_multiqc.ifEmpty([]),
790-
FASTQC_UMITOOLS_TRIMGALORE.out.fastqc_zip.collect{it[1]}.ifEmpty([]),
791-
FASTQC_UMITOOLS_TRIMGALORE.out.trim_zip.collect{it[1]}.ifEmpty([]),
792-
FASTQC_UMITOOLS_TRIMGALORE.out.trim_log.collect{it[1]}.ifEmpty([]),
790+
FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.fastqc_zip.collect{it[1]}.ifEmpty([]),
791+
FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.trim_zip.collect{it[1]}.ifEmpty([]),
792+
FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.trim_log.collect{it[1]}.ifEmpty([]),
793793
ch_sortmerna_multiqc.collect{it[1]}.ifEmpty([]),
794794
ch_star_multiqc.collect{it[1]}.ifEmpty([]),
795795
ch_hisat2_multiqc.collect{it[1]}.ifEmpty([]),

0 commit comments

Comments
 (0)