Skip to content
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

The maximum number of markers in windows is smaller than the lower boundary of breaks #109

Open
CEPHAS-01 opened this issue Oct 5, 2023 · 7 comments

Comments

@CEPHAS-01
Copy link

Hi,
Thanks for this great tool.
I made use of it to visualize just 1 chromosome and it worked right.

I am trying to visualize 2 chromosomes but I get an error message.
"Error in Pmap[, 1] : incorrect number of dimensions"

When I tried again with only one of the 2 chromosomes I get the following

Error in DensityPlot(Pmap[, 1], Pmap[, 2], chr.ori, chr.pos.max = chr.pos.max, :
the maximum number of markers in windows is smaller than the lower boundary of breaks.

Here is a part (boundary) of the input for the 2 chromosomes plot:

RBMX Y 59362343
RBMX Y 59386279
PSMB6 Y 59458668
PLCXD1 Y-RefSeq 34576
LOC100298830 Y-RefSeq 54425
LOC132342097 Y-RefSeq 67594
LOC132344459 Y-RefSeq 287024

Thanks in advance for your help.

@YinLiLin
Copy link
Owner

YinLiLin commented Oct 7, 2023

Thank you for the feedback.
Could you mind sending your data and the running script to me at [email protected]? I will check it out for the issue.

@CEPHAS-01
Copy link
Author

CEPHAS-01 commented Oct 9, 2023 via email

@CEPHAS-01
Copy link
Author

CEPHAS-01 commented Oct 11, 2023 via email

@YinLiLin
Copy link
Owner

Hi @CEPHAS-01,

The version on GitHub has been updated for the issue you proposed, please source the online script and have a try. BTW, i found that you used a very small window size, it may not be an appropriate choice, i recommend using a bigger one, for example:

> source("https://raw.githubusercontent.com/YinLiLin/CMplot/master/R/CMplot.r")
> CMplot(dataCM,plot.type="d",bin.size=1e6,chr.den.col=c("darkgreen", "yellow", "red"),file="jpg",file.name="CMPlotOutput",dpi=300,main="genes",file.output=TRUE,verbose=TRUE,width=9,height=3,legend.cex=0.6)

Best,
LL

@CEPHAS-01
Copy link
Author

Thanks a bunch.
So, the window size has to be at least 1e6?

@YinLiLin
Copy link
Owner

actually not, it's just a general setting.

@CEPHAS-01
Copy link
Author

CEPHAS-01 commented Oct 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants