qn2.read.fstat | R Documentation |
Read QuantiNemo extended format for genotype files
Read QuantiNemo (http://www2.unil.ch/popgen/softwares/quantinemo/) genotype files extended format (option 2)
qn2.read.fstat(fname, na.s = c("NA","NaN"))
fname |
quantinemo file name |
na.s |
na string used |
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
Jerome Goudet jerome.goudet@unil.ch
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
read.fstat
dat<-qn2.read.fstat(system.file("extdata","qn2_sex.dat",package="hierfstat")) sexbias.test(dat[[1]],sex=dat[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.