Description Usage Arguments Value Examples
View source: R/SNPfreq_functions.R
minorAlleleFrequency will calculate the minor allele frequency. filterSNPs will filter out SNPs by an allele frequency threshold. mafHist will plot a histogram of minor allele frequencies.
1 2 3 | minorAlleleFrequency(SNPmat)
filterSNPs(SNPmat, minMAF = 0.05)
mafHist(SNPmat)
|
SNPmat |
matrix of SNP frequencies |
minMAF |
filter out alleles below this allele frequency threshold |
mafHist |
matrix of SNP frequencies |
minorAlleleFrequency |
Returns a vector of allele frequencies. |
filterSNPS |
Returns a matrix filtered by minor allele frequency, in the same format as SNPmat. |
mafHist |
Draws a histogram of allele frequencies. |
1 2 3 4 5 | mat <- matrix(runif(30), nrow=10, ncol=3)
maf <- minorAlleleFrequency(mat)
filteredMat <- filterSNPs(mat, minMAF = 0.05)
mafHist(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.