alanocallaghan / scater

Clone of the Bioconductor repository for the scater package.
https://bioconductor.org/packages/devel/bioc/html/scater.html
94 stars 40 forks source link

Gene names in nmf basis #192

Closed liron27 closed 1 year ago

liron27 commented 1 year ago

Hello

I am trying to run runNMF from scater and would appreciate your help.

I have a seurat object that I converted to SingleCellExperiment using:

object.sce<-as.SingleCellExperiment(object.seurat)

Then I run runNMF:

res<- runNMF(object.sce,ncomponents= 10, ntop = 1000)

I get the nmf.out via reducedDim

nmf.out <- reducedDim(res,"NMF")

and to get the basis

nmf.basis<-attr(nmf.out,"basis")

The problem is: the nmf.basis rows correspond to the genes but they are not annotated (see picture attached). I don't know the order of the genes (it takes the top 1000 variable genes).

Any help? Thanks, Liron

alanocallaghan commented 1 year ago

Sorry just circling around to this now. Your picture seems to be missing

alanocallaghan commented 1 year ago

A fix is on the way to bioc devel