Learn R Programming

adegenet (version 2.0.0)

read.genetix: Reading data from GENETIX

Description

The function read.genetix reads GENETIX data files (.gtx) and convert them into a genind object.

Usage

read.genetix(file = NULL, quiet = FALSE)

Arguments

file
a character string giving the path to the file to convert, with the appropriate extension.
quiet
logical stating whether a conversion message must be printed (TRUE,default) or not (FALSE).

Value

  • an object of the class genind

Details

Note: read.genetix is meant for DIPLOID DATA ONLY. Haploid data with the GENETIX format can be read into R using read.table or read.csv after removing headers and 'POP' lines, and then converted using df2genind.

References

Belkhir K., Borsa P., Chikhi L., Raufaste N. & 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).

See Also

import2genind, df2genind, read.fstat, read.structure, read.genepop

Examples

Run this code
obj <- read.genetix(system.file("files/nancycats.gtx",package="adegenet"))
obj

Run the code above in your browser using DataLab