gr.start: Get GRanges corresponding to beginning of range

View source: R/gUtils.R

gr.startR Documentation

Get GRanges corresponding to beginning of range

Description

Get GRanges corresponding to beginning of range

Usage

gr.start(x, width = 1, force = FALSE, ignore.strand = TRUE, clip = TRUE)

Arguments

x

GRanges object to operate on

width

integer Specify subranges of greater width including the start of the range. (default = 1)

force

boolean Allows returned GRanges to have ranges outside of its Seqinfo bounds. (default = FALSE)

ignore.strand

boolean If set to FALSE, will extend '-' strands from the other direction (default = TRUE)

clip

boolean Trims returned GRanges so that it does not extend beyond bounds of the input GRanges (default = TRUE)

Value

GRanges object of width 1 ranges representing start of each genomic range in the input.

Examples


gr.start(example_dnase, width=200)
gr.start(example_dnase, width=200, clip=TRUE)


mskilab/gUtils documentation built on June 6, 2023, 12:08 a.m.