read4pcadapt
is a function which output may be read by the main function pcadapt
. It currently supports two formats.
The first one is a text file containing the genotype matrix with individuals in rows and genotype markers in columns (same format as for the R
package LEA).
The second supported format is the .ped format.read4pcadapt(x = NULL, option = "genotype", header = FALSE, sep = "",
transpose = FALSE, mapheader = FALSE, mapsep = "\t",
na.strings = c("-9", "NA", "NaN"))
## see also ?pcadapt for examples
Run the code above in your browser using DataLab