Calculate hybrid index, heterozygosity, and percent missing data for each sample
Usage
hybridIndex(vcfR = NULL, pm = NULL, p1 = NULL, p2 = NULL)
Arguments
- vcfR
data in vcfR format
- pm
data.frame containing two columns, "id" and "pop". The ids must match those in the vcfR object, but don't need to be in the same order. Each sample must be assigned to a population
- p1
(character) name of parental population 1
- p2
(character) name of parental population 2
Value
dataframe containing hybrid indices, heterozygosities, and percent missing data
Examples
#hybridIndex(vcfR = example.vcfR, pm = example.popmap, p1 = 0, p2 = 20)