View source: R/convert_gt_data.R
separateByPopulations | R Documentation |
This function separates a genotype matrix into two data frames based on population assignments.
It's designed to work with the batches or windows processed by process_vcf_in_batches
and process_vcf_in_windows
.
separateByPopulations(
sep_gt,
pop1_names,
pop2_names,
ploidy = 2,
rm_ref_alleles = TRUE
)
sep_gt |
A genotype matrix similar to the |
pop1_names |
A character vector of individual names for the first population. |
pop2_names |
A character vector of individual names for the second population. |
rm_ref_alleles |
Logical, whether variants that only have the reference allele should be removed from the respective subpopulations data frame. (Default = TRUE) |
A list containing two data frames, one for each population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.