Learn R Programming

MoBPS (version 1.13.1)

get.allele.freq: Calculate allele frequencies

Description

Function to calculate allele frequencies

Usage

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

Value

Allele frequency of the alternative 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.allele.freq(ex_pop, gen = 1)

Run the code above in your browser using DataLab