CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

out or chromosomes number!

Open sunnycqcn opened this issue 5 years ago • 3 comments

Hello, Much apprecitated for excellent software. I met a error warning about chromosome number. I used scaffolds as chromosomes to draw manhaton plot, total of 3000 scaffolds. I get this warning as following:

Warning message: In max(numeric.chr, na.rm = TRUE) : no non-missing arguments to max; returning -Inf Could you help me check how I can figure out this error? Thanks, Fuyou

sunnycqcn avatar Apr 25 '20 14:04 sunnycqcn

Hi Fuyou,

Thank you for using CMplot. This warning doesn't affect the plotting, did you check the plotted results? are they fine?

Best, Lilin

YinLiLin avatar Apr 27 '20 02:04 YinLiLin

Hi Lilin, I think it is good. Do you have suggestions that the chromosome number and tag are not presented in x axis? Because I have more than 3000 scaffolds. I only want to show the significant dots. Thanks, Fuyou

sunnycqcn avatar Apr 27 '20 04:04 sunnycqcn

Hi Fuyou,

I have tweaked the script. You may try to assign a character vector with unique chromosome labels (for example: mychr=unique(yourdata[,2])) to the parameter 'chr.labels', and remain the chromosome labels of your interest, but replace the labels of no interest with NA (for example: mychr[c(yourindex)]=NA). With the setting above, CMplot will only show a fraction of chromosome labels. Please source the online script and try again.

Best, Lilin

YinLiLin avatar Apr 27 '20 05:04 YinLiLin