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

Can I use jcvi to plot the MCSCanX #244

Closed
wuxiaopei0509 opened this issue May 14, 2020 · 8 comments
Closed

Can I use jcvi to plot the MCSCanX #244

wuxiaopei0509 opened this issue May 14, 2020 · 8 comments

Comments

@wuxiaopei0509
Copy link

wuxiaopei0509 commented May 14, 2020

Hi ,Mr Tang
I use MCSCanX to find collinearity blocks and found about 1000 blocks between two species ,However When I use the jcvi only 523 blocks in the Jcvi. My question is Can I use the MCScanX results to plot the Synteny between the two species ?
Thank you

@tanghaibao
Copy link
Owner

@wuxiaopei0509

The default filtering criteria (BLAST filters to remove weak and tandem duplicates) are different between MCScanX and jcvi version. The default synteny block threshold is also different. That's why the numbers are different. However, both should be fine to use as long as you keep track of the parameters that were used.

To plot MCscan results, you need to convert the MCScanX output to .anchors format. What is .anchors format? See discussion here.

Haibao

@ShuaiNIEgithub
Copy link

Could you please show in code how to convert the MCScanX output (.collinearity) to .anchors format?

@tanghaibao
Copy link
Owner

@ShuaiNIEgithub

Sorry for the late response but you could try:

python -m jcvi.compara.synteny fromaligns mc.collinearity

Let me know if this doesn't work and also send me a small file for testing.

@ShuaiNIEgithub
Copy link

@tanghaibao
It worked and that's what I wanted. Thank you very much for your reply!

@mrmrwinter
Copy link

Hi @tanghaibao,
Rather than open a new issue i thought this was more appropriately posted here, as this is where my googling led me.

I wish to play with my macrosynteny plots in SynVisio.
Is there a way to convert an anchors file into a collinearity file?
Or would I have to install and runMCScanX to generate this?

Many thanks, really liking the software so far

@tanghaibao tanghaibao reopened this Aug 5, 2022
@tanghaibao
Copy link
Owner

@mrmrwinter

Unfortunately, we don't yet have a conversion script as you said at this point. If you do figure out how to do it, please consider contributing this. I think other ppl have asked about this in the past.

Haibao

@dengyang111
Copy link

Hi mrmrwinter,
Have you solved this problem.
I also need to tansfer anchor files generated by JCVI to collinearity files generated by MCScanX, which could used by SynVisio.

@mpodio81
Copy link

mpodio81 commented Nov 1, 2023

I can not plot the synteny graph. The script gave me an error when I try to do it. It said that the chromosomes are empty. Could it be a problem with the seqid or layout files?
outmcscan.err.txt

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

6 participants