read.gtx: Read Genetix Data Files

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/IO.R

Description

This function reads allelic data from a Genetix file (.gtx).

Usage

1

Arguments

file

a file name specified by either a variable of mode character or a quoted string.

Value

A data frame with class c("loci", "data.frame").

Note

The package adegenet has a similar function, read.genetix, but it returns an object of class "genind".

Author(s)

Emmanuel Paradis

References

Belkhir, K., Borsa, P., Chikhi, L., Raufaste, N. and Bonhomme, F. (1996–2004) GENETIX 4.05, logiciel sous Windows(TM) pour la genetique des populations. Laboratoire Genome, Populations, Interactions, CNRS UMR 5000, Universite de Montpellier II, Montpellier (France). http://www.genetix.univ-montp2.fr/genetix/intro.htm

See Also

read.loci, write.loci, read.vcf, read.genetix

Examples

1
2
3
require(adegenet)
(X <- read.gtx(system.file("files/nancycats.gtx", package = "adegenet")))
## compare with the example in ?read.genetix

Example output

Loading required package: ape
Loading required package: adegenet
Loading required package: ade4

   /// adegenet 2.0.1 is loaded ////////////

   > overview: '?adegenet'
   > tutorials/doc/questions: 'adegenetWeb()' 
   > bug reports/feature requests: adegenetIssues()



Attaching package: 'pegas'

The following object is masked from 'package:ade4':

    amova

The following object is masked from 'package:ape':

    mst

Allelic data frame: 237 individuals
                    9 loci
                    1 additional variable

pegas documentation built on May 29, 2017, 6:33 p.m.