extract_allele_names {poolfstat} | R Documentation |
extract_allele_names
Description
Extract the alleles from the REF and ALT fields
Usage
.extract_allele_names(allele_info, allele_idx)
Arguments
allele_info |
a character string vector (concatenated REF and ALT field of the vcf) |
allele_idx |
Matrix with indexes of the two alleles of interest for the different markers |
Details
Extract the alleles from the REF and ALT fields
Value
Return a matrix with the two alleles after parsing the alleles info
Examples
.extract_allele_names(c("A,C","A,C,T"),rbind(c(1,2),c(1,3)))
[Package poolfstat version 2.2.0 Index]