powered by
Scan allele information in ALT field of a vcf
.scan_allele_info(allele_info)
Return a vector with two elements consisting i) the number of alleles (1+number of comma) and ii) 0 or 1 if an indel is detected
a character string vector (ALT field of the vcf)
Scan allele information in ALT field of a vcf to identify the number of alleles and if there is indels
.scan_allele_info(c("A,C","T","AAT"))
Run the code above in your browser using DataLab