-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in rainfallPlot "cannot mix zero-length and non-zero-length coordinates" #628
Comments
Are you using the latest version of maftools from GitHub? Could you also post the data for debugging? |
If you could provide some mutation records to reproduce the error, you should also attach a file so we can use it for import. |
Hello, Unfortunately I cannot upload the whole MAF, but have created an initial subset that reproduces the issue, hope this helps Thanks very much |
@bkinnersley I have submitted a PR #629 to fix this issue. You can install the latest version from GitHub after @PoisonAlien accept the PR. |
Hi @bkinnersley |
Thanks very much that fixed it |
Hello,
Thank you for a very useful package! I am interested in running the rainfallPlot function to detect potential regions of kataegis. This runs fine for most tumours I have tried it on, e.g. running example command:
library(maftools)
input_maf = 'sample_id.GRCh38.PASS.MAF.gz'
input = read.maf(maf = input_maf)
rainfallPlot(maf = input, detectChangePoints = TRUE, ref.build = "hg38", savePlot = TRUE)
However for a very small number I get the following error message:
Kataegis detected at:
Chromosome Start_Position End_Position nMuts Avg_intermutation_dist Size Tumor_Sample_Barcode C>T T>C
Error in arrows(x0 = maf.cpt$Start_Position_updated, y0 = 0, x1 = maf.cpt$Start_Position_updated, :
cannot mix zero-length and non-zero-length coordinates
Calls: rainfallPlot -> arrows
Execution halted
The errors always seem to occur if a potential region of kataegis is detected right at the start of chromosome 1 (with Start_Position and End_Position very similar and often the same as those in the example above)
Thanks very much!
The text was updated successfully, but these errors were encountered: