Description Usage Arguments Value Examples
These functions estimate the minor allele frequency, remove SNPs from a dataset if they do not meet a minior allele frequency threshold, and plot a histogram of minor allele frequencies.
1 2 3 | minorAlleleFrequency(SNPmat)
filterSNPs(SNPmat, minMAF = 0.05)
mafHist(SNPmat)
|
SNPmat |
a numeric matrix of 0, 1,2 with individual in rows and snps in colums |
minMAF |
a number indicating the minimum minor allele frquency of snps in colums |
will return the allele frequency
minorAlleleFrequency
returns a vector of minor allele frequencies.
filterSNPs
returns a matrix in the same format as SNPmat, but with
SNPs removed if they did not meet the threshold. minMAF
returns
nothing but plots a histogram.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.