Base function called by CoarseGrain

coarse.grain(
  cell.embedding,
  gene.expression,
  graph.dist,
  N = 1000,
  random.seed = 1
)

Arguments

cell.embedding

matrix; Cell embedding for kNN clustering

gene.expression

matrix; Cell-by-gene count matrix (library normalized)

graph.dist

matrix; Cell-cell graph distance matrix

N

integer; Number of meta-cells after coarse-graining

random.seed;

Random seed for kNN clustering

Value

Returns a list