Description Usage Arguments Details Value Author(s) See Also Examples
A internal function. It generates a genotype matrix.
1 2 |
genoIID |
A character vector for individuals ID. |
genoVariant |
A character vector for variant labels. |
genoH |
A character vector for genotype. |
phenoIID |
A character vector for all individuals from phenotype file. |
MAF |
Specify the minor allele frequency. |
See MOJOV.analysis
This function will return a matrix, it is individuals multiply sites. If the specified variant site of one individual contains one copy of rare variant, it will code 1. If two copy, it will code 2, and others are coded 0.
Ke-Hao Wu
MOJOV.genoVector
MOJOV.analysis
1 2 3 4 5 6 7 8 9 10 11 | #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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.