View source: R/process_markers.R
Determines number of markers n_markers
, marker list mrkrs
, and gamma
.
1 2 | process_markers(Y, pure_samples, n_markers, data_type, gamma, markers,
marker_method)
|
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 |
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 |
n_markers |
Number of marker genes. (Optional) One-dimensional numeric. How many markers genes to use for deconvolution. Can either be a single integer, vector of integers (one for each cell type), or single or vector of percentages (numeric in 0 to 1). If a single integer then all cell types use that number of markers. If a vector then the i-th element determines how many marker genes are used for the i-th cell type. If single percentage (in 0 to 1) then that percentage of markers are used for all types. If vector of percentages then that percentage used for each type, respectively. If not specified then top 10% of genes are used. |
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 |
markers |
Marker gene indices. (Optional) List of one-dimensional integer. Top-level list should be same length as |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.