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

Option to aggregate individual MistyData objects from multiple samples #141

Open
whitneyt1 opened this issue Sep 12, 2024 · 4 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@whitneyt1
Copy link

Hello!

Thank you for this package. I'm looking to run this pipeline on 36 Visium reactions and mistyR has the option to run MISTy on multiple individual samples and aggregate results (via collect_results) to plot the differences (plot_contrast_heatmap), as recommended in my MISTy question.

Am I able to replicate this in the python package?

Thanks!

@whitneyt1 whitneyt1 added the enhancement New feature or request label Sep 12, 2024
@dbdimitrov
Copy link
Collaborator

Hi @whitneyt1,

You could indeed aggregate the results by passing e.g. mean as a function to aggregate_fun of the visualizations for misty. You would need to pass a concatenated dataframe of misty results across samples. Though, plotting contrasts with these functions is not available yet (which seems to be the use case that you describe in the issue that you've linked).

I hope this helps.
Daniel

@whitneyt1
Copy link
Author

Great thank you. So, if I use the RandomForestModel on each individual sample, I can combine these reactions using the aggregate_fun argument within plotting functions, i can manually compare. Thank you!!!

@dbdimitrov
Copy link
Collaborator

Hi @whitneyt1,

Yes, exactly. You could also see matplotlib versions of these plots with a condition here:
https://github.com/saezlab/lianaplus_manuscript/blob/main/notebooks/sma/sma_plot.ipynb

Hope this helps.

@whitneyt1
Copy link
Author

Thank you! I appreciate it!

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

2 participants