powered by
Search for the closest indels of the markers
.find_indelneighbor_idx(contig, position, indels_idx, min_dist, indels_size)
Return a vector consisting of 1 (if the marker is close to an indel) or 0 (if not)
a character string vector corresponding to the CHR field value of the vcf for the markers
an integer vector corresponding to the POSITION value for the markers
vector of (0-indexed) indices of indels
same as min.dist.from.indels option in vcf2pooldata
vcf2pooldata
size of the indels (associated to indels_idx)
Identify if the SNPs are close to an indel
.find_indelneighbor_idx(c("chr1","chr1","chr1"),c(1000,1004,1020),1,5,2)
Run the code above in your browser using DataLab