Learn R Programming

MoBPS (version 1.13.1)

analyze.population: Analyze allele frequency of a single marker

Description

Function to analyze allele frequency of a single marker

Usage

analyze.population(
  population,
  chromosome = NULL,
  snp = NULL,
  snp.name = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL
)

Value

Frequency of AA/AB/BB in selected gen/database/cohorts

Arguments

population

Population list

chromosome

Number of the chromosome of the relevant SNP

snp

Number of the relevant SNP

snp.name

Name of the SNP to analyze

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)

Examples

Run this code
data(ex_pop)
analyze.population(ex_pop, snp=1, chromosome=1, gen=1:5)

Run the code above in your browser using DataLab