Description Usage Arguments Details Value Author(s) References See Also Examples
It makes genotype matrix become a genotype vector using different coding methods.
1 2 | MOJOV.genoVector(x = NULL, y = NULL, codeMethod = c("Proportion", "Indicator",
"ChuanhuaXin"), weightMethod = c("ChuanhuaXin"))
|
x |
A matrix for genotype, and it can be from MOJOV.matrix. |
y |
A vector for phenotype, it's length should be equal to the rows of x. |
codeMethod |
Specify the coding method for CMC, It can be "Indicator", "Proportion" and "ChuanhuaXin". And the default value is "Proportion". |
weightMethod |
Specify the weighted method for CMC, It only provide "ChuanhuaXin" method in this version. |
See MOJOV.analysis
It will return a vector of genotype processed by different coding methods.
Ke-Hao WU
Morris AP, Zeggini E. An evaluation of statistical approaches to rare variant analysis in genetic association studies. Genet Epidemiol. 2009;34:188-193.
Dering C, Pugh E, Ziegler A. Statistical analysis of rare sequence variants: an overview of collapsing methods. Genet Epidemiol. 2011;35(Suppl 8):12-17.
MOJOV.analysis
MOJOV.genoMatrix
MOJOV.weight
1 2 3 4 5 6 7 8 9 10 11 12 13 | #Generating individuals ID for genotype file at random.
genoIID<-paste("ID",floor(runif(2000,1,101)),sep="")
#Generating variants labels for genotype file at random.
genoVariant<-paste("rs",floor(runif(2000,223,250)),sep="")
#Generating genotype code for genotype file at random.
genoH<-floor(runif(2000,1,3))
#Generating individuals ID for phenotype file.
phenoIID<-paste("ID",1:100,sep="")
#Generating genotype matrix.
x<-MOJOV.genoMatrix(genoIID=genoIID,genoVariant=genoVariant,genoH=genoH,
phenoIID=phenoIID)
#Generating genotype vector.
xVector<-MOJOV.genoVector(x=x,y=phenoIID)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.