Permutation Test
PermTest(fullcluster, distmat, firstn)
A list of clusters that generated by the function GetCluster()
A list of distance vectors generated by the function FindNNDist().
The number of nearest cells were detected that you want to include in the permutation test.
A list of two lists, one is the relative within-between distance and another is p-value of permutation test. Default to be 15.
data(sim_result)
# fullcluster <- GetCluster(seuratlist)
# Assuming 'distmat' is a list of normalized gene count matrix
# distmat <- FindNNDist(fullcluster, normCount, meaningn = 20)
testres <- PermTest(sim_result[[1]], sim_result[[3]],15)