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

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

Closed
bishwaG opened this issue Jun 6, 2018 · 1 comment

Comments

@bishwaG
Copy link

bishwaG commented Jun 6, 2018

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)
@leonfodoulian
Copy link
Contributor

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

andrewwbutler pushed a commit that referenced this issue Feb 22, 2021
Update reference.reduction documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants