MOJOV.genoMatrix: A internal function. It generates a genotype matrix.

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

Description

A internal function. It generates a genotype matrix.

Usage

1
2
MOJOV.genoMatrix(genoIID = NULL, genoVariant = NULL, genoH = NULL,
      phenoIID = NULL, MAF = NULL)

Arguments

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.

Details

See MOJOV.analysis

Value

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.

Author(s)

Ke-Hao Wu

See Also

MOJOV.genoVector MOJOV.analysis

Examples

 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)

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