View source: R/utils.dart2genlight.r
utils.dart2genlight | R Documentation |
Converts a DArT file (read via read.dart
) into an
genlight object adegenet
.
utils.dart2genlight(
dart,
ind.metafile = NULL,
covfilename = NULL,
probar = TRUE,
verbose = NULL
)
dart |
A dart object created via read.dart [required]. |
ind.metafile |
Optional file in csv format with metadata for each individual (see details for explanation) [default NULL]. |
covfilename |
Depreciated, use parameter ind.metafile. |
probar |
Show progress bar [default TRUE]. |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default NULL]. |
The ind.metadata file needs to have very specific headings. First a heading called id. Here the ids have to match the ids in the dartR object. The following column headings are optional. pop: specifies the population membership of each individual. lat and lon specify spatial coordinates (in decimal degrees WGS1984 format). Additional columns with individual metadata can be imported (e.g. age, gender).
A genlight object. Including all available slots are filled. loc.names, ind.names, pop, lat, lon (if provided via the ind.metadata file)
Custodian: Bernd Gruber (Post to https://groups.google.com/d/forum/dartr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.