qn2.read.fstat: Read QuantiNemo extended format for genotype files Read...

qn2.read.fstatR Documentation

Read QuantiNemo extended format for genotype files Read QuantiNemo (http://www2.unil.ch/popgen/softwares/quantinemo/) genotype files extended format (option 2)

Description

Read QuantiNemo extended format for genotype files

Read QuantiNemo (http://www2.unil.ch/popgen/softwares/quantinemo/) genotype files extended format (option 2)

Usage

qn2.read.fstat(fname, na.s = c("NA","NaN"))

Arguments

fname

quantinemo file name

na.s

na string used

Value

dat a data frame with nloc+1 columns, the first being the population to which the individual belongs and the next being the genotypes, one column per locus; and ninds rows

sex the sex of the individuals

Author(s)

Jerome Goudet jerome.goudet@unil.ch

References

Neuenschwander S, Michaud F, Goudet J (2019) QuantiNemo 2: a Swiss knife to simulate complex demographic and genetic scenarios, forward and backward in time. Bioinformatics 35:886

Neuenschwander S, Hospital F, Guillaume F, Goudet J (2008) quantiNEMO: an individual-based program to simulate quantitative traits with explicit genetic architecture in a dynamic metapopulation. Bioinformatics 24:1552

See Also

read.fstat

Examples

  dat<-qn2.read.fstat(system.file("extdata","qn2_sex.dat",package="hierfstat"))
  sexbias.test(dat[[1]],sex=dat[[2]])

hierfstat documentation built on May 6, 2022, 1:05 a.m.