Find cells indicating shared biological features across conditions

FindCell(seuratobj, seuratlist, fullcluster, distmat, firstn = 15)

Arguments

seuratobj

The Seurat object that all samples/subjects were merged together.

seuratlist

A list of Seurat objects, usually can be got by SplitObject().

fullcluster

A list of clusters that generated by the function GetCluster().

distmat

A list of distance vectors generated by the function FindNNDist().

firstn

The number of nearest cells were detected that you want to include in the permutation test. Default to be 15.

Value

A list of two vectors: one is for which cluster of which sample will be highlighted and the second one is which cells will be selected.

Examples

# Create example Seurat object
data(sim_data_sce)
data(sim_result)
# Create example list of Seurat objects
sim_data <- SCEtoSeurat(sim_data_sce)
#> Error in SCEtoSeurat(sim_data_sce): could not find function "SCEtoSeurat"
seuratlist <- Seurat::SplitObject(sim_data, split.by = "Study")
#> Error: object 'sim_data' not found
# seuratlist <- InputData(sim_data_sce,"Study")
# Create example fullcluster (mock data)
# fullcluster <- GetCluster(seuratlist)
# Create example distmat (mock data)
# distmat <- FindNNDist( fullcluster, distmat, meaningn = 20)

FindCell(sim_data, seuratlist, sim_result[[1]], sim_result[[3]], 15)
#> Error: object 'seuratlist' not found