BoevaLab / FREEC

Control-FREEC: Copy number and genotype annotation in whole genome and whole exome sequencing data
153 stars 49 forks source link

Addressing issues due to nan values, causing need finite 'ylim' value… #136

Open nschcolnicov opened 1 year ago

nschcolnicov commented 1 year ago

The following error was spotted when trying to run the makeGraph.R: https://github.com/nf-core/sarek/issues/993 When trying the suggested solution of running the makeGraph2.0.R script, the issue persisted. Digging deeper into the issue, It was spotted that the cause were NaN values being produced when calculating the log2 of the ratio, which triggered the error: "Error in plot.window(...) : need finite 'ylim' values"

The changes introduced do the following:

I compared the files produced by makeGraph.R and the ones produced by this version of makeGraph2.0.R and the plots they produced were identical. Attaching them below, keep in mind that the missing text in "HCC1395T_vs_HCC1395N_ratio log2_makeGraph", is due to an unrelated issue in the sarek's pipeline: https://github.com/nf-core/sarek/issues/921

HCC1395T_vs_HCC1395N makeGraph2 0_updated log2 HCC1395T_vs_HCC1395N_ratio log2_makeGraph