|
|
@@ -66,9 +66,11 @@ task CNVkit { |
|
|
|
cat ${sample}.ratio_cnv.txt | tail -n+2 | cut -f1 | sort | uniq > ratio_cnv.txt |
|
|
|
cat ${sample}.segment_cnv.txt | tail -n+2 | cut -f1 | sort | uniq > segment_cnv.txt |
|
|
|
comm -12 ratio_cnv.txt segment_cnv.txt > ${sample}.trusted_genes.txt |
|
|
|
# Scatter plot for each gene |
|
|
|
touch failed_genes.txt |
|
|
|
for gene in `cat ${sample}.trusted_genes.txt` |
|
|
|
do |
|
|
|
cnvkit.py scatter ${sample}.call.cnr -s ${sample}.call.cns -g $gene -o ./gainloss/${sample}.$gene.scatter.pdf |
|
|
|
cnvkit.py scatter ${sample}.call.cnr -s ${sample}.call.cns -g $gene -o ./gainloss/${sample}.$gene.scatter.pdf || echo $gene >> failed_genes.txt |
|
|
|
done |
|
|
|
>>> |
|
|
|
|
|
|
@@ -90,7 +92,8 @@ task CNVkit { |
|
|
|
File call_cns = "${sample}.call.cns" |
|
|
|
File ratio_cnv = "${sample}.ratio_cnv.txt" |
|
|
|
File segment_cnv = "${sample}.segment_cnv.txt" |
|
|
|
File gainloss_genes = "${sample}.trusted_genes.txt" |
|
|
|
File trusted_genes = "${sample}.trusted_genes.txt" |
|
|
|
File failed_genes = "${sample}.failed_genes.txt" |
|
|
|
Array[File] gainloss = glob("./gainloss/*") |
|
|
|
} |
|
|
|
} |