This function returns a GRanges object containing a non-overlapping set regions derived from a supplied Genomic Ranges object.

nonOverlappingGR(gr = NULL, by = "score", decreasing = TRUE, verbose = FALSE)



A GRanges object.


The name of a column in mcols(gr) that should be used to determine how overlapping regions should be resolved. The resolution of overlapping regions also depends on decreasing. For example, if a column named "score" is used for by, decreasing = TRUE means that the highest "score" in the overlap will be retained and decreasing = FALSE means that the lowest "score" in the overlap will be retained.


A boolean value indicating whether the values in the column indicated via by should be ordered in decreasing order. If TRUE, the higher value in by will be retained.


A boolean value indicating whether the output should include extra reporting.