intersect_VRanges: Intersect VRanges objects

Description Usage Arguments Value Examples

View source: R/intersect_VRanges.R

Description

Identifies features from B that overlap with A, removes the overlapping features from A and returns the remaining portion of A. If both A and B are VRanges objects, then this function is allele specific.

Usage

1

Arguments

A

VRanges object to filter from and return

B

VRanges or GRanges object with alleles to keep

Value

This function returns VRanges object A retaining only the alleles that overlap with VRanges object B.

Examples

1
2
3
4
## Not run: 
variants <- intersect_VRanges(A = variants, B = positions_of_interest)

## End(Not run)

andygxzeng/ECSI documentation built on Feb. 6, 2021, 8:53 a.m.