A function to remove loci in a BSseq object by intersection with a GRanges object. This function is called by the filter_loci_by_snps() function.
Arguments
bs a BSseq object.
gr a GRanges object of the locations to be removed. This object can contain CpG-level locations (as with SNPs), region-level locations, or a combination.
Values
A BSseq object with loci overlapping remove_gr removed.
Function call
filter_loci_by_location(bs, gr)
Description
A function to remove loci in a
BSseq
object by intersection with aGRanges
object. This function is called by thefilter_loci_by_snps()
function.Arguments
bs
aBSseq
object.gr
aGRanges
object of the locations to be removed. This object can contain CpG-level locations (as with SNPs), region-level locations, or a combination.Values
A
BSseq
object with loci overlappingremove_gr
removed.Tests
Test correct removal.