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

"snn_resolutionX" in metadata set #2325

Closed
XiaofeiSunUCSF opened this issue Nov 13, 2019 · 3 comments
Closed

"snn_resolutionX" in metadata set #2325

XiaofeiSunUCSF opened this issue Nov 13, 2019 · 3 comments

Comments

@XiaofeiSunUCSF
Copy link

XiaofeiSunUCSF commented Nov 13, 2019

We realized the argument save.snn is removed in function FindCluster. I have question as below.

If we delete this argument, how can we use Ident(object)<- "snn_resolutionX" to set up the default Idents?
What if we ident(object)<- to other metadata, and like to ident() back to "snn_resolutionX" (unsupervised cluster number)? I checked my metadata list and could not find any hints about the cluster number.
Could you guide me to find the cluster number in metadata?

Add on another point.
The old version save.snn allow us to try several resolutions at the same time. We can easily check the resolution difference by call ident<-snn_resxxx. all snn_resxx were stored in metadata.
Do you know what is the alternative function we can use?

Originally posted by @XiaofeiSunUCSF in #2281 (comment)

@andrewwbutler
Copy link
Collaborator

Hi,

The clustering results are stored in meta.data under ASSAY_snn_res.X. For example, thepbmc_small object contains two different clustering results (RNA_snn_res.0.8 and RNA_snn_res.1) :

> names(pbmc_small[[]])
[1] "orig.ident"      "nCount_RNA"      "nFeature_RNA"    "RNA_snn_res.0.8" "letter.idents"   "groups"          "RNA_snn_res.1" 

In Seurat v3, we have more explicitly separated the construction of the neighbor graph and the clustering algorithm. Therefore, the expected workflow is to run FindNeighors to generate the SNN graph and then run FindClusters to determine the clustering. If you want to try several values for the resolution parameter, you can pass a vector of values to the resolution parameter in FindClusters.

@XiaofeiSunUCSF
Copy link
Author

Hi,

Thank you for your reply. I tried
image
and could not find options of resolution 0.4 or 0.6 in my metadata.

image
Could you please help me figure it out?

@XiaofeiSunUCSF
Copy link
Author

I figured it out!!!
It didn't show doesn't mean it didn't exist. They actually exist and didn't show due to the space issue.
Thanks!!!

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

2 participants