Build a cell graph using balanced knn graph on given gene features

mcell_add_cgraph_from_mat_bknn(mat_id, gset_id, graph_id, K, dsamp = F)

Arguments

mat_id

matrix object id

gset_id

gset object id defining the features used for distances

graph_id

new graph id to create

K

the guideline Knn parameter. The balanced will be constructed aiming at K edges per cell