View source: R/gstud_to_genind.R
gstud_to_genind | R Documentation |
The function converts a file formatted to use gstudio or popgraph package into a genind object (adegenet package)
gstud_to_genind(x, pop_col, ind_col = NULL)
x |
An object of class |
pop_col |
A character string indicating the name of the column with
populations' names in |
ind_col |
(optional) A character string indicating the name of the
column with individuals' ID in |
This function uses functions from pegas package. It can handle genetic data where alleles codings do not have same length, (99:101, for example). If the names of the loci include '.' characters, they will be replaced by '_'.
An object of class genind
.
P. Savary
data("data_ex_gstud") x <- data_ex_gstud pop_col <- "POP" ind_col <- "ID" data_genind <- gstud_to_genind(x, pop_col, ind_col)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.