find_markers {dtangle} | R Documentation |
Find marker genes for each cell type.
Description
Find marker genes for each cell type.
Usage
find_markers(Y, references = NULL, pure_samples = NULL,
data_type = NULL, gamma = NULL, marker_method = "ratio")
Arguments
Y |
Expression matrix. (Required) Two-dimensional numeric. Must implement Each row contains expression measurements for a particular sample. Each columm contains the measurements of the same gene over all individuals. Can either contain just the mixture samples to be deconvolved or both the mixture samples and the reference samples. See |
references |
Cell-type reference expression matrix. (Optional) Two-dimensional numeric. Must implement Each row contains expression measurements for a reference profile of a particular cell type. Columns contain measurements of reference profiles of a gene. Optionally may merge this matrix with |
pure_samples |
The pure sample indicies. (Optional) List of one-dimensional integer. Must implement The i-th element of the top-level list is a vector of indicies (rows of |
data_type |
Type of expression measurements. (Optional) One-dimensional string. An optional string indicating the type of the expression measurements. This is used to set gamma to a pre-determined value based upon the data type. Valid values are for probe-level microarray as “microarray-probe”, gene-level microarray as “microarray-gene” or rna-seq as “rna-seq”. Alternatively can set |
gamma |
Expression adjustment term. (Optional) One-dimensional positive numeric. If provided as a single positive number then that value will be used for |
marker_method |
Method used to rank marker genes. (Optional) One-dimensional string. The method used to rank genes as markers. If not supplied defaults to “ratio”. Only used if markers are not provided to argument “markers”. Options are
|
Value
List with four elements. “L” is respective ranked markers for each cell type and “V” is the corresponding values of the ranking method (higher are better) used to determine markers and sort them, “M” is the matrix used to create the other two arguments after sorting and subsetting, and “sM” is a sorted version of M.
Examples
truth = shen_orr_ex$annotation$mixture
pure_samples <- lapply(1:3, function(i) {
which(truth[, i] == 1)
})
Y <- shen_orr_ex$data$log
find_markers(Y=Y,pure_samples=pure_samples,
data_type='microarray-gene',marker_method='ratio')