Skip to content

Commit 3e1857d

Browse files
committed
Remove antibody variable reference in DESeq2 module
1 parent 474e226 commit 3e1857d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

conf/modules.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

modules/local/deseq2_qc.nf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)