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

Run on a single Seurat object #17

Open
JulieBvs opened this issue Nov 27, 2024 · 1 comment
Open

Run on a single Seurat object #17

JulieBvs opened this issue Nov 27, 2024 · 1 comment

Comments

@JulieBvs
Copy link

Hello,

First, thank you for developing this nice tool.

I'm wondering if it's possible to identify gene modules from a single Seurat object ?

Thank you

@mass-a
Copy link
Member

mass-a commented Nov 28, 2024

Hello Julie,
yes it's possible to run GeneNMF on a single object. If you only want to apply NMF as a dimensionality reduction (e.g. instead of PCA), you can use the runNMF() function directly on your Seurat object; see an example here.

You can also do the meta-program discovery over multiple k values with the multiNMF() function on one sample, simply by making a list of one element. Something like:

seu.list <- list("myobj" = seu.obj)
geneNMF.programs <- multiNMF(seu.list, k=5:10)
geneNMF.metaprograms <- getMetaPrograms(geneNMF.programs)

I hope that helps,
-m

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