Description Usage Arguments Value Author(s) Examples
View source: R/SNPfreq_functions.R
Functions look at the allele frequencies, filter SNPs, and make a histogram of the data.
1 2 3 | minorAlleleFrequency(SNPmat)
filterSNPs(SNPmat, minMAF=0.05)
mafHist(SNPmat)
|
SNPmat |
This is a matrix of SNP data |
minMAF |
Another arugment. |
minorAlleleFrequency
returns a vector of allele frequencies
filterSNPs
returns a SNP matrix in the same format as SNPmat
but
with columns removed for SNPs with very rare alleles
mafHist
draws a plot and doesn't return anything
SAR
1 2 3 4 | B <- matrix(c(2, 4, 3, 1, 5, 7), nrow=3,ncol=2)
minorAlleleFrequency(B)
filterSNPs(B)
mafHist(B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.