find_indelneighbor_idx {poolfstat} | R Documentation |
find_indelneighbor_idx
Description
Search for the closest indels of the markers
Usage
.find_indelneighbor_idx(contig, position, indels_idx, min_dist, indels_size)
Arguments
contig |
a character string vector corresponding to the CHR field value of the vcf for the markers |
position |
an integer vector corresponding to the POSITION value for the markers |
indels_idx |
vector of (0-indexed) indices of indels |
min_dist |
same as min.dist.from.indels option in |
indels_size |
size of the indels (associated to indels_idx) |
Details
Identify if the SNPs are close to an indel
Value
Return a vector consisting of 1 (if the marker is close to an indel) or 0 (if not)
Examples
.find_indelneighbor_idx(c("chr1","chr1","chr1"),c(1000,1004,1020),1,5,2)
[Package poolfstat version 2.2.0 Index]