match
and %in%
.
This function behaves like match
, where two elements match when
they share the same position and alt allele.
matchVariants(x, table)
x %variant_in% table
GRanges
) to match into table
; the alt
allele must be in the alt metacolumn.
GRanges
) to be matched into; the alt
allele must be in the alt metacolumn.
matchVariants
, an integer vector with the matching index in
table
for each variant in x
, or NA
if there is no
match. For %variant_in%
, a logical vector indicating whether
there was such a match.