bootgen2genind | R Documentation |
as.genclone will create a genclone object from a genind object OR anything that can be passed to the genind initializer.
bootgen2genind(bg)
as.genclone(x, ..., mlg, mlgclass = TRUE)
genclone2genind(x)
as.genambig(x)
bg |
a bootgen object |
x |
a |
... |
arguments passed on to the |
mlg |
an optional vector of multilocus genotypes as integers |
mlgclass |
should the mlg slot be of class MLG? |
genclone2genind will remove the mlg slot from the genclone object, creating a genind object.
as.genambig will convert a genind or genclone object to a polysat genambig class.
Zhian N. Kamvar
splitStrata
, genclone
,
read.genalex
aboot
data(Aeut)
Aeut
# Conversion to genclone --------------------------------------------------
Aeut.gc <- as.genclone(Aeut)
Aeut.gc
# Conversion to genind ----------------------------------------------------
Aeut.gi <- genclone2genind(Aeut.gc)
Aeut.gi
# Conversion to polysat's "genambig" class --------------------------------
if (require("polysat")) {
data(Pinf)
Pinf.gb <- as.genambig(Pinf)
summary(Pinf.gb)
}
data(nancycats)
# Conversion to bootgen for random sampling of loci -----------------------
nan.bg <- new("bootgen", nancycats[pop = 9])
nan.bg
# Conversion back to genind -----------------------------------------------
nan.gid <- bootgen2genind(nan.bg)
nan.gid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.