getSnpInfo: Collect the genotype and allele frequency for a given snp

Description Usage Arguments Value Examples

Description

Collect the genotype and allele frequency for a given snp

Usage

1
getSnpInfo(snp, pop = NULL)

Arguments

snp

A vector of SNPs in AA/AB/BB format

pop

A vector describing the population structure of the SNPs

Value

A list with components genotypes and allelFreqs, which contain a breakdown of observed genotypes and allele frequencies for each population

Examples

1
2
3
snp1 <- rep(c("AA", "AB", "BB"), times = c(5,7,9))
pop <- sample(x = c("Treat", "Control"), size = 21, replace = TRUE)
getSnpInfo(snp1,pop)

ReubenBuck/mySNPs documentation built on May 9, 2019, 9:46 a.m.