@@ -17,12 +17,14 @@ process ASCAT {
1717 path(rt_file) // optional
1818
1919 output:
20- tuple val(meta), path(" *png" ), emit: png
20+ tuple val(meta), path(" *alleleFrequencies_chr*.txt" ), emit: allelefreqs
21+ tuple val(meta), path(" *BAF.txt" ), emit: bafs
2122 tuple val(meta), path(" *cnvs.txt" ), emit: cnvs
23+ tuple val(meta), path(" *LogR.txt" ), emit: logrs
2224 tuple val(meta), path(" *metrics.txt" ), emit: metrics
25+ tuple val(meta), path(" *png" ), emit: png
2326 tuple val(meta), path(" *purityploidy.txt" ), emit: purityploidy
2427 tuple val(meta), path(" *segments.txt" ), emit: segments
25- tuple val(meta), path(" *alleleFrequencies_chr*.txt" ), emit: allelefreqs
2628 path " versions.yml" , emit: versions
2729
2830 when:
@@ -64,8 +66,8 @@ process ASCAT {
6466 ascat.prepareHTS(
6567 tumourseqfile = "$input_tumor ",
6668 normalseqfile = "$input_normal ",
67- tumourname = "Tumour" ,
68- normalname = "Normal" ,
69+ tumourname = paste0(" $p refix ", ".tumour") ,
70+ normalname = paste0(" $p refix ", ".normal") ,
6971 allelecounter_exe = "alleleCounter",
7072 alleles.prefix = allele_prefix,
7173 loci.prefix = loci_prefix,
@@ -85,16 +87,16 @@ process ASCAT {
8587
8688 #Load the data
8789 ascat.bc = ascat.loadData(
88- Tumor_LogR_file = "Tumour_tumourLogR. txt",
89- Tumor_BAF_file = "Tumour_normalBAF. txt",
90- Germline_LogR_file = "Tumour_normalLogR. txt",
91- Germline_BAF_file = "Tumour_normalBAF. txt",
90+ Tumor_LogR_file = paste0(" $p refix ", ".tumour_tumourLogR. txt") ,
91+ Tumor_BAF_file = paste0(" $p refix ", ".tumour_tumourBAF. txt") ,
92+ Germline_LogR_file = paste0(" $p refix ", ".tumour_normalLogR. txt") ,
93+ Germline_BAF_file = paste0(" $p refix ", ".tumour_normalBAF. txt") ,
9294 genomeVersion = "$genomeVersion ",
9395 gender = "$gender "
9496 )
9597
9698 #Plot the raw data
97- ascat.plotRawData(ascat.bc, img.prefix = "Before_correction_" )
99+ ascat.plotRawData(ascat.bc, img.prefix = paste0(" $p refix ", ".before_correction.") )
98100
99101 # optional LogRCorrection
100102 if("$gc_input " != "NULL") {
@@ -104,12 +106,12 @@ process ASCAT {
104106 rt_input = paste0(normalizePath("$rt_input "), "/", "$rt_input ", ".txt")
105107 ascat.bc = ascat.correctLogR(ascat.bc, GCcontentfile = gc_input, replictimingfile = rt_input)
106108 #Plot raw data after correction
107- ascat.plotRawData(ascat.bc, img.prefix = "After_correction_GC_" )
109+ ascat.plotRawData(ascat.bc, img.prefix = paste0(" $p refix ", ".after_correction_gc_rt.") )
108110 }
109111 else {
110112 ascat.bc = ascat.correctLogR(ascat.bc, GCcontentfile = gc_input, replictimingfile = $rt_input )
111113 #Plot raw data after correction
112- ascat.plotRawData(ascat.bc, img.prefix = "After_correction_GC_RT_" )
114+ ascat.plotRawData(ascat.bc, img.prefix = paste0(" $p refix ", ".after_correction_gc.") )
113115 }
114116 }
115117
@@ -165,26 +167,27 @@ process ASCAT {
165167
166168 """
167169
168-
169170 stub:
170171 def prefix = task. ext. prefix ?: " ${ meta.id} "
171172 """
173+ echo stub > ${ prefix} .after_correction.gc_rt.test.tumour.germline.png
174+ echo stub > ${ prefix} .after_correction.gc_rt.test.tumour.tumour.png
175+ echo stub > ${ prefix} .before_correction.test.tumour.germline.png
176+ echo stub > ${ prefix} .before_correction.test.tumour.tumour.png
172177 echo stub > ${ prefix} .cnvs.txt
173178 echo stub > ${ prefix} .metrics.txt
179+ echo stub > ${ prefix} .normal_alleleFrequencies_chr21.txt
180+ echo stub > ${ prefix} .normal_alleleFrequencies_chr22.txt
174181 echo stub > ${ prefix} .purityploidy.txt
175182 echo stub > ${ prefix} .segments.txt
176- echo stub > Tumour.ASCATprofile.png
177- echo stub > Tumour.ASPCF.png
178- echo stub > Before_correction_Tumour.germline.png
179- echo stub > After_correction_GC_Tumour.germline.png
180- echo stub > Tumour.rawprofile.png
181- echo stub > Tumour.sunrise.png
182- echo stub > Before_correction_Tumour.tumour.png
183- echo stub > After_correction_GC_Tumour.tumour.png
184- echo stub > Tumour_alleleFrequencies_chr21.txt
185- echo stub > Tumour_alleleFrequencies_chr22.txt
186- echo stub > Normal_alleleFrequencies_chr21.txt
187- echo stub > Normal_alleleFrequencies_chr22.txt
183+ echo stub > ${ prefix} .tumour.ASPCF.png
184+ echo stub > ${ prefix} .tumour.sunrise.png
185+ echo stub > ${ prefix} .tumour_alleleFrequencies_chr21.txt
186+ echo stub > ${ prefix} .tumour_alleleFrequencies_chr22.txt
187+ echo stub > ${ prefix} .tumour_normalBAF.txt
188+ echo stub > ${ prefix} .tumour_normalLogR.txt
189+ echo stub > ${ prefix} .tumour_tumourBAF.txt
190+ echo stub > ${ prefix} .tumour_tumourLogR.txt
188191
189192 echo "${ task.process} :" > versions.yml
190193 echo ' alleleCounter: 4.3.0' >> versions.yml
0 commit comments