I just found the FindSubCluster tool within Seurat, and am super excited to use it. Just not sure exactly how!
The usage is here:
FindSubCluster(
object,
cluster,
graph.name,
subcluster.name = "sub.cluster",
resolution = 0.5,
algorithm = 1
)
I receive an error when using it.
> test <- FindSubCluster(scfp, 7, scfp, subcluster.name = "test", resolution = 3, algorithm = 1)
Error in match(x, table, nomatch = 0L) :
'match' requires vector arguments
> test <- FindSubCluster(scfp, 7, scfjjd, subcluster.name = "test", resolution = 3, algorithm = 1)
Error in `[[.Seurat`(object, graph.name) : object 'scfjjd' not found
> test <- FindSubCluster(scfp, 7, RNA, subcluster.name = "test", resolution = 3, algorithm = 1)
Error in `[[.Seurat`(object, graph.name) : object 'RNA' not found
My object name is scfp. I have done FindClusters already. The cluster I wish to subcluster is 7.
I think my trouble is with the graph.name argument.
I tried this:
> test <- FindSubCluster(scfp, "7", "scfp", subcluster.name = "test", resolution = 3, algorithm = 1)
Error: Cannot find 'scfp' in this Seurat object
Still no success yet...
Any help would really be appreciated!
I have never used that function, so I could be completely off, but have a look at
FindMultiModalNeighbors
. It could be similar toAddModuleScore
, which computes the score and add a column (score name) to your metadata.Thank you @fracarb8. So I got the command to go through after this:
I went to: https://satijalab.org/seurat/articles/multimodal_reference_mapping.html
and Ctrl+F:
graph.name
Turns out graph.name is an argument in
FindNeighbors
. So I just use the FindNeighbors command choosinggraph.name
as some arbitrary name (test). and then reran FindSubCluster and it worked, partially.So it looks something like this:
However, no success in visualizing the results via tSNE or UMAP. I tried rerunning RunTSNE, and then seeing the plot, but still no success.