powered by
Extract the alleles from the REF and ALT fields
.extract_allele_names(allele_info, allele_idx)
Return a matrix with the two alleles after parsing the alleles info
a character string vector (concatenated REF and ALT field of the vcf)
Matrix with indexes of the two alleles of interest for the different markers
.extract_allele_names(c("A,C","A,C,T"),rbind(c(1,2),c(1,3)))
Run the code above in your browser using DataLab