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

Possible to plot two different chromosomes? #14

Open
ahishsujay opened this issue Mar 23, 2022 · 5 comments
Open

Possible to plot two different chromosomes? #14

ahishsujay opened this issue Mar 23, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@ahishsujay
Copy link

Hi Manish,

I wanted to investigate certain regions that fall in two different chromosome regions between my query and reference genomes and was wondering if there's anyway to visualize this? I know it would only make sense to visualize (SYN, INV, DUP, etc.) regions on the same chromosome but was interested on your inputs if it's possible to do any sort of visualize between two different chromosomes.

Thanks!
Ahish

@mnshgl0110 mnshgl0110 self-assigned this Mar 23, 2022
@mnshgl0110 mnshgl0110 added the enhancement New feature or request label Mar 23, 2022
@mnshgl0110
Copy link
Member

Do you mean inter-chromosomal rearrangements? If so, then you can use the --itx option with the --chr options to view them (check example R9 here). However, this plots entire chromosomes as it is currently not possible to zoom in to two separate regions. Maybe, I will add this later.

@ahishsujay
Copy link
Author

Yes, I wanted to visualize inter-chromosomal rearrangements and to zoom in to two separate regions as well. No problem as viewing just the inter-chromosomal rearrangements will suffice for now!

Thanks!

@mnshgl0110
Copy link
Member

I see. Good that the issue is resolved for now. I would leave this issue open though, so that I remember to add multi-region zooming later.

@mnshgl0110 mnshgl0110 reopened this Mar 24, 2022
@JakobButler
Copy link

Hello Manish,
I thought I'd piggy back on this issue since it's related. I'm also interested in looking at inter-chromosomal rearrangements using --itx, but the two genomes I'm comparing have a lot of intra-chromosomal rearrangements (translocations and duplications) as well which makes the figures a bit hard to interpret. I attempted to modify my syri.out file and remove every feature with a matching chromosome name to clear these off the plots, but plotsr didn't like that much at all (File "/u/xxx/.conda/envs/syri/lib/python3.8/site-packages/plotsr/func.py", line 388, in readsyriout
chrid.append((i, np.unique(df.loc[(df[0] == i) & (df[10] == 'SYN'), 5])[0]))
IndexError: index 0 is out of bounds for axis 0 with size 0).

Have you got any thoughts about what to change to show only inter-chromosomal features?

@mnshgl0110
Copy link
Member

mnshgl0110 commented Aug 8, 2022

Your modified input file is missing SYN regions which are required to select homologous chromosomes. You can filter intra-chromosomal SRs and set colour for SYN regions to white in the base.cfg file. Probably, that would work.

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

No branches or pull requests

3 participants