Filter out regions based on a GRanges object

# S4 method for DsATAC
filterByGRanges(.object, gr, method = "black")

Arguments

.object

DsATAC object

gr

GRanges object used for filtering

method

character string specifying the method. Can be "white" to treat gr as a whitelist (i.e. only regions and fragments overlapping with it are retained) or "black" (default) to treat it as a blacklist.

Value

a new, filtered DsATAC object

Author

Fabian Mueller