CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

Error with highlight.text

Open pscpsm opened this issue 5 years ago • 4 comments

Hi,

I am having trouble adding gene names with this tool.

This works great: CMplot(GWASresults, plot.type="m", type = "p", LOG10=TRUE, threshold=NULL, highlight = SIG)

But the addition of the highlight.text parameter gives an error:

CMplot(GWASresults, plot.type="m", type = "p", LOG10=TRUE, threshold=NULL, highlight = SIG, highlight.text = SIG) Error in last <<- i : cannot change value of locked binding for 'last'

SIG is a vector of character gene ID's. I have also tried sourcing CMplot from both CRAN and directly from github, but I get the same issue with both versions.

Any help with this issue would be greatly appreciated! Thanks!

pscpsm avatar Feb 12 '20 20:02 pscpsm

Hi,

This problem seems to happen when the formate of 'SIG' isn't correct, if you couldn't find it out, please seed me a small example that can reproduce your error, I am pleasure to debug the code for your problem.

best, LL

YinLiLin avatar Feb 13 '20 07:02 YinLiLin

Hi,

Thank you for your response, It turns out the error was from including a '.' in the gene name, e.g. NC_1.1_10090 Changing the gene names to e.g. NC_1_1_10090 fixed the error.

Thanks!

pscpsm avatar Feb 13 '20 20:02 pscpsm

Hello, YinLiLin. I have the same issue when running with multitracks. Even the example code didn't work with the built-in data pig60K. However, when I changed your code from "last <<- i" (line 114) to "last <- i". The issue disappeared. I was wondering whether you coded with a small typo here.

fanwayne avatar Mar 05 '20 08:03 fanwayne

Hi, Thanks a lot for pointing out this issue, I have corrected it, really sorry about that.

YinLiLin avatar Mar 06 '20 06:03 YinLiLin