DeMixT_DE | R Documentation |
This function is designed to estimate the deconvolved expressions of individual mixed tumor samples for unknown component for each gene.
DeMixT_DE(
data.Y,
data.N1,
data.N2 = NULL,
niter = 10,
nbin = 50,
if.filter = TRUE,
filter.sd = 0.5,
ngene.selected.for.pi = NA,
nspikein = NULL,
mean.diff.in.CM = 0.25,
tol = 10^(-5),
pi01 = NULL,
pi02 = NULL,
nthread = parallel::detectCores() - 1
)
data.Y |
A SummarizedExperiment object of expression data from mixed
tumor samples. It is a |
data.N1 |
A SummarizedExperiment object of expression data
from reference component 1 (e.g., normal). It is a |
data.N2 |
A SummarizedExperiment object of expression data from
additional reference samples. It is a |
niter |
The maximum number of iterations used in the algorithm of iterated conditional modes. A larger value better guarantees the convergence in estimation but increases the running time. The default is 10. |
nbin |
The number of bins used in numerical integration for computing complete likelihood. A larger value increases accuracy in estimation but increases the running time, especially in a three-component deconvolution problem. The default is 50. |
if.filter |
The logical flag indicating whether a predetermined filter rule is used to select genes for proportion estimation. The default is TRUE. |
filter.sd |
The cut-off for the standard deviation of lognormal distribution. Genes whose log transferred standard deviation smaller than the cut-off will be selected into the model. The default is 0.5. |
ngene.selected.for.pi |
The percentage or the number of genes used for
proportion estimation. The difference between the expression levels from
mixed tumor samples and the known component(s) are evaluated, and the most
differential expressed genes are selected, which is called DE. It is enabled
when if.filter = TRUE. The default is |
nspikein |
The number of spikes in normal reference used for proportion
estimation. The default value is |
mean.diff.in.CM |
Threshold of expression difference for selecting genes in the component merging strategy. We merge three-component to two-component by selecting genes with similar expressions for the two known components. Genes with the mean differences less than the threshold will be selected for component merging. It is used in the three-component setting, and is enabled when if.filter = TRUE. The default is 0.25. |
tol |
The convergence criterion. The default is 10^(-5). |
pi01 |
Initialized proportion for first kown component. The default is
|
pi02 |
Initialized proportion for second kown component. pi02 is needed
only for running a three-component model. The default is |
nthread |
The number of threads used for deconvolution when OpenMP is available in the system. The default is the number of whole threads minus one. In our no-OpenMP version, it is set to 1. |
pi |
A matrix of estimated proportion. First row and second row corresponds to the proportion estimate for the known components and unkown component respectively for two or three component settings, and each column corresponds to one sample. |
pi.iter |
Estimated proportions in each iteration. It is a |
gene.name |
The names of genes used in estimating the proportions. If no gene names are provided in the original data set, the genes will be automatically indexed. |
Zeya Wang, Wenyi Wang
Wang Z, Cao S, Morris J S, et al. Transcriptome Deconvolution of Heterogeneous Tumor Samples with Immune Infiltration. iScience, 2018, 9: 451-460.
http://bioinformatics.mdanderson.org/main/DeMixT
# Example 1: estimate proportions for simulated two-component data
# with spike-in normal reference
data(test.data.2comp)
# res.DE = DeMixT_DE(data.Y = test.data.2comp$data.Y,
# data.N1 = test.data.2comp$data.N1,
# niter = 10, nbin = 50, nspikein = 50,
# if.filter = TRUE,
# mean.diff.in.CM = 0.25, ngene.selected.for.pi = 150,
# tol = 10^(-5))
#
# Example 2: estimate proportions for simulated two-component data
# without spike-in normal reference
# data(test.data.2comp)
# res.DE = DeMixT_DE(data.Y = test.data.2comp$data.Y,
# data.N1 = test.data.2comp$data.N1,
# niter = 10, nbin = 50, nspikein = 0,
# if.filter = TRUE,
# mean.diff.in.CM = 0.25, ngene.selected.for.pi = 150,
# tol = 10^(-5))
#
# Example 3: estimate proportions for simulated three-component
# mixed cell line data
# data(test.data.3comp)
# res.DE <- DeMixT_DE(data.Y = test.data.3comp$data.Y,
# data.N1 = test.data.3comp$data.N1,
# data.N2 = test.data.3comp$data.N2,
# if.filter = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.