When running nf-core/sarek 3.0.2 with --cf_ploidy "2,3,4"controlfreec runs and produces output but the makeGraph.R script to plot the results crashes, as it expects a single number for the ploidy parameter.
Suggested solution: if --cf_ploidy is used with more than one ploidy option, extract the Output_Ploidy from the tumour_vs_normal.tumor.mpileup.gz_info.txt file (attached) that is produced and pass this to the makeGraph.R script.
Description of the bug
When running
nf-core/sarek 3.0.2
with--cf_ploidy "2,3,4"
controlfreec
runs and produces output but themakeGraph.R
script to plot the results crashes, as it expects a single number for theploidy
parameter.Relevant code in
nf-core/sarek
moduleRelevant code in
controlfreec
scriptSuggested solution: if
--cf_ploidy
is used with more than one ploidy option, extract theOutput_Ploidy
from thetumour_vs_normal.tumor.mpileup.gz_info.txt
file (attached) that is produced and pass this to themakeGraph.R
script.Command used and terminal output
Relevant files
command.err.txt tumour_vs_normal_p30.tumor.mpileup.gz_info.txt
System information