Learn R Programming

monocle3 (version 1.0.0)

calculateLW: Function to calculate the neighbors list with spatial weights for the chosen coding scheme from a cell dataset object

Description

This function first retrieves the association from each cell to any principal points, then builds a kNN graph for all cells and removes edges that connected between groups that disconnected in the corresponding principal graph and finally uses this kNN graph to calculate a global Moran's I and get the p-value

Usage

calculateLW(cds, k, neighbor_graph, reduction_method, verbose = FALSE)

Arguments

cds

The cell_data_set object where the neighbors list is calculated from

k

The maximum number of nearest neighbors to compute

verbose

A logic flag that determines whether or not to print execution details