analyze.population: Analyze allele frequency of a single marker

Description Usage Arguments Value Examples

View source: R/analyze.population.R

Description

Analyze allele frequency of a single marker

Usage

1
2
3
4
5
6
7
8
9
analyze.population(
  population,
  chromosome = NULL,
  snp = NULL,
  snp.name = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL
)

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)

Value

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

Examples

1
2
data(ex_pop)
analyze.population(ex_pop, snp=1, chromosome=1, gen=1:5)

Example output

#############################################################
############ Modular Breeding Program Simulator #############
#############################################################
################ Version: 1.4.87 (27-03-2020) ###############
######## To update to the most recent stable version: #######
## devtools::install_github('tpook92/MoBPS', subdir='pkg') ##
#############################################################
################ Web-interface: www.mobps.de ################
### Extended documentation: www.github.com/tpook92/MoBPS ####
#############################################################
     [,1] [,2] [,3] [,4] [,5]
[1,]   44   40   39   46   46
[2,]    5   10   10    4    4
[3,]    1    0    1    0    0

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.