Skip to content

Commit 8155ed5

Browse files
authored
Merge pull request #157 from drpatelh/master
Add reshape2 to environment
2 parents 1e63065 + 5aff6f7 commit 8155ed5

File tree

4 files changed

+59
-46
lines changed

4 files changed

+59
-46
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3737
* Add pygments `2.6.1`
3838
* Add pigz `2.3.4`
3939
* Add r-tidyr `1.1.0`
40+
* Add r-reshape2 `1.4.4`
4041
* Add bioconductor-biocparallel `1.20.0`
4142
* Update gawk `4.2.1` -> `5.1.0`
4243
* Update r-base `3.4.1` -> `3.6.2`

assets/multiqc_config.yaml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ report_comment: >
33
analysis pipeline. For information about how to interpret these results, please see the
44
<a href="https://github.com/nf-core/chipseq/blob/master/docs/output.md" target="_blank">documentation</a>.
55
6-
export_plots: true
6+
data_format: 'yaml'
77

8-
fn_clean_exts:
9-
- 'fastq.gz'
10-
- '_trimmed'
11-
- '_val'
12-
- 'sorted.bam'
13-
- '.Lb'
14-
- 'mkD'
15-
- 'clN'
16-
- 'mLb'
17-
- '_peaks'
18-
- '_spp'
19-
- '.spp'
20-
- 'ccurve'
8+
run_modules:
9+
- custom_content
10+
- fastqc
11+
- cutadapt
12+
- samtools
13+
- picard
14+
- preseq
15+
- featureCounts
16+
- deeptools
17+
- phantompeakqualtools
18+
19+
exclude_modules:
20+
- 'general_stats'
2121

2222
module_order:
2323
- fastqc:
@@ -134,9 +134,22 @@ report_section_order:
134134
order: -3700
135135

136136
custom_plot_config:
137-
picard-insertsize:
137+
picard_insert_size:
138138
cpswitch_c_active: False
139139
smooth_points: 1000
140-
141140
featurecounts:
142141
cpswitch_c_active: False
142+
143+
extra_fn_clean_exts:
144+
- 'fastq.gz'
145+
- '_trimmed'
146+
- '_val'
147+
- 'sorted.bam'
148+
- '.Lb'
149+
- 'mkD'
150+
- 'clN'
151+
- 'mLb'
152+
- '_peaks'
153+
- '_spp'
154+
- '.spp'
155+
- 'ccurve'

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- conda-forge::r-base=3.6.2
1515
- conda-forge::r-optparse=1.6.6
1616
- conda-forge::r-rcolorbrewer=1.1_2
17+
- conda-forge::r-reshape2=1.4.4
1718
- conda-forge::r-ggplot2=3.3.0
1819
- conda-forge::r-tidyr=1.1.0
1920
- conda-forge::r-scales=1.1.1

