construct_pseudocells | R Documentation |
This function implements the procedure to average the expression profiles of similar cells in order to construct pseudocells
construct_pseudocells(
knn_adj,
ratio,
init_dist = 1,
max_dist = 2,
min_pooled_cells = 2,
min_seed_num = 1,
seed = 12345
)
knn_adj |
The adjacent matrix of the kNN network |
ratio |
The downsample rate |
init_dist |
Maximal distance on the kNN network to group a cell to the selected capital or pseudocell center |
max_dist |
A cell which is not grouped to any pseudocell territory is grouped to the closest one if its distance to the capital is no more than max_dist |
min_pooled_cells |
Only pseudocells covering at least this number of cells are valid |
min_seed_num |
The minimum number of seed capitals to start the procedure |
seed |
The base seed for randomly assigning a cell to a capital candidate |
A data.frame indicating indices of cells and pseudocells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.