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

How to run the mellon on data obtained under different processing conditions #10

Open
minghao622 opened this issue Jun 26, 2024 · 1 comment

Comments

@minghao622
Copy link

Hello,
This is a very good tool! However, I have some questions while running the code.
1, I want to calculate the density changes of a specific cell type subpopulation under different treatments. Should I merge the data from multiple treatments and then run Mellon, or should I run Mellon separately for each treatment?
2, If I were to merge the data of multiple treatments for the process, would I need to integrate the data and then use the integrated PCA for running palantir.utils.run_diffusion_maps(adata, pca_key="integrated_pca", n_components=30) ?
Thanks for any advice.

@katosh
Copy link
Collaborator

katosh commented Jun 26, 2024

Hi @minghao622!

Thanks for your inquiry! We are currently working on establishing a differential abundance framework that will hopefully make this use case a lot easier. However, to answer your questions:

  1. If you want to compare the densities, then they should be trained separately with the .fit method. However, to get density values that you can compare, you will have to evaluate it on the merged dataset with the .predict method.
  2. Yes, palantir.utils.run_diffusion_maps should be run on the PCA of the integrated dataset. Please be aware of the potentially confounding effects of batch-effect correction though. It might be advisable to validate the robustness of any finding with respect to the batch-effect correction method.

Please note, we haven’t established the units of the density values produced by mellon. While differences in the log-density values correspond to the predicted log-fold change of cell-state abundance, the absolute values should not be interpreted at this time

Stay tuned for our upcoming work on differential cell-state abundance.

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