read4pcadatp allows the user to display individuals of the same pre-defined subpopulation with the same color when using the option
"scores" in pcadapt. Creates a global variable storing the lists of indices for each subpopulation.
Usage
read4pcadapt(x = NULL, option = "genotype")
Arguments
x
can be a file path or a file name, depending on the chosen option.
option
a character string specifying the type of data going to be read.