Using existing clustering reference #4233
Answered
by
f6v
vcglinnaeus
asked this question in
Q&A
-
Is it possible to assign a cluster instead of using the clustering algorithm in the package? I love Seurat and it is easy to use but for cases where biologists have prepared a clustered data as a reference, how can I use them. I tried reassigning it to active.idents, but I guess it doesnt work like that? |
Beta Was this translation helpful? Give feedback.
Answered by
f6v
Mar 16, 2021
Replies: 2 comments 4 replies
-
You could assign clusters/cell types by doing so:
And then you can subset Seurat object:
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
timoast
-
Good day,
I have tried it. But the number of clusters from the seurat clustering
doesnt match mine. Well I tried specifying k = 33 (for example) but im not
getting a cluster of k=33 but of 10,11 or 12 instead. It is like following
the optimal k as observed from the elbow joint.
…On Tue, Mar 16, 2021, 6:00 PM Igor Filippov ***@***.***> wrote:
If you specifically want to assign clusters, couldn't you use Idents?
Idents(your_seurat_obj) <- ... # vector of identities
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4233 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQEB5H4LCO4JO7G3RLSQ4GLTD6FCTANCNFSM4ZHINJ4Q>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could assign clusters/cell types by doing so:
And then you can subset Seurat object: