as.genind.DNAbin: as.genind.DNAbin

Description Usage Arguments Value Examples

Description

Convert a DNAbin object into a genind object

Usage

1

Arguments

x

object of class DNAbin

pops

vector of population assignemnts for each sequence

Value

genind

Examples

1
2
3
4
library(pegas)
data(woodmouse)
wm <- as.genind.DNAbin(woodmouse, rep(c("A", "B", "C"), each=5))
diff_stats(wm)

Example output

Loading required package: adegenet
Loading required package: ade4

   /// adegenet 2.0.1 is loaded ////////////

   > overview: '?adegenet'
   > tutorials/doc/questions: 'adegenetWeb()' 
   > bug reports/feature requests: adegenetIssues()


Loading required package: ape

Attaching package: 'pegas'

The following object is masked from 'package:ape':

    mst

The following object is masked from 'package:ade4':

    amova

$per.locus
          Hs       Ht        Gst Gprime_st D
L1 0.8888889 0.962963 0.07692308         1 1

$global
        Hs         Ht    Gst_est  Gprime_st      D_het     D_mean 
0.88888889 0.96296296 0.07692308 1.00000000 1.00000000 1.00000000 

mmod documentation built on May 1, 2019, 10:55 p.m.