Description Usage Arguments Value Examples
Given a properly formatted dataset (see ?snpPositions
), count the number of SNPs
found on each gene to determine the amount of population-wide variation. This function
either provides the number of unique positions on which variation occurs, or counts the
total number of observations of variation across the population.
1 | getSNPCounts(posData, removeRepeats = TRUE)
|
posData |
A dataset that contains 3 columns. See |
removeRepeats |
A boolean specifying whether observed SNPs that share the same position on the
gene are to be counted more than once. Default is |
A dataframe, with each row representing a gene with the following columns:
id - The id of the gene/transcript (unchanged from input).
length - The length of the gene/transcript (unchanged from input).
counts - The number of (non-)unique SNPs observed.
1 2 | getSNPCounts(snpPositions)
getSNPCounts(snpPositions, removeRepeats=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.