minorAlleleFrequency: Function to look at Allele Frequencies

Description Usage Arguments Value Author(s) Examples

View source: R/SNPfreq_functions.R

Description

Functions look at the allele frequencies, filter SNPs, and make a histogram of the data.

Usage

1
2
3
minorAlleleFrequency(SNPmat)
filterSNPs(SNPmat, minMAF=0.05)
mafHist(SNPmat)

Arguments

SNPmat

This is a matrix of SNP data

minMAF

Another arugment.

Value

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

Author(s)

SAR

Examples

1
2
3
4
B <- matrix(c(2, 4, 3, 1, 5, 7), nrow=3,ncol=2)
minorAlleleFrequency(B)
filterSNPs(B)
mafHist(B)

sruzi24/Lab4trial2 documentation built on May 29, 2019, 9:49 a.m.