restructure: Restructure genotypic data

Description Usage Arguments Details Value Examples

Description

Restructure genotypic data into several forms.

This function is not yet official part of the package:

Usage

1
restructure(individual, struc = c("_", "g", "c", "cg"), check = FALSE)

Arguments

individual

An individual (genotypic representation).

struc

Character. Either of c('_', 'g', 'c', 'cg')

check

Logical. Should checks be performed?

Details

If struc == '_' (default), the result is a matrix (both chromosomes and gametes are concatenated). If struc == 'g', only gametes are concatenated (chromosomes remain separated). If struc == 'c', only chromosomes are concatenated (gametes remain separated), and if struc == 'cg', gametes get nested within chromosomes, everything being separated.

Value

A matrix or a list, depending on the parameter struc.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data('exdat', package = 'Meiosis')
str(restructure(exdat$ind))
str(restructure(exdat$ind, struc = 'c'))
str(restructure(exdat$ind, struc = 'g'))
str(restructure(exdat$ind, struc = 'cg'))

## End(Not run)

DominikMueller64/Meiosis documentation built on May 6, 2019, 2:52 p.m.