Seurat: How to extract gene matrix from seurat object that have been used in generating tSNE clusters?

Created on 6 Jun 2018  路  1Comment  路  Source: satijalab/seurat

Hi,
I would like extract gene matrix that has been used for tSNE cluster generation. I would like to use the matrix for clonal evolution analysis.

I have used CCA worflow.

obj <- RunTSNE(object = obj,
                reduction.use = "cca.aligned",
                dims.use = 1:10,
                do.fast = TRUE)

obk <- FindClusters(object = obj,
                reduction.type = "cca.aligned",
                dims.use = 1:10,
                save.SNN = TRUE,
                force.recalc=TRUE,
                resolution=0.7)
Analysis Question

Most helpful comment

Hi,

In your case, CCA cell embeddings are used for graph-based clustering and t-SNE embedding. The following code should return the first 10 CCA dimensions (i.e. those also used by Seurat when running the codes you reference):

cca.data <- GetCellEmbeddings(object = obj, reduction.type = "cca.aligned")[,1:10]

Best,
Leon

>All comments

Hi,

In your case, CCA cell embeddings are used for graph-based clustering and t-SNE embedding. The following code should return the first 10 CCA dimensions (i.e. those also used by Seurat when running the codes you reference):

cca.data <- GetCellEmbeddings(object = obj, reduction.type = "cca.aligned")[,1:10]

Best,
Leon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mvalenzuelav picture mvalenzuelav  路  3Comments

Biogitte picture Biogitte  路  3Comments

RuiyangLiu94 picture RuiyangLiu94  路  3Comments

sarahwajid picture sarahwajid  路  3Comments

whitleyo picture whitleyo  路  3Comments