View source: R/gtypes2genlight.R
gtypes2genlight | R Documentation |
gtypes
And genlight
objects.Convert a gtypes
object to a genlight
object
and vice-versa.
gtypes2genlight(x) genlight2gtypes(x)
x |
either a gtypes or genlight object to convert from. |
Eric Archer eric.archer@noaa.gov
initialize.gtypes, df2gtypes, sequence2gtypes, as.data.frame.gtypes, gtypes2loci, gtypes2genind
data(msats.g) # Create simple simulated SNPs gl1 <- adegenet::glSim(n.ind = 100, n.snp.nonstruc = 1000, ploidy = 2) gl1 # Convert to gtypes gt <- genlight2gtypes(gl1) gt # Convert back to genlight gl2 <- gtypes2genlight(gt) gl2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.