Description Usage Arguments Details Value Note Author(s) References Examples
Read an Arlequin-formatted project input file (.arp). Convert
.arp data into gtypes
object. Write an input file from a
gtypes
object.
1 2 3 4 5 6 7 8 9 | arlequinRead(file)
arp2gtypes(arp, avoid.dups = FALSE)
arlequinWrite(g, file = NULL, locus = 1)
read.arlequin(file)
write.arlequin(g, file = NULL, locus = 1)
|
file |
filename of an arlequin project (.arp) file. See
|
arp |
a list of arlequin profile information and data as returned from
|
avoid.dups |
logical. Should sample identifiers be combined with
strata names to avoid duplicate identifiers between strata? If set to
|
g |
a gtypes object. |
locus |
numeric or character designation of which locus to write for haploid data. |
arlequinRead | parses a .arp file. |
arp2gtypes | converts list from parsed .arp file to gtypes. |
arlequinWrite | writes gtypes to .arp file. |
a list containing:
file | name and full path of .arp file that was read. |
profile.info | list containing parameters in [[Profile]]
section of .arp file. All parameters are provided. Parameters unset in
.arp file are set to default values. |
data.info | list containing data from [[Data]] section
of .arp file. Can contain elements for haplotype.definition
(a data.frame), distance.matrix (a matrix), sample.data
(a data.frame), or genetic.structure (a list). |
a gtypes object.
the filename of the .arp file that was written.
arp2gtypes()
will not create a gtypes
object for
Arlequin projects with relative frequency data (DataType=FREQUENCY
and FREQUENCY=REL
). If DataType=DNA
and
GenotypicData=0
, sequences for each haplotype or individual are
assumed to be from a single locus.
Eric Archer eric.archer@noaa.gov
Excoffier, L.G. Laval, and S. Schneider (2005)
Arlequin ver. 3.0: An integrated software package for population genetics
data analysis. Evolutionary Bioinformatics Online 1:47-50.
Available at http://cmpg.unibe.ch/software/arlequin3/
1 2 3 4 5 6 7 8 9 10 11 12 13 | # write test microsat data .arp file
f <- arlequinWrite(msats.g, tempfile())
# read .arp file and show structure
msats.arp <- arlequinRead(f)
print(str(msats.arp))
# convert parsed data to gtypes object
msats.arp.g <- arp2gtypes(msats.arp)
msats.arp.g
# compare to original
msats.g
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.