Description Usage Arguments Details Value Note Author(s) References Examples
Gene selection based on variances by using the marginal distributions of gene profiles that characterized by a mixture of three-component multivariate distributions. The goal is to detect gene probes having different variances between
cases and controls.
Input is an object derived from the class ExpressionSet
. The function will obtain initial gene cluster membership by its own.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | gsMMD.v(obj.eSet,
memSubjects,
maxFlag = TRUE,
thrshPostProb = 0.5,
geneNames = NULL,
alpha = 0.05,
iniGeneMethod = "myLeveneTest",
transformFlag = FALSE,
transformMethod = "boxcox",
scaleFlag = TRUE,
criterion = c("cor", "skewness", "kurtosis"),
minL = -10,
maxL = 10,
stepL = 0.1,
eps = 0.001,
ITMAX = 100,
plotFlag = FALSE,
quiet=TRUE)
|
obj.eSet |
an object derived from the class |
memSubjects |
a vector of membership of subjects. |
maxFlag |
logical. Indicate how to assign gene class membership. |
thrshPostProb |
threshold for posterior probabilities. For example, if the posterior probability that a gene belongs to cluster 1 given its gene expression levels is larger than |
geneNames |
an optional character vector of gene names |
alpha |
significant level which is equal to |
iniGeneMethod |
method to get initial 3-cluster partition of genes: (1) genes having higher variance in cases than in controls; (2) genes having equal variance between cases and controls; (3) genes having lower variance in cases than in controls. Available methods are: “myAWvar”, “myBFTest”, “myFTest”, “myLeveneTest”, “myLevene.TM”, “myiAWvar.BF”, “myiAWvar.Levene”, “myiAWvar.TM”, “myLeveneTest”, “myLeveneTest.TM”. |
transformFlag |
logical. Indicate if data transformation is needed |
transformMethod |
method for transforming data. Available methods include "boxcox", "log2", "log10", "log", "none". |
scaleFlag |
logical. Indicate if gene profiles are to be scaled to have mean zero and variance one. If |
criterion |
if |
minL |
lower limit for the |
maxL |
upper limit for the |
stepL |
step increase when searching the optimal |
eps |
a small positive value. If the absolute value of a value is smaller than |
ITMAX |
maximum iteration allowed for iterations in the EM algorithm |
plotFlag |
logical. Indicate if the Box-Cox normality plot should be output. |
quiet |
logical. Indicate if intermediate results should be printed out. |
We assume that the distribution of gene expression profiles is a mixture of 3-component multivariate normal distributions ∑_{k=1}^{3} π_k f_k(x|θ). Each component distribution f_k corresponds to a gene cluster. The 3 components correspond to 3 gene clusters: (1) genes having higher variance in cases than in controls; (2) genes having equal variance between cases and controls; (3) genes having lower variance in cases than in controls. The model parameter vector is θ=(π_1, π_2, π_3, σ^2_{c1}, σ^2_{n1}, μ_{c1}, ρ_{c1}, μ_{n1}, ρ_{n1}, σ^2_2, μ_{c2}, ρ_{c2}, μ_{n2}, ρ_{n2}, σ^2_{c3}, σ^2_{n3}, μ_{c3}, ρ_{c3}, μ_{n3}, ρ_{n3}. where π_1, π_2, and π_3 are the mixing proportions; μ_{c1}, σ^2_{c1}, and ρ_{c1} are the marginal mean, variance, and correlation of gene expression levels of cluster 1 (over-variable genes) for diseased subjects; μ_{n1}, σ^2_{n1}, and ρ_{n1} are the marginal mean, variance, and correlation of gene expression levels of cluster 1 (over-variable genes) for non-diseased subjects; σ^2_2, μ_{c2}, ρ_{c2}, μ_{n2}, and ρ_{n2} are the marginal mean, variance, and correlation of gene expression levels of cluster 2 (equal-variable genes); μ_{c3}, σ^2_{c3}, and ρ_{c3} are the marginal mean, variance, and correlation of gene expression levels of cluster 3 (under-variable genes) for diseased subjects; μ_{n3}, σ^2_{n3}, and ρ_{n3} are the marginal mean, variance, and correlation of gene expression levels of cluster 3 (under-variable) for non-diseased subjects.
Note that genes in cluster 2 are non-differentially variable across abnormal and normal tissue samples. Hence there are only 5 parameters for cluster 2.
To make sure the identifiability, we set the following contraints: σ_{c1}>σ_{n1} and σ_{c3}<σ_{n3}.
To make sure the marginal covariance matrices are poisitive definite, we set the following contraints: -1/(n_c-1)<ρ_{c1}<1, -1/(n_n-1)<ρ_{n1}<1, -1/(n-1)<ρ_{2}<1, -1/(n_c-1)<ρ_{c3}<1, -1/(n_n-1)<ρ_{n3}<1.
We also has the following constraints for the mixing proportion: π_3=1-π_1-π_2, π_k>0, k=1,2,3.
We apply the EM algorithm to estimate the model parameters. We regard the cluster membership of genes as missing values.
To facilitate the estimation of the parameters, we reparametrize the parameter vector as θ^*=(π_1, π_2, s^2_{c1}, δ_{n1}, μ_{c1}, r_{c1}, μ_{n1}, r_{n1}, s^2_2, μ_{c2}, r_{c2}, μ_{n2}, r_{n2}, s^2_{c3}, δ_{n3}, μ_{c3}, r_{c3}, μ_{n3}, r_{n3}), where σ_{n1}=σ_{c1}-\exp(δ_{n1}), σ_{n3}=σ_{c3}+\exp(δ_{n3}), ρ_{c1}=(\exp(r_{c1})-1/(n_c-1))/(1+\exp(r_{c1})), ρ_{n1}=(\exp(r_{n1})-1/(n_n-1))/(1+\exp(r_{n1})), ρ_{2}=(\exp(r_{2})-1/(n-1))/(1+\exp(r_{2})), ρ_{c3}=(\exp(r_{c3})-1/(n_c-1))/(1+\exp(r_{c3})), ρ_{n3}=(\exp(r_{n3})-1/(n_n-1))/(1+\exp(r_{n3})).
Given a gene, the expression levels of the gene are assumed independent. However, after scaling, the scaled expression levels of the gene are no longer independent and the rank r^*=r-1 of the covariance matrix for the scaled gene profile will be one less than the rank r for the un-scaled gene profile Hence the covariance matrix of the gene profile will no longer be positive-definite. To avoid this problem, we delete a tissue sample after scaling since its information has been incorrporated by other scaled tissue samples. We arbitrarily select the tissue sample, which has the biggest label number, from the tissue sample group that has larger size than the other tissue sample group. For example, if there are 6 cancer tissue samples and 10 normal tissue samples, we delete the 10-th normal tissue sample after scaling.
A list contains 18 elements.
dat |
the (transformed) microarray data matrix. If tranformation
performed, then |
memSubjects |
the same as the input |
memGenes |
a vector of cluster membership of genes. 1 means over-variable gene; 2 means non-differentially variable gene; 3 means under-variable gene. |
memGenes2 |
an variant of the vector of cluster membership of genes. 1 means differentially variable gene; 0 means non-differentially variable gene. |
para |
parameter estimates (c.f. details). |
llkh |
value of the loglikelihood function. |
wiMat |
posterior probability that a gene belongs to a cluster given the expression levels of this gene. Column i is for cluster i. |
wiArray |
posterior probability matrix for different initial gene selection methods. |
memIniMat |
a matrix of initial cluster membership of genes. |
paraIniMat |
a matrix of parameter estimates based on initial gene cluster membership. |
llkhIniVec |
a vector of values of loglikelihood function. |
memMat |
a matrix of cluster membership of genes based on the mixture of marginal models with initial parameter estimates obtained initial gene cluster membership. |
paraMat |
a matrix of parameter estimates based on the mixture of marginal models with initial parameter estimates obtained initial gene cluster membership. |
llkhVec |
a vector of values of loglikelihood function based on the mixture of marginal models with initial parameter estimates obtained initial gene cluster membership. |
lambda |
the parameter used to do Box-Cox transformation |
paraRP |
parameter estimates for reparametrized parameter vector (c.f. details). |
paraIniMatRP |
a matrix of parameter estimates for reparametrized parameter vector based on initial gene cluster membership. |
paraMatRP |
a matrix of parameter estimates for reparametrized parameter vector based on the mixture of marginal models with initial parameter estimates obtained initial gene cluster membership. |
The speed of the program is slow for large data sets.
Xuan Li lixuan0759@gmail.com, Yuejiao Fu yuejiao@mathstat.yorku.ca, Xiaogang Wang stevenw@mathstat.yorku.ca, Dawn L. DeMeo redld@channing.harvard.edu, Kelan Tantisira rekgt@channing.harvard.edu, Scott T. Weiss restw@channing.harvard.edu, Weiliang Qiu weiliang.qiu@gmail.com
Li X, Fu Y, Wang X, DeMeo DL, Tantisira K, Weiss ST, Qiu W. Detecting Differentially Variable MicroRNAs via Model-Based Clustering. International Journal of Genomics. Article ID 6591634, Volumne 2018 (2018).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | t1 = proc.time()
library(ALL)
data(ALL)
eSet1 <- ALL[1:50, ALL$BT == "B3" | ALL$BT == "T2"]
mem.str <- as.character(eSet1$BT)
nSubjects <- length(mem.str)
memSubjects <- rep(0,nSubjects)
# B3 coded as 0, T2 coded as 1
memSubjects[mem.str == "T2"] <- 1
obj.gsMMD.v <- gsMMD.v(eSet1, memSubjects, transformFlag = FALSE,
transformMethod = "boxcox", scaleFlag = FALSE,
eps = 1.0e-1, ITMAX = 5, quiet = TRUE)
print(round(obj.gsMMD.v$para, 3))
t2=proc.time()-t1
print(t2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.