multidna2multiphyDat | R Documentation |
The functions multidna2multiphyDat
and multiphyDat2multidna
are used to convert data between multidna and multiphyDat classes.
multidna2multiphyDat(x)
multiphyDat2multidna(x)
x |
a multidna or multiphyDat object. |
Thibaut Jombart t.jombart@imperial.ac.uk, Zhian N. Kamvar, Klaus Schliep
concatenate
DNAbin2genind
to convert single DNAbin objects.
## simple conversion with nicely ordered output
data(woodmouse)
genes <- list(gene1=woodmouse[,1:500], gene2=woodmouse[,501:965])
x <- new("multidna", genes)
x
## conversion multidna -> multiphyDat
y <- multidna2multiphyDat(x)
y
## check round trip
identical(x, multiphyDat2multidna(y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.