dylkot / cNMF

Code and example data for running Consensus Non-negative Matrix Factorization on single-cell RNA-Seq data
MIT License
243 stars 57 forks source link

Seurat integration #80

Closed DiegoSafian closed 1 month ago

DiegoSafian commented 3 months ago

HI,

I was wondering if there is an advisable way to incorporate the usage result into a Seurat object (ideally V5), so that one can calculate the usage of GEP per cell cluster and plot the data in DimPlot or as heatmap??

Kind regards, Diego

dylkot commented 1 month ago

Hi Diego, I'm not an expert in Seurat but I think you can use something like this:

https://satijalab.github.io/seurat-object/reference/AddMetaData.html

library(Seurat)
seurat_obj <- AddMetaData(object = seurat_obj, metadata = usage_df)

I hope that helps!