Learn R Programming

MoBPS (version 1.13.1)

get.maf: Calculate minor allele frequencies

Description

Function to calculate minor allele frequencies

Usage

get.maf(population, database = NULL, gen = NULL, cohorts = NULL, id = NULL)

Value

Allele frequency of the minor allele

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

Quick-insert for database (vector of all generations to export)

cohorts

Quick-insert for database (vector of names of cohorts to export)

id

Individual IDs to search/collect in the database

Examples

Run this code
data(ex_pop)
get.maf(ex_pop, gen = 1)

Run the code above in your browser using DataLab