7
7
//
8
8
// MODULE: Loaded from modules/local/
9
9
//
10
- include { BEDTOOLS_GENOMECOV } from ' ../modules/local/bedtools_genomecov'
11
10
include { FRIP_SCORE } from ' ../modules/local/frip_score'
12
11
include { PLOT_MACS2_QC } from ' ../modules/local/plot_macs2_qc'
13
12
include { PLOT_HOMER_ANNOTATEPEAKS } from ' ../modules/local/plot_homer_annotatepeaks'
@@ -22,13 +21,14 @@ include { MULTIQC_CUSTOM_PEAKS } from '../modules/local/multiqc_c
22
21
//
23
22
// SUBWORKFLOW: Consisting of a mix of local and nf-core/modules
24
23
//
25
- include { paramsSummaryMap } from ' plugin/nf-validation'
26
- include { paramsSummaryMultiqc } from ' ../subworkflows/nf-core/utils_nfcore_pipeline'
27
- include { softwareVersionsToYAML } from ' ../subworkflows/nf-core/utils_nfcore_pipeline'
28
- include { methodsDescriptionText } from ' ../subworkflows/local/utils_nfcore_chipseq_pipeline'
29
- include { INPUT_CHECK } from ' ../subworkflows/local/input_check'
30
- include { ALIGN_STAR } from ' ../subworkflows/local/align_star'
31
- include { BAM_FILTER_BAMTOOLS } from ' ../subworkflows/local/bam_filter_bamtools'
24
+ include { paramsSummaryMap } from ' plugin/nf-validation'
25
+ include { paramsSummaryMultiqc } from ' ../subworkflows/nf-core/utils_nfcore_pipeline'
26
+ include { softwareVersionsToYAML } from ' ../subworkflows/nf-core/utils_nfcore_pipeline'
27
+ include { methodsDescriptionText } from ' ../subworkflows/local/utils_nfcore_chipseq_pipeline'
28
+ include { INPUT_CHECK } from ' ../subworkflows/local/input_check'
29
+ include { ALIGN_STAR } from ' ../subworkflows/local/align_star'
30
+ include { BAM_FILTER_BAMTOOLS } from ' ../subworkflows/local/bam_filter_bamtools'
31
+ include { BAM_BEDGRAPH_BIGWIG_BEDTOOLS_UCSC } from ' ../subworkflows/local/bam_bedgraph_bigwig_bedtools_ucsc'
32
32
33
33
/*
34
34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -44,7 +44,6 @@ include { PICARD_MERGESAMFILES } from '../modules/nf-core/picard/merges
44
44
include { PICARD_COLLECTMULTIPLEMETRICS } from ' ../modules/nf-core/picard/collectmultiplemetrics/main'
45
45
include { PRESEQ_LCEXTRAP } from ' ../modules/nf-core/preseq/lcextrap/main'
46
46
include { PHANTOMPEAKQUALTOOLS } from ' ../modules/nf-core/phantompeakqualtools/main'
47
- include { UCSC_BEDGRAPHTOBIGWIG } from ' ../modules/nf-core/ucsc/bedgraphtobigwig/main'
48
47
include { DEEPTOOLS_COMPUTEMATRIX } from ' ../modules/nf-core/deeptools/computematrix/main'
49
48
include { DEEPTOOLS_PLOTPROFILE } from ' ../modules/nf-core/deeptools/plotprofile/main'
50
49
include { DEEPTOOLS_PLOTHEATMAP } from ' ../modules/nf-core/deeptools/plotheatmap/main'
@@ -358,29 +357,22 @@ workflow CHIPSEQ {
358
357
}
359
358
360
359
//
361
- // MODULE: BedGraph coverage tracks
360
+ // SUBWORKFLOW: Normalised bigWig coverage tracks
362
361
//
363
- BEDTOOLS_GENOMECOV (
364
- BAM_FILTER_BAMTOOLS . out. bam. join(BAM_FILTER_BAMTOOLS . out. flagstat, by : [0 ])
365
- )
366
- ch_versions = ch_versions. mix(BEDTOOLS_GENOMECOV . out. versions. first())
367
-
368
- //
369
- // MODULE: BigWig coverage tracks
370
- //
371
- UCSC_BEDGRAPHTOBIGWIG (
372
- BEDTOOLS_GENOMECOV . out. bedgraph,
362
+ BAM_BEDGRAPH_BIGWIG_BEDTOOLS_UCSC (
363
+ BAM_FILTER_BAMTOOLS . out. bam. join(BAM_FILTER_BAMTOOLS . out. flagstat, by : [0 ]),
373
364
ch_chrom_sizes
374
365
)
375
- ch_versions = ch_versions. mix(UCSC_BEDGRAPHTOBIGWIG . out. versions. first())
366
+ ch_versions = ch_versions. mix(BAM_BEDGRAPH_BIGWIG_BEDTOOLS_UCSC . out. versions)
367
+
376
368
377
369
ch_deeptoolsplotprofile_multiqc = Channel . empty()
378
370
if (! params. skip_plot_profile) {
379
371
//
380
372
// MODULE: deepTools matrix generation for plotting
381
373
//
382
374
DEEPTOOLS_COMPUTEMATRIX (
383
- UCSC_BEDGRAPHTOBIGWIG . out. bigwig,
375
+ BAM_BEDGRAPH_BIGWIG_BEDTOOLS_UCSC . out. bigwig,
384
376
ch_gene_bed
385
377
)
386
378
ch_versions = ch_versions. mix(DEEPTOOLS_COMPUTEMATRIX . out. versions. first())
@@ -678,7 +670,7 @@ workflow CHIPSEQ {
678
670
params. aligner,
679
671
params. narrow_peak ? ' narrow_peak' : ' broad_peak' ,
680
672
ch_fasta,
681
- UCSC_BEDGRAPHTOBIGWIG . out. bigwig. collect{it[1 ]}. ifEmpty([]),
673
+ BAM_BEDGRAPH_BIGWIG_BEDTOOLS_UCSC . out. bigwig. collect{it[1 ]}. ifEmpty([]),
682
674
ch_macs2_peaks. collect{it[1 ]}. ifEmpty([]),
683
675
ch_macs2_consensus_bed_lib. collect{it[1 ]}. ifEmpty([]),
684
676
ch_macs2_consensus_txt_lib. collect{it[1 ]}. ifEmpty([])
0 commit comments