YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
520 stars 112 forks source link

Error in seq.default #33

Open UronicAcid opened 4 years ago

UronicAcid commented 4 years ago

Hello, Much apprecitated for excelltent software. I get this error when I want to draw a SNP-density plot.

Error in seq.default(0, chorm.maxlen/bp, round(xticks[2])) : 
  invalid '(to - from)/by'

My data is

>head(mydata)
   SNP Chromosome Position
1 SNP1          1     4623
2 SNP2          1     4626
3 SNP3          1     4635
4 SNP4          1     4675
5 SNP5          1     4772
6 SNP6          1     4869

And I am using the following code to draw a SNP-density plot.

CMplot(mydata,type="p",plot.type="d",bin.size=1e6,chr.den.col=c("darkgreen", "yellow","red"),file="jpg",memo="",dpi=300, file.output=TRUE,verbose=TRUE,width=9,height=6)

Could you please tell me what goes wrong? Thanks a lot.

YinLiLin commented 4 years ago

Hi,

The format of data you showed above looks fine, would you mind sending your data to me at ylilin@163.com?

Best, LL

Elakhdar commented 3 years ago

Hello, I got the same issue.

Could someone help me please. thanks in advance.

sunnycqcn commented 1 year ago

I met the same issue. Have someone figured out this? Thanks, Fuyou

YinLiLin commented 1 year ago

@sunnycqcn May i please ask for an example dataset which could be used to reproduce the error you encountered? So that i can locate the potential problem in CMplot. Thanks.