sliceRanges: Slice a certain length from a set of genomic ranges.

View source: R/correctInversionPhasing.R

sliceRangesR Documentation

Slice a certain length from a set of genomic ranges.

Description

This function takes as an input a set of ranges stored in GRanges object and export slice of certain length starting either from the first or last range.

Usage

sliceRanges(gr, slice.size = 1e+06, from = "start")

Arguments

gr

A GRanges object containing a set of genomic ranges.

slice.size

A total length of sliced ranges to be reported given the starting range defined by 'from'.

from

Set to 'start' or 'end' if to start counting bases to slice from the first or the last range.

Value

A GRanges object.

Author(s)

David Porubsky


daewoooo/StrandPhaseR documentation built on April 7, 2024, 7:13 p.m.