alleleFrequency: Determines the frequency of each allele in each population

Description Usage Arguments Value Examples

Description

Takes input vcf or data.table loaded using vcfLoad function and determines the allelic frequency of every allele in each SNP in the provided population information

Usage

1
2
alleleFrequency(filePath = NULL, dataIn = NULL, popInfo = NULL,
  ploidy = 2)

Arguments

filePath

full path to the vcf file

dataIn

data.table obtained using vcfLoad function

popInfo

dataframe with population identifier (column1) and sample identifier (column2)

Value

A data.table with contig info (#CHROM), SNP position (POS), Allele, Population ID (Pop), and the count of the allele (Count), estimate of allele freuquency in a population (Frequency), and variance of the allele frequency (Variance).

Examples

1
# To follow

dinmatias/reconproGS documentation built on May 19, 2019, 1:43 a.m.