extract_allele_names {poolfstat} | R Documentation |
Extract the alleles from the REF and ALT fields
.extract_allele_names(allele_info, allele_idx)
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 |
Extract the alleles from the REF and ALT fields
Return a matrix with the two alleles after parsing the alleles info
.extract_allele_names(c("A,C","A,C,T"),rbind(c(1,2),c(1,3)))