get.haplo {MoBPS}R Documentation

Derive haplotypes of selected individuals

Description

Function to devide haplotypes of selected individuals

Usage

get.haplo(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  chromosomen = "all",
  export.alleles = FALSE,
  non.genotyped.as.missing = FALSE,
  use.id = FALSE
)

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)

chromosomen

Beschraenkung der Haplotypen auf bestimmte Chromosomen (default: 1)

export.alleles

If TRUE export underlying alleles instead of just 012

non.genotyped.as.missing

Set to TRUE to replace non-genotyped markers with NA

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names (default: FALSE)

Value

Haplotype data for in gen/database/cohorts selected individuals

Examples

data(ex_pop)
haplo <- get.haplo(ex_pop, gen=2)

[Package MoBPS version 1.6.64 Index]