Description Usage Arguments Value Examples
Determines the allele frequencies of each SNPs in specifed populations
1 | findfixedSNP(filePath = NULL, dataIn, popinfo)
|
filePath |
full path to the vcf file; this calls the vcfLoad |
dataIn |
data.table obtained using vcfLoad function |
popinfo |
dataframe with population identifier (column1) and sample identifier (column2) |
A data.table with population.allele as columns and SNPs as rows with frequencies as values
1 2 3 4 5 6 | # reads example.vf, reads table containing sample id and population
# id of each sample then computes allele frequency for each snp in
# each population
vcfInput <- vcfLoad("example.vcf")
populationData <- read.table("populationMetadata")
findfixedSNP(dataIn = vcfInput, popinfo = populationData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.