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

Calculate gene densities seperately from plotting #150

Open
Mitmischer opened this issue May 2, 2024 · 0 comments
Open

Calculate gene densities seperately from plotting #150

Mitmischer opened this issue May 2, 2024 · 0 comments

Comments

@Mitmischer
Copy link

Hello,
I'll first explain my exact problem and then present my suggestion.

I want to display gene density vs chromosomes.
For that, I use plotKaryotype and kpPlotDensity.
The problem is that for large sets of genes, the plot just explodes (I can provide examples for that, if needed).

As a mitigation, one can choose ymax appropriately, but that requires human intervention. As I have a lot of gene sets to plot, this method is not feasible.

I know that I can access stored densities at kp$latest.plot$computed.values$density and those values are easy to normalize.
The problem is that I cannot really plot all chromosomes simultaneously - with a normal resolution, such plots are undecipherable (again, I can present examples of that). Therefore, I'm plotting just five chromosomes at the time and would have to normalize over all atest.plot$computed.values$density for each individual plot. That's doable but I need to store all plots to have all densities computed available. But I do need to save the plots to disk. And from #58, I understood that one has to create plots in one go and that's where I'm stuck now.

Consequently, for my use case, it would be beneficial to either be able to create plots at a later time or to be able to compute densites separately from plotting, performing normalization and specifiy the computed densities as a parameter to kpPlotDensity.

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

1 participant