-
Notifications
You must be signed in to change notification settings - Fork 18
/
class.R
23 lines (22 loc) · 1.2 KB
/
class.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#' @title Definition of 'SpaTalk' class
#'
#' @description An S4 class containing the data, meta, and results of inferred cell type compositions, LR pairs, and pathways.
#' @slot data A list containing the raw and normalized data.
#' @slot meta A list containing the raw and new meta data.
#' @slot para A list containing the parameters.
#' @slot coef A matrix containing the results of deconvolution.
#' @slot cellpair A list containing the cell-cell pairs based on the spatial distance.
#' @slot dist A matrix containing the Euclidean distance among cells.
#' @slot lrpair A data frame containing the inferred LR pairs.
#' @slot tf A data frame containing the TFs of receptors.
#' @slot lr_path A list containing the lrpairs and pathways.
#' @import methods
#' @name SpaTalk
#' @rdname SpaTalk
#' @aliases SpaTalk-class
#' @exportClass SpaTalk
setClass("SpaTalk", representation(data = "list", meta = "list", para = "list", coef = "matrix",
cellpair = "list", dist = "matrix", lrpair = "data.frame", tf = "data.frame",
lr_path = "list"), prototype(data = list(), meta = list(), para = list(), coef = matrix(),
cellpair = list(), dist = matrix(), lrpair = data.frame(), tf = data.frame(),
lr_path = list()))