seploc {adegenet}R Documentation

Separate data per locus

Description

The function seploc splits an object (genind or genpop) by marker, returning a list of objects whose components each correspond to a marker.

Usage

## S4 method for signature 'genind':
seploc(x,truenames=TRUE,res.type=c("genind","matrix"))
## S4 method for signature 'genpop':
seploc(x,truenames=TRUE,res.type=c("genpop","matrix"))

Arguments

x a genind or a genpop object.
truenames a logical indicating whether true names should be used (TRUE, default) instead of generic labels (FALSE).
res.type a character indicating the type of returned results, a genind or genpop object (default) or a matrix of data corresponding to the 'tab' slot.

Value

The function seploc returns an list of objects of the same class as the initial object, or a list of matrices similar to x$tab.

Author(s)

Thibaut Jombart jombart@biomserv.univ-lyon1.fr

See Also

seppop, repool

Examples

data(microbov)

# separate all markers
obj <- seploc(microbov)
names(obj)

obj$INRA5

[Package adegenet version 1.2-2 Index]