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

Feature Request: RLE Plots #320

Open
jonathjd opened this issue Sep 27, 2024 · 2 comments
Open

Feature Request: RLE Plots #320

jonathjd opened this issue Sep 27, 2024 · 2 comments

Comments

@jonathjd
Copy link

Is your feature request related to a problem? Please describe.

Right now there is no method that plots an RLE plot even though the DeseqDataSet method has both the normalized counts (DeseqDataSet.layers["norm_counts"]) and estimated size factors (DeseqDataSet.obsm["size_factors"]). RLE plots are useful for identifying technical variation and normalization issues in RNA-Seq data, as well as testing out different normalization strategies. These plots are super helpful in assessing and visualizing unwanted technical noise or batch effects in expression data.

Describe the solution you'd like
I propose implementing an RLE plot method, similar to the plotRLE function in EDASeq for R. The plot would display boxplots of the relative log expression of genes for each sample, centered around the median per gene. The implementation would:

  • Compute the median for each gene across all samples.
  • Calculate the log expression values relative to this median.
  • Generate a boxplot for each sample based on relative log expression values.

Describe alternatives you've considered

The implementation in other standard libraries (pandas, numpy, matplotlib) is not too bad, but it would be super handy if it came standard!

Additional context
Here's an example of an RLE plot I've made that could be similar. Thanks!!

Screenshot 2024-09-27 at 4 38 23 PM
@BorisMuzellec
Copy link
Collaborator

Hi @jonathjd, great suggestion!

I probably won't be able to implement this myself, but I'd love to help you open a PR.

This could be a method of the DeseqDataSet class wrapping a function in utils.py, similarly to plot_dispersions in DeseqDataSet which calls make_scatter from utils.

Let me know if you need any help :).

@jonathjd
Copy link
Author

jonathjd commented Oct 1, 2024

@BorisMuzellec That sounds like a great idea, and I would be happy to work on it! Let me know what I need to do to make it happen.

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