@@ -543,6 +543,7 @@ workflow CHIPSEQ {
543543 // Consensus peaks analysis
544544 //
545545 ch_macs2_consensus_bed_lib = Channel . empty()
546+ ch_macs2_consensus_txt_lib = Channel . empty()
546547 ch_deseq2_pca_multiqc = Channel . empty()
547548 ch_deseq2_clustering_multiqc = Channel . empty()
548549 if (! params. skip_consensus_peaks) {
@@ -579,6 +580,7 @@ workflow CHIPSEQ {
579580 ch_antibody_peaks
580581 )
581582 ch_macs2_consensus_bed_lib = MACS2_CONSENSUS . out. bed
583+ ch_macs2_consensus_txt_lib = MACS2_CONSENSUS . out. txt
582584 ch_versions = ch_versions. mix(MACS2_CONSENSUS . out. versions)
583585
584586 if (! params. skip_peak_annotation) {
@@ -653,26 +655,13 @@ workflow CHIPSEQ {
653655 //
654656 if (! params. skip_igv) {
655657 IGV (
658+ params. aligner,
659+ params. narrow_peak ? ' narrowPeak' : ' broadPeak' ,
656660 PREPARE_GENOME . out. fasta,
657661 UCSC_BEDGRAPHTOBIGWIG . out. bigwig. collect{it[1 ]}. ifEmpty([]),
658662 ch_macs2_peaks. collect{it[1 ]}. ifEmpty([]),
659663 ch_macs2_consensus_bed_lib. collect{it[1 ]}. ifEmpty([]),
660- { " ${ params.aligner} /mergedLibrary/bigwig" },
661- {
662- [
663- " ${ params.aligner} /mergedLibrary/macs2" ,
664- params. narrow_peak ? ' /narrowPeak' : ' /broadPeak'
665- ]
666- .join(' ' )
667- },
668- {
669- [
670- " ${ params.aligner} /mergedLibrary/macs2" ,
671- params. narrow_peak ? ' /narrowPeak' : ' /broadPeak' ,
672- ' /consensus'
673- ]
674- .join(' ' )
675- }
664+ ch_macs2_consensus_txt_lib. collect{it[1 ]}. ifEmpty([])
676665 )
677666 ch_versions = ch_versions. mix(IGV . out. versions)
678667 }
0 commit comments