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

What about more than 100 Species? #648

Open
Z1997B opened this issue Apr 24, 2024 · 5 comments
Open

What about more than 100 Species? #648

Z1997B opened this issue Apr 24, 2024 · 5 comments

Comments

@Z1997B
Copy link

Z1997B commented Apr 24, 2024

Dear tanghaibao,

Thank you for developing such a good collinearity tool. I realize that you set the Y-axis length of the mcsan_layout file for your drawing to 1, which is handy when there are less than 10 species. However, when my number of species exceeds 10 or even reaches 100, I cannot reasonably assign the Y-axis to 100 species. The resulting image shows chromosomes squeezed together. Can you give me some advice on collinear mapping of chromosomes in a large number of species?

Many thanks,
Bo Zhang

@tanghaibao
Copy link
Owner

@Z1997B

The range for y-axis is 1, however, you can use a float value to position the tracks. It's all relative.

I have not tried more than 10 species but it may still be possible. For example, you can use --figsize=20x20 (default is 8x7) to have a bigger canvas to draw. Then the tracks will appear smaller relative to the canvas size.

Finally, even if you have more than 10 species, you can specify, in the layout file, to only display certain pairs of tracks (a.b.anchors.simple, b.c.anchors.simple, ...), under the edges section (e).

https://github.com/tanghaibao/jcvi/wiki/MCscan-(Python-version)

@Z1997B
Copy link
Author

Z1997B commented Apr 24, 2024

@tanghaibao I do try to use a float value to position the tracks. Thanks for your response~

@MR-D-CJ
Copy link

MR-D-CJ commented May 10, 2024

@Z1997B

The range for y-axis is 1, however, you can use a float value to position the tracks. It's all relative.

I have not tried more than 10 species but it may still be possible. For example, you can use --figsize=20x20 (default is 8x7) to have a bigger canvas to draw. Then the tracks will appear smaller relative to the canvas size.

Finally, even if you have more than 10 species, you can specify, in the layout file, to only display certain pairs of tracks (a.b.anchors.simple, b.c.anchors.simple, ...), under the edges section (e).

https://github.com/tanghaibao/jcvi/wiki/MCscan-(Python-version)

How to modify this parameter--figsize=20x20
image

@tanghaibao
Copy link
Owner

@MR-D-CJ

Just use larger figure size --figsize=20x20 means 20 inches wide and 20 inches high. --dpi=300 (default) means dot per inch is 300, so in terms of pixels, it is 6000x6000, leading to higher resolution. If you use --format=pdf (default) it doesn't really matter in terms of resolution, since it is vector graphics anyways and you can easily scale the image and not lose resolution.

Sometimes we also change the --figsize if we need to have a fat image, say --figsize=10x5 will give a height half than the width (e.g. we have lots of genes on a horizontal track).

Since font size stay unchanged by default, a bigger figure size make the labels appear smaller, as a side effect.

@chosyang
Copy link

Dear tanghaibao,

Thank you for developing such a good collinearity tool. I realize that you set the Y-axis length of the mcsan_layout file for your drawing to 1, which is handy when there are less than 10 species. However, when my number of species exceeds 10 or even reaches 100, I cannot reasonably assign the Y-axis to 100 species. The resulting image shows chromosomes squeezed together. Can you give me some advice on collinear mapping of chromosomes in a large number of species?

Many thanks, Bo Zhang

Can you tell me the command for suppose 5 species please. I'm struggling to make inputs and command even after going thorugh readme file as I m new to this

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

4 participants