writeGtypes | R Documentation |
gtypes
Write a gtypes object to file(s).
writeGtypes(
g,
label = NULL,
folder = NULL,
by.strata = TRUE,
as.frequency = FALSE,
freq.type = c("freq", "prop"),
as.haplotypes = TRUE,
...
)
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 |
as.haplotypes |
write sequences as haplotypes ( |
... |
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
## 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.