main.nf

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ if (!params.macs_gsize) {
308308
/*
309309
* PREPROCESSING: Reformat design file, check validitiy and create IP vs control mappings
310310
*/
311-
process CheckDesign {
311+
process CHECK_DESIGN {
312312
tag "$design"
313313
publishDir "${params.outdir}/pipeline_info", mode: params.publish_dir_mode
314314

@@ -362,7 +362,7 @@ ch_design_controls_csv
362362
* PREPROCESSING: Build BWA index
363363
*/
364364
if (!params.bwa_index) {
365-
process BWAIndex {
365+
process BWA_INDEX {
366366
tag "$fasta"
367367
label 'process_high'
368368
publishDir path: { params.save_reference ? "${params.outdir}/genome" : params.outdir },
@@ -386,7 +386,7 @@ if (!params.bwa_index) {
386386
* PREPROCESSING: Generate gene BED file
387387
*/
388388
if (!params.gene_bed) {
389-
process MakeGeneBED {
389+
process MAKE_GENE_BED {
390390
tag "$gtf"
391391
label 'process_low'
392392
publishDir "${params.outdir}/genome", mode: params.publish_dir_mode
@@ -408,7 +408,7 @@ if (!params.gene_bed) {
408408
* PREPROCESSING: Generate TSS BED file
409409
*/
410410
if (!params.tss_bed) {
411-
process MakeTSSBED {
411+
process MAKE_TSS_BED {
412412
tag "$bed"
413413
publishDir "${params.outdir}/genome", mode: params.publish_dir_mode
414414

@@ -428,7 +428,7 @@ if (!params.tss_bed) {
428428
/*
429429
* PREPROCESSING: Prepare genome intervals for filtering
430430
*/
431-
process MakeGenomeFilter {
431+
process MAKE_GENOME_FILTER {
432432
tag "$fasta"
433433
publishDir "${params.outdir}/genome", mode: params.publish_dir_mode
434434

@@ -462,7 +462,7 @@ process MakeGenomeFilter {
462462
/*
463463
* STEP 1: FastQC
464464
*/
465-
process FastQC {
465+
process FASTQC {
466466
tag "$name"
467467
label 'process_medium'
468468
publishDir "${params.outdir}/fastqc", mode: params.publish_dir_mode,
@@ -512,7 +512,7 @@ if (params.skip_trimming) {
512512
ch_trimgalore_results_mqc = Channel.empty()
513513
ch_trimgalore_fastqc_reports_mqc = Channel.empty()
514514
} else {
515-
process TrimGalore {
515+
process TRIMGALORE {
516516
tag "$name"
517517
label 'process_high'
518518
publishDir "${params.outdir}/trim_galore", mode: params.publish_dir_mode,
@@ -576,7 +576,7 @@ if (params.skip_trimming) {
576576
/*
577577
* STEP 3.1: Map read(s) with bwa mem
578578
*/
579-
process BWAMem {
579+
process BWA_MEM {
580580
tag "$name"
581581
label 'process_high'
582582

@@ -607,7 +607,7 @@ process BWAMem {
607607
/*
608608
* STEP 3.2: Convert BAM to coordinate sorted BAM
609609
*/
610-
process SortBAM {
610+
process SORT_BAM {
611611
tag "$name"
612612
label 'process_medium'
613613
if (params.save_align_intermeds) {
@@ -655,7 +655,7 @@ ch_sort_bam_merge
655655
.map { it -> [ it[0], it[1].flatten() ] }
656656
.set { ch_sort_bam_merge }
657657

658-
process MergeBAM {
658+
process MERGED_BAM {
659659
tag "$name"
660660
label 'process_medium'
661661
publishDir "${params.outdir}/bwa/mergedLibrary", mode: params.publish_dir_mode,
@@ -731,7 +731,7 @@ process MergeBAM {
731731
/*
732732
* STEP 4.2: Filter BAM file at merged library-level
733733
*/
734-
process MergeBAMFilter {
734+
process MERGED_BAM_FILTER {
735735
tag "$name"
736736
label 'process_medium'
737737
publishDir path: "${params.outdir}/bwa/mergedLibrary", mode: params.publish_dir_mode,
@@ -803,7 +803,7 @@ if (params.single_end) {
803803
ch_filter_bam_stats_mqc
804804
.set { ch_rm_orphan_stats_mqc }
805805
} else {
806-
process MergeBAMRemoveOrphan {
806+
process MERGED_BAM_REMOVE_ORPHAN {
807807
tag "$name"
808808
label 'process_medium'
809809
publishDir path: "${params.outdir}/bwa/mergedLibrary", mode: params.publish_dir_mode,
@@ -856,7 +856,7 @@ if (params.single_end) {
856856
/*
857857
* STEP 5.1: Preseq analysis after merging libraries and before filtering
858858
*/
859-
process Preseq {
859+
process PRESEQ {
860860
tag "$name"
861861
label 'process_low'
862862
publishDir "${params.outdir}/bwa/mergedLibrary/preseq", mode: params.publish_dir_mode
@@ -888,7 +888,7 @@ process Preseq {
888888
/*
889889
* STEP 5.2: Picard CollectMultipleMetrics after merging libraries and filtering
890890
*/
891-
process CollectMultipleMetrics {
891+
process PICARD_METRICS {
892892
tag "$name"
893893
label 'process_medium'
894894
publishDir path: "${params.outdir}/bwa/mergedLibrary", mode: params.publish_dir_mode,
@@ -930,7 +930,7 @@ process CollectMultipleMetrics {
930930
/*
931931
* STEP 5.3: Read depth normalised bigWig
932932
*/
933-
process BigWig {
933+
process BIGWIG {
934934
tag "$name"
935935
label 'process_medium'
936936
publishDir "${params.outdir}/bwa/mergedLibrary/bigwig", mode: params.publish_dir_mode,
@@ -966,7 +966,7 @@ process BigWig {
966966
/*
967967
* STEP 5.4: Generate gene body coverage plot with deepTools plotProfile
968968
*/
969-
process PlotProfile {
969+
process PLOTPROFILE {
970970
tag "$name"
971971
label 'process_high'
972972
publishDir "${params.outdir}/bwa/mergedLibrary/deepTools/plotProfile", mode: params.publish_dir_mode
@@ -1005,7 +1005,7 @@ process PlotProfile {
10051005
/*
10061006
* STEP 5.5: Phantompeakqualtools
10071007
*/
1008-
process PhantomPeakQualTools {
1008+
process PHANTOMPEAKQUALTOOLS {
10091009
tag "$name"
10101010
label 'process_medium'
10111011
publishDir "${params.outdir}/bwa/mergedLibrary/phantompeakqualtools", mode: params.publish_dir_mode
@@ -1062,7 +1062,7 @@ ch_design_controls_csv
10621062
/*
10631063
* STEP 6.1: deepTools plotFingerprint
10641064
*/
1065-
process PlotFingerprint {
1065+
process PLOTFINGERPRINT {
10661066
tag "${ip} vs ${control}"
10671067
label 'process_high'
10681068
publishDir "${params.outdir}/bwa/mergedLibrary/deepTools/plotFingerprint", mode: params.publish_dir_mode
@@ -1097,7 +1097,7 @@ process PlotFingerprint {
10971097
/*
10981098
* STEP 6.2: Call peaks with MACS2 and calculate FRiP score
10991099
*/
1100-
process MACSCallPeak {
1100+
process MACS2 {
11011101
tag "${ip} vs ${control}"
11021102
label 'process_medium'
11031103
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}", mode: params.publish_dir_mode,
@@ -1148,7 +1148,7 @@ process MACSCallPeak {
11481148
/*
11491149
* STEP 6.3: Annotate peaks with HOMER
11501150
*/
1151-
process AnnotatePeaks {
1151+
process MACS2_ANNOTATE {
11521152
tag "${ip} vs ${control}"
11531153
label 'process_medium'
11541154
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}", mode: params.publish_dir_mode
@@ -1179,7 +1179,7 @@ process AnnotatePeaks {
11791179
/*
11801180
* STEP 6.4: Aggregated QC plots for peaks, FRiP and peak-to-gene annotation
11811181
*/
1182-
process PeakQC {
1182+
process MACS2_QC {
11831183
label "process_medium"
11841184
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}/qc", mode: params.publish_dir_mode
11851185

@@ -1231,7 +1231,7 @@ ch_macs_consensus
12311231
/*
12321232
* STEP 7.1: Consensus peaks across samples, create boolean filtering file, SAF file for featureCounts and UpSetR plot for intersection
12331233
*/
1234-
process ConsensusPeakSet {
1234+
process CONSENSUS_PEAKS {
12351235
tag "${antibody}"
12361236
label 'process_long'
12371237
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}/consensus/${antibody}", mode: params.publish_dir_mode,
@@ -1282,7 +1282,7 @@ process ConsensusPeakSet {
12821282
/*
12831283
* STEP 7.2: Annotate consensus peaks with HOMER, and add annotation to boolean output file
12841284
*/
1285-
process ConsensusPeakSetAnnotate {
1285+
process CONSENSUS_PEAKS_ANNOTATE {
12861286
tag "${antibody}"
12871287
label 'process_medium'
12881288
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}/consensus/${antibody}", mode: params.publish_dir_mode
@@ -1328,7 +1328,7 @@ ch_group_bam_counts
13281328
/*
13291329
* STEP 7.3: Count reads in consensus peaks with featureCounts
13301330
*/
1331-
process ConsensusPeakSetCounts {
1331+
process CONSENSUS_PEAKS_COUNTS {
13321332
tag "${antibody}"
13331333
label 'process_medium'
13341334
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}/consensus/${antibody}", mode: params.publish_dir_mode
@@ -1363,7 +1363,7 @@ process ConsensusPeakSetCounts {
13631363
/*
13641364
* STEP 7.4: Differential analysis with DESeq2
13651365
*/
1366-
process ConsensusPeakSetDESeq {
1366+
process CONSENSUS_PEAKS_DESEQ2 {
13671367
tag "${antibody}"
13681368
label 'process_medium'
13691369
publishDir "${params.outdir}/bwa/mergedLibrary/macs/${PEAK_TYPE}/consensus/${antibody}/deseq2", mode: params.publish_dir_mode,
@@ -1512,7 +1512,7 @@ Channel.from(summary.collect{ [it.key, it.value] })
15121512
/*
15131513
* STEP 9: MultiQC
15141514
*/
1515-
process MultiQC {
1515+
process MULTIQC {
15161516
publishDir "${params.outdir}/multiqc/${PEAK_TYPE}", mode: params.publish_dir_mode
15171517

15181518
when:
@@ -1550,15 +1550,13 @@ process MultiQC {
15501550
output:
15511551
file "*multiqc_report.html" into ch_multiqc_report
15521552
file "*_data"
1553-
file "multiqc_plots"
1554-
1553+
15551554
script:
15561555
rtitle = custom_runName ? "--title \"$custom_runName\"" : ''
15571556
rfilename = custom_runName ? "--filename " + custom_runName.replaceAll('\\W','_').replaceAll('_+','_') + "_multiqc_report" : ''
15581557
custom_config_file = params.multiqc_config ? "--config $mqc_custom_config" : ''
15591558
"""
1560-
multiqc . -f $rtitle $rfilename $custom_config_file \\
1561-
-m custom_content -m fastqc -m cutadapt -m samtools -m picard -m preseq -m featureCounts -m deeptools -m phantompeakqualtools
1559+
multiqc . -f $rtitle $rfilename $custom_config_file
15621560
"""
15631561
}
15641562

0 commit comments

Comments
 (0)