change_pop_names | R Documentation |
Transform into a factor the STRATA column, change names and reorder the levels.
change_pop_names(data, pop.levels = NULL, pop.labels = NULL)
data |
14 options for input (diploid data only): VCFs (SNPs or Haplotypes,
to make the vcf population ready),
plink (tped, bed), stacks haplotype file, genind (library(adegenet)),
genlight (library(adegenet)), gtypes (library(strataG)), genepop, DArT,
and a data frame in long/tidy or wide format. To verify that radiator detect
your file format use DArT and VCF data: radiator was not meant to generate alleles and genotypes if you are using a VCF file with no genotype (only genotype likelihood: GL or PL). Neither is radiator able to magically generate a genind object from a SilicoDArT dataset. Please look at the first few lines of your dataset to understand it's limit before asking raditor to convert or filter your dataset. |
pop.levels |
(optional, string) This refers to the levels in a factor. In this
case, the id of the pop.
Use this argument to have the pop ordered your way instead of the default
alphabetical or numerical order. e.g. |
pop.labels |
(optional, string) Use this argument to rename/relabel
your pop or combine your pop. e.g. To combine |
Thierry Gosselin thierrygosselin@icloud.com
read_strata
, summary_strata
,
individuals2strata
,
join_strata
, generate_strata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.