extract_allele_names: extract_allele_names

extract_allele_namesR 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)))


poolfstat documentation built on Sept. 8, 2023, 5:49 p.m.