getGenotypes: Retrieve genotypes from a MagicGen object

Description Usage Arguments Value

Description

This function can be used to extract the genotypes for all the MAGIC lines in a MagicGen or MagicGenPhen object. The genotypes can either be the SNP genotypes or the probability matrix of genotype ancestry for each MAGIC line.

Usage

1
2
3
4
getGenotypes(x, type = c("probability", "allele"))

## S4 method for signature 'MagicGen'
getGenotypes(x, type = c("probability", "allele"))

Arguments

x

an object of class MagicGen

type

which type of genotype to retrieve.

Value

genotypes from MagicGenPhen object


tavareshugo/MagicHelpR documentation built on May 4, 2020, 3:01 p.m.