File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -690,6 +690,7 @@ if (!params.skip_consensus_peaks) {
690690 '--count_col 7',
691691 params.deseq2_vst ? '--vst TRUE' : ''
692692 ].join(' ').trim()
693+ ext.prefix = { "${meta.id}.consensus_peaks" }
693694 publishDir = [
694695 path: { [
695696 "${params.outdir}/${params.aligner}/mergedLibrary/macs2",
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ process DESEQ2_QC {
2727 script:
2828 def args = task. ext. args ?: ' '
2929 def peak_type = params. narrow_peak ? ' narrowPeak' : ' broadPeak'
30- def antibody = meta. antibody
31- def prefix = " ${ antibody} .consensus_peaks"
30+ def prefix = task. ext. prefix ?: " ${ meta.id} "
3231 """
3332 deseq2_qc.r \\
3433 --count_file $counts \\
@@ -38,11 +37,11 @@ process DESEQ2_QC {
3837 $args
3938
4039 sed 's/deseq2_pca/deseq2_pca_${ task.index} /g' <$deseq2_pca_header >tmp.txt
41- sed -i -e 's/DESeq2 /${ antibody } DESeq2 /g' tmp.txt
40+ sed -i -e 's/DESeq2 /${ meta.id } DESeq2 /g' tmp.txt
4241 cat tmp.txt ${ prefix} .pca.vals.txt > ${ prefix} .pca.vals_mqc.tsv
4342
4443 sed 's/deseq2_clustering/deseq2_clustering_${ task.index} /g' <$deseq2_clustering_header >tmp.txt
45- sed -i -e 's/DESeq2 /${ antibody } DESeq2 /g' tmp.txt
44+ sed -i -e 's/DESeq2 /${ meta.id } DESeq2 /g' tmp.txt
4645 cat tmp.txt ${ prefix} .sample.dists.txt > ${ prefix} .sample.dists_mqc.tsv
4746
4847 cat <<-END_VERSIONS > versions.yml
You can’t perform that action at this time.
0 commit comments