esSimDiffPriors {GWASbyCluster} | R Documentation |
An ExpressionSet Object Storing Simulated Genotype Data
Description
An ExpressionSet object storing simulated genotype data. The minor allele frequency (MAF) of cases has different prior than that of controls.
Usage
data("esSimDiffPriors")
Details
In this simulation, we generate additive-coded genotypes for 3 clusters of SNPs based on a mixture of 3 Bayesian hierarchical models.
In cluster , the minor allele frequency
(MAF)
of cases is greater than the MAF
of
controls.
In cluster , the MAF
of cases is equal to
the MAF of controls.
In cluster , the MAF
of cases is smaller than
the MAF
of controls.
The proportions of the 3 clusters of SNPs are ,
, and
, respectively.
We assume a “half-flat shape” bivariate prior for the MAF in
cluster
where is hte indicator function taking value
if the event
is true, and value
otherwise.
The function
is the probability density function of the
beta distribution
.
The function
is the probability density function of the
beta distribution
.
We assume has the beta prior
.
We also assume a “half-flat shape” bivariate prior for the MAF in
cluster
The function is the probability density function of the
beta distribution
.
The function
is the probability density function of the
beta distribution
.
Given a SNP, we assume Hardy-Weinberg equilibrium holds for its genotypes.
That is, given MAF , the probabilities of genotypes are
We also assume the genotypes (wild-type),
(heterozygote), and
(mutation) follows a multinomial distribution
We set the number of cases as , the number of controls as
,
and the number of SNPs as
.
The hyperparameters are
,
,
,
,
,
,
,
,
,
,
,
,
.
Note that when we generate MAFs from the half-flat shape bivariate priors,
we might get very small MAFs or get MAFs . In these cased,
we then delete this SNP.
So the final number of SNPs generated might be less than the initially-set
number of SNPs.
For the dataset stored in esSim
, there are SNPs.
SNPs are in cluster -,
SNPs are in cluster
,
and
SNPs are in cluster
.
References
Yan X, Xing L, Su J, Zhang X, Qiu W. Model-based clustering for identifying disease-associated SNPs in case-control genome-wide association studies. Scientific Reports 9, Article number: 13686 (2019) https://www.nature.com/articles/s41598-019-50229-6.
Examples
data(esSimDiffPriors)
print(esSimDiffPriors)
pDat=pData(esSimDiffPriors)
print(pDat[1:2,])
print(table(pDat$memSubjs))
fDat=fData(esSimDiffPriors)
print(fDat[1:2,])
print(table(fDat$memGenes))
print(table(fDat$memGenes2))