MOJOV.genoVector: A internal function. It makes genotype matrix become a...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

It makes genotype matrix become a genotype vector using different coding methods.

Usage

1
2
MOJOV.genoVector(x = NULL, y = NULL, codeMethod = c("Proportion", "Indicator",
      "ChuanhuaXin"), weightMethod = c("ChuanhuaXin"))

Arguments

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.

Details

See MOJOV.analysis

Value

It will return a vector of genotype processed by different coding methods.

Author(s)

Ke-Hao WU

References

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.

See Also

MOJOV.analysis MOJOV.genoMatrix MOJOV.weight

Examples

 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)

MOJOV documentation built on May 2, 2019, 11:42 a.m.