Closed liyang24 closed 1 year ago
Hi,
You can extract the gene activity matrix like this:
proj <- addGeneScoreMatrix(proj,
force = TRUE)
atac <- getMatrixFromProject(ArchRProj = proj,
useMatrix = "GeneScoreMatrix")
gene_counts <- atac@assays@data$GeneScoreMatrix
rownames(gene_counts) <- atac@elementMetadata$name
saveRDS(gene_counts, file = "../data/snATAC/GeneScoreMatrix.Rds")
Thanks a lot ! i got it
hi! I would like to know how to get the gene activity matrix in the example from ArchR, since I used the function
gene activity matrix
to get a different object like this: