genind
and
genclone
objects, but can convert any raw data formats
that adegenet can take (fstat, structure, genetix, and genpop) as well as
genalex files exported into a csv format (see read.genalex
for
details).poppr(dat, total = TRUE, sublist = "ALL", blacklist = NULL, sample = 0,
method = 1, missing = "ignore", cutoff = 0.05, quiet = FALSE,
clonecorrect = FALSE, hier = 1, dfname = "population_hierarchy",
keep = 1, hist = TRUE, minsamp = 10, legend = FALSE)
genind
object OR a
genclone
object OR any fstat, structure, genetix,
genpop, or genalex formatted file.TRUE
(default), indices will be calculated for the
pooled populations.$pop.names
within the
genind
object) Defaults to "ALL".shufflepop
for details."zero"
and
"mean"
will set the missing values to those documented in
na.replace
. "loci"
and "geno"
will remove numeric
a number from 0 to 1 indicating the percent
missing data allowed for analysis. This is to be used in conjunction with
the flag missing
(see missingno
for details)FALSE
(default) will display a progress bar for each
population analyzed.FALSE
. must be used with the hier
and dfname
parameters, or the user will potentially get undesired
results. see clonecorrect
for details.formula
indicating the hierarchical levels to be used. The hierarchies should be
present in thehierarchy
slot. Seesethierarchy
fcharacter string
. (Only for genind objects) This is
the name of the data frame or heirarchy containing the vectors of the
population hierarchy within the other
slot of the
genind
integer
. This indicates the levels of the population
hierarchy you wish to keep after clone correcting your data sets. To
combine the hierarchy, just set keep from 1 to the length of your
hierarchy. see
logical
if TRUE
(default) and sampling > 0
,
a histogram will be produced for each population.integer
indicating the minimum number of individuals
to resample for rarefaction analysis. See rarefy
for
details.logical
. When this is set to TRUE
, a legend
describing the resulting table columns will be printed. Defaults to
FALSE
mlg
)minsamp
.ia
).sample
. Lowest value
is 1/n where n is the number of observed values.ia
).sample
. Lowest value is 1/n where n is the number of observed
values.A.H.D. Brown, M.W. Feldman, and E. Nevo. Multilocus structure of natural populations of Hordeum spontaneum. Genetics, 96(2):523-536, 1980.
Niklaus J. Gr"unwald, Stephen B. Goodwin, Michael G. Milgroom, and William E. Fry. Analysis of genotypic diversity data for populations of microorganisms. Phytopathology, 93(6):738-46, 2003
Bernhard Haubold and Richard R. Hudson. Lian 3.0: detecting linkage disequilibrium in multilocus data. Bioinformatics, 16(9):847-849, 2000.
Kenneth L.Jr. Heck, Gerald van Belle, and Daniel Simberloff. Explicit calculation of the rarefaction diversity measurement and the determination of sufficient sample size. Ecology, 56(6):pp. 1459-1461, 1975
S H Hurlbert. The nonconcept of species diversity: a critique and alternative parameters. Ecology, 52(4):577-586, 1971.
J.A. Ludwig and J.F. Reynolds. Statistical Ecology. A Primer on Methods and Computing. New York USA: John Wiley and Sons, 1988.
Masatoshi Nei. Estimation of average heterozygosity and genetic distance from a small number of individuals. Genetics, 89(3):583-590, 1978.
Jari Oksanen, F. Guillaume Blanchet, Roeland Kindt, Pierre Legendre, Peter R. Minchin, R. B. O'Hara, Gavin L. Simpson, Peter Solymos, M. Henry H. Stevens, and Helene Wagner. vegan: Community Ecology Package, 2012. R package version 2.0-5.
E.C. Pielou. Ecological Diversity. Wiley, 1975.
Claude Elwood Shannon. A mathematical theory of communication. Bell Systems Technical Journal, 27:379-423,623-656, 1948
J M Smith, N H Smith, M O'Rourke, and B G Spratt. How clonal are bacteria? Proceedings of the National Academy of Sciences, 90(10):4384-4388, 1993.
J.A. Stoddart and J.F. Taylor. Genotypic diversity: estimation and prediction in samples. Genetics, 118(4):705-11, 1988.
clonecorrect
, poppr.all
,
ia
, missingno
, mlg
data(nancycats)
poppr(nancycats)
poppr(nancycats, sample=99, total=FALSE, quiet=FALSE)
# Note: this is a larger data set that could take a couple of minutes to run
# on slower computers.
data(H3N2)
poppr(H3N2, total=FALSE, sublist=c("Austria", "China", "USA"),
clonecorrect=TRUE, hier="country", dfname="x")
Run the code above in your browser using DataLab