.txt
file in GenePop
format into an object of type genind
The main work is done by the function adegenet::read.genepop
. However, that function requires text files with an extension of .gen
, whereas such files usually have extension .txt
. The sole purpose of this function is to work around the “.gen” requirement.
genepop.to.genind(name, quiet = TRUE, ncode = 3)
the name of a file in GenePop
format
whether a conversion message should be printed
Set to the number of characters per allele name
an object of class genind