A helper function for coverage_to_histogram that returns a dataframe from a set of ranges
Source:R/coverage_to_histogram.R
generate_granges_from_parent_and_ranges.Rd
A helper function for coverage_to_histogram that returns a dataframe from a set of ranges
Arguments
- parent
A GRange object from which to extract chromosome and strand
- ranges_dataframe
A dataframe with
start
andend
columns representing genomic coordinates for the new GRanges objectreturn A GRanges object with the chromosome and strand of the parent and the ranges of the ranges_dataframe