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

bin.size doesn't look right #115

Open
niexiaoqing opened this issue Dec 25, 2023 · 3 comments
Open

bin.size doesn't look right #115

niexiaoqing opened this issue Dec 25, 2023 · 3 comments

Comments

@niexiaoqing
Copy link

image
i set bin.size 500Mb,the picture dosen‘t look right

@YinLiLin
Copy link
Owner

It's difficult to see if the plot is right or not based on the picture you attached, since the color you set is not pretty distinguishable. Could you please copy and paste your running codes here?

@niexiaoqing
Copy link
Author

niexiaoqing commented Dec 25, 2023

我之前以为是把染色体按照bin划分,一个bin一种颜色,这个颜色和SNP数量有关。目前看起来好像不是这样的,一个bin里有两种颜色(前景和背景)。
Marker_Density 1e8
CMplot(temp, plot.type = "d", bin.size = 1e8, main="100Mb",file.name="1e8")

@YinLiLin
Copy link
Owner

YinLiLin commented Dec 26, 2023

你描述的是对的,一个bin里面的SNP用相同的颜色着色,颜色与bin中标记数量一一对应,上图也正是这样的效果,你设置的是100Mb,比如你看每条染色体的0-100Mb中的SNP用的都是一个颜色,完全符合预期;背景色不能设置颜色,不然无法展示标记在基因组上的覆盖程度

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