dumpStructure: Export Structure file

Description Usage Arguments Author(s)

View source: R/dumpStructure.r

Description

dumpStructure() exports a file in Structure format

Usage

1
2
3
dumpStructure(x, markers, filename, useIndNames = TRUE, popNumber = TRUE,
  replaceBP = TRUE, basePairs = c("A", "C", "G", "T", "-", "0"),
  replacements = c("1", "2", "3", "4", "5", "-9"))

Arguments

x

the list of populations to be included in Genepop file

markers

the markers to be included in Genepop file

filename

what would you like to name the exported Genepop file?

useIndNames

would you like to use individual names useIndNames = TRUE or population name useIndNames = FALSE as the individual identifiers

popNumber

would you like to include a column in your Structure file that contains the putative population of origin?

replaceBP

would you like to replace the allele names with something else. By default, dumpGenepop() replaces c("A","C","G","T","-") with c("1","2","3","4","5"). This can be set to "FALSE" to keep data in the original imported format. Alternatively, the basePairs and replacements arguments can be modified to accommodate any desired import or export format.

basePairs

If replaceBP = TRUE, the nomenclature used for the imported genotype data

replacements

If replaceBP = TRUE, what would you like to replace the alleles with?

Author(s)

Eric Grau and Mike Ackerman


mackerman44/idfgen documentation built on May 21, 2019, 10:51 a.m.