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

Plotting by chromosome #9

Open
cjy8709 opened this issue Jun 14, 2019 · 2 comments
Open

Plotting by chromosome #9

cjy8709 opened this issue Jun 14, 2019 · 2 comments

Comments

@cjy8709
Copy link

cjy8709 commented Jun 14, 2019

Hi! TWISST is great and I haven't had any problems so far, but I was wondering if you had a suggestion on how to plot the TWISST result by chromosome? Mostly how to plot it so that each chromosome would be on the same scale? If you have topology weight across the chromosomes seems like the plotting results are shown for all regions?

@simonhmartin
Copy link
Owner

Hi, I'm not sure exactly what you're asking. Check out my latest updates to the plot_twisst.R script. This now automatically separates chromosomes with different names when importing the data, even if thy're in a single file.
Using the plot.twisst function you have an option to concatenate chromosomes (with a specified gap) or to plot them separately, in which case you can use the ncol_weights option to to specify the number of columns of chromosomes to plot.
I think the best way to get the scales right is to set the xlim so that the maximum is the length of your longest chromosome. I just discovered that this option wasn't working in the plot.twisst function, but I have just pushed up a fix.
Does this help?

@simonhmartin
Copy link
Owner

Just to add, I have now added an option to subset the Twisst object by chromosomes, which can be used like this:

regions <- c("contig0")

twisst_data_contig0 <- subset.twisst.by.regions(twisst_data, regions)

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