Skip to contents

A helper function for coverage_to_histogram that returns a dataframe from a set of ranges

Usage

generate_granges_from_parent_and_ranges(parent, ranges_dataframe)

Arguments

parent

A GRange object from which to extract chromosome and strand

ranges_dataframe

A dataframe with start and end columns representing genomic coordinates for the new GRanges object

return A GRanges object with the chromosome and strand of the parent and the ranges of the ranges_dataframe