std_geno: Re-center genotype matrix

Description Usage Arguments Value Examples

Description

Re-center genotype matrix

Usage

1
std_geno(x, method = c("s", "c"), freq = NULL)

Arguments

x

genotype matrix or 'baData' object

method

the method used for centering, 'c' is centering and 's' is standardizing

freq

allele frequency of the one coded as 1, if not supplied, will use the frequency in x

Value

centered genotype matrix or 'baData' object with centered genotype matrix

Examples

1
2
3
4
5
6
## Not run: 
 data("Pig")
 #Standardize genotype matrix with the allele frequency in F0
 geno=std_geno(PigM,method="s",freq=PigAlleleFreq)

## End(Not run)

chenchunyu88/BATools documentation built on May 19, 2019, 8:21 a.m.