Skip to content

Commit d9d5e97

Browse files
committed
Pass map.single_read to feature counts
1 parent 16a7d15 commit d9d5e97

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

subworkflows/local/bed_consensus_quantify_qc_bedtools_featurecounts_deseq2.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ workflow BED_CONSENSUS_QUANTIFY_QC_BEDTOOLS_FEATURECOUNTS_DESEQ2 {
9090
}
9191
.join(ch_bams)
9292
.map {
93-
antibody, meta, saf, bams ->
94-
[ meta, bams.flatten().sort(), saf ]
93+
antibody, meta, saf, bams, meta_single_end ->
94+
[ meta + meta_single_end, bams.flatten().sort(), saf ]
9595
}
9696
.set { ch_bam_saf }
9797

workflows/chipseq.nf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ workflow CHIPSEQ {
130130
)
131131
ch_versions = ch_versions.mix(FASTQ_FASTQC_UMITOOLS_TRIMGALORE.out.versions)
132132

133-
134133
//
135134
// SUBWORKFLOW: Alignment with BWA & BAM QC
136135
//
@@ -474,9 +473,14 @@ workflow CHIPSEQ {
474473
ch_ip_control_bam
475474
.map {
476475
meta, ip_bam, control_bam ->
477-
[ meta.antibody, ip_bam ]
476+
[ meta.antibody, meta.single_end, ip_bam ]
478477
}
479478
.groupTuple()
479+
.map {
480+
antibody, single_end, ip_bams ->
481+
def single_end_map = single_end.unique().size() == 1 ? [single_end: single_end[0]] : false
482+
[ antibody, ip_bams, single_end_map ]
483+
}
480484
.set { ch_antibody_bams }
481485

482486
BED_CONSENSUS_QUANTIFY_QC_BEDTOOLS_FEATURECOUNTS_DESEQ2 (

0 commit comments

Comments
 (0)