RunNICHES.Rd
Performs user-selected NICHES transformations on a Seurat object or a normalized data matrix. By default, references RunCellToCell, RunCellToSystem, and RunSystemToCell functions. If positional data is provided, similar analyses can be performed which are limited exclusively to cells that directly neighbor each other. Output is a set of specialized NICHES objects which allow fine analysis of cell-cell interactions.
RunNICHES(object, ...) # S3 method for default RunNICHES( object, assay = "RNA", LR.database = "fantom5", species, min.cells.per.ident = NULL, min.cells.per.gene = NULL, meta.data.to.map = NULL, position.x = NULL, position.y = NULL, custom_LR_database = NULL, k = 4, rad.set = NULL, blend = "mean", CellToCell = T, CellToSystem = F, SystemToCell = F, CellToCellSpatial = F, CellToNeighborhood = F, NeighborhoodToCell = F, output_format = "seurat", ... ) # S3 method for Seurat RunNICHES( object, assay = "RNA", LR.database = "fantom5", species, min.cells.per.ident = NULL, min.cells.per.gene = NULL, meta.data.to.map = NULL, position.x = NULL, position.y = NULL, cell_types = NULL, custom_LR_database = NULL, k = 4, rad.set = NULL, blend = "mean", CellToCell = T, CellToSystem = F, SystemToCell = F, CellToCellSpatial = F, CellToNeighborhood = F, NeighborhoodToCell = F, output_format = "seurat", ... ) # S3 method for matrix RunNICHES( object, LR.database = "fantom5", species, min.cells.per.ident = NULL, min.cells.per.gene = NULL, meta.data.df = NULL, position.x = NULL, position.y = NULL, cell_types = NULL, custom_LR_database = NULL, k = 4, rad.set = NULL, blend = "mean", CellToCell = T, CellToSystem = F, SystemToCell = F, CellToCellSpatial = F, CellToNeighborhood = F, NeighborhoodToCell = F, output_format = "seurat", ... ) # S3 method for Matrix RunNICHES( object, LR.database = "fantom5", species, min.cells.per.ident = NULL, min.cells.per.gene = NULL, meta.data.df = NULL, position.x = NULL, position.y = NULL, cell_types = NULL, custom_LR_database = NULL, k = 4, rad.set = NULL, blend = "mean", CellToCell = T, CellToSystem = F, SystemToCell = F, CellToCellSpatial = F, CellToNeighborhood = F, NeighborhoodToCell = F, output_format = "seurat", ... )
object | A normalized data matrix. Rows are genes and columns are cells. |
---|---|
... | Arguments passed for other methods |
assay | string. Default: "RNA". The assay to run the NICHES transformation on. |
LR.database | string. Default: "fantom5". Currently accepts "fantom5","omnipath", or "custom". |
species | string. The species of the object that is being processed. Only required when LR.database = 'fantom5' with species being 'human','mouse','rat', or 'pig', or LR.database = 'omnipath' with species being 'human','mouse', or 'rat'. |
min.cells.per.ident | integer. Default: NULL. A limit on how small (how many cells) a single population can be to participate in connectomic crossings. |
min.cells.per.gene | integer. Default: NULL. Limits analysis to interactions involving genes expressed above minimum threshold number of cells in the system. |
meta.data.to.map | character vector. Optional. Default: NULL. A vector of metadata names present in the original object which will be carried to the NICHES objects |
position.x | string. Optional. Default: NULL. Only required for spatial omics data. The name that specifies location on the spatial x-axis in the input meta.data.df. |
position.y | string. Optional. Default: NULL. Only required for spatial omics data. The name that specifies location on the spatial y-axis in the input meta.data.df. |
custom_LR_database | data.frame. Optional. Default: NULL. Only required when LR.database = "custom". Each row is a ligand-receptor mechanism where the first column corresponds to the source genes that express the ligands subunits (separated by '_') and the second column corresponds to the receptor genes that express the receptor subunits (separated by '_'). |
k | integer. Optional. Default: 4. Number of neighbors in a knn graph. Used to compute a mutual nearest neighbor graph based on the spatial coordinates of the spatial transcriptomic datasets. |
rad.set | numeric. Optional. Default: NULL. The radius threshold to define neighbors based on the spatial coordinates of the spatial transcriptomic datasets. Ignored when 'k' is provided. |
blend | string. Default: "mean". Choice of linear operator to combine edges in single-cell niche investigations. Defaults to "mean", also accepts "sum". |
CellToCell | logical. Default: TRUE. Whether to analyze cell-cell interactions without considering spatial coordinates. |
CellToSystem | logical. Default: FALSE. Whether to analyze summed signaling output to total system coming from each cell. Does not consider Euclidean coordinates. |
SystemToCell | logical. Default: FALSE. Whether to analyze summed signaling input from total system landing on each cell (cellular microenvironment/niche). Does not consider Euclidean coordinates. |
CellToCellSpatial | logical. Default: FALSE. Whether to analyze cell-cell interactions between Euclidean neighbors. Only applicable in spatial datasets. |
CellToNeighborhood | logical. Default: FALSE. Whether to analyze summed signaling output to Euclidean neighbors. Only applicable in spatial datasets. |
NeighborhoodToCell | logical. Default: FALSE. Whether to analyze summed signaling input from Euclidean neighbors (cellular microenvironment/niche). Only applicable in spatial datasets. |
output_format | string. Default: "seurat". Choice of the output format. "seurat" will output a list of seurat objects, "raw" will output a list of lists with raw interaction matrix and compiled metadata |
cell_types | string. Default: NULL. The name of the meta.data.df column specifying the cell types of the cells. |
meta.data.df | A dataframe. Optional. Default: NULL. A dataframe of the metadata (columns) associated with the cells (rows). |