Adjust number of clusters with scran/buildSNNGraph
Entering edit mode
tobi • 0
Last seen 2.8 years ago

Hi all,

I am using fastMMN for batch correction and subsequently buildSNNGraph and cluster_walktrap for clustering on single-cell rna seq data on multiple samples. However, I end up with way higher number of clusters compared to what I would expect. By setting the steps parameter in cluster_walktrap it is possible to change the number of clusters.

Are there any other parameters or ways to reduce the number of clusters identified, similar to i.e. setting the resolution in FindClusters in the seurat pipeline?

Best, Tobias

scran buildsnngraph cluster_walktrap single-cell • 621 views
Entering edit mode
Aaron Lun ★ 27k
Last seen 3 hours ago
The city by the bay

Increase the number of neighbours used (k) when running buildSNNGraph. This increases the connectivity of the SNN graph and should reduce the number of clusters (i.e., follow the opposite of the advice given in the comments section here). I am surprised that the default k=10 yields too many clusters, though; I can only assume you have loads of cells, such that 10 nearest neighbours becomes quite a small neighbourhood.


Login before adding your answer.

Traffic: 318 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6