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 delete MP in visualization? #21

Open
lilyliushasha opened this issue Jan 15, 2025 · 3 comments
Open

How to delete MP in visualization? #21

lilyliushasha opened this issue Jan 15, 2025 · 3 comments

Comments

@lilyliushasha
Copy link

Hello!
If I want to drop MP4, How can I not show this MP in the step plotMetaPrograms()? Thank you very much!

微信图片_20250116000438
@mass-a
Copy link
Member

mass-a commented Jan 15, 2025

Hello,
have a look at the dropMetaProgram() function, for example:

geneNMF_metaprograms_filtered <- dropMetaPrograms(geneNMF_metaprograms, dropMP = c("MP4")) 

Best
-m

@lilyliushasha
Copy link
Author

Thank you for your answer!
I'm curious if there is any code that can be implemented to remove areas like this in the heatmap.
Uploading 微信图片_20250116104050.png…

@mass-a
Copy link
Member

mass-a commented Jan 16, 2025

If you run the heatmap function on the filtered MP object, it will only display the remaining MPs after the filtering:

geneNMF.metaprograms_filtered <- dropMetaPrograms(geneNMF.metaprograms, dropMP = c("MP4")) 
ph <- plotMetaPrograms(geneNMF.metaprograms_filtered)

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