gr.end: Get the right ends of a 'GRanges'

View source: R/gUtils.R

gr.endR Documentation

Get the right ends of a GRanges

Description

Alternative to GenomicRanges::flank that will provide end positions *within* intervals

Shortcut for gr.end

gr1 <- GRanges(1, IRanges(10,20), strand="+") gr1

Shortcut for gr.end

gr1 <- GRanges(1, IRanges(10,20), strand="+") gr1

Shortcut for gr.end

gr1 <- GRanges(1, IRanges(10,20), strand="+") gr1

Shortcut for gr.end

gr1 <- GRanges(1, IRanges(10,20), strand="+") gr1

Usage

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

x %)% ...

x %))% ...

x %(% ...

x %((% ...

Arguments

x

GRanges object

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 (default = TRUE)

y

num bases to get from left side of interval

Value

GRanges object of width = width ranges representing end of each genomic range in the input.

GRanges right sides of input intervals

GRanges 3' sides of input intervals

GRanges left sides of input intervals

GRanges 5' sides of input intervals

Author(s)

Marcin Imielinski

Marcin Imielinski

Marcin Imielinski

Marcin Imielinski

Marcin Imielinski

Examples

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

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