Description Usage Arguments Details Author(s) Examples
Write a gtypes object to file(s).
1 2 3 4 5 6 7 8 9 |
g |
a gtypes object. |
label |
label for filename(s). Default is the gtypes description if present. |
folder |
folder where file(s) should be written to. If |
by.strata |
if |
as.frequency |
logical indicating if haploid data should be output as frequency tables. |
freq.type |
if |
... |
optional arguments controlling what information is included in the genotype file and how it is formatted passed to as.matrix. |
Writes a comma-delimited (.csv) file of genotypes and if sequences
are present, a .fasta file for each locus. If haploid and as.frequency
is TRUE
, then frequency tables for each locus are written to
separate files.
Eric Archer eric.archer@noaa.gov
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Write microsatellites with one column per locus
data(msats.g)
writeGtypes(msats.g, one.col = TRUE)
# Write control region data as frequency tables
data(dloop.g)
writeGtypes(dloop.g, as.frequency = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.