sub: [

[R Documentation

[

Description

Takes as input either GRanges or GRangesList "i", and returns a vector or vector list (respectively) of data from the corresponding ranges.

Strand is taken into account here - i.e. a negative range will yield reversed data (note: not reverse complement)

Usage

## S4 method for signature 'ffTrack,ANY,ANY,ANY'
x[i, gr = FALSE, raw = FALSE]

Arguments

i

GRanges or GRangesList

gr

logical flag whether to return GRanges with field $Score populated with values (=FALSE)

raw

logical flag whether to convert raw data to levels (if levels exist) (=FALSE)

Value

either vector (if i is a GRanges) or vector list (if i is a GRangesList)

Author(s)

Marcin Imielinski


mskilab/ffTrack documentation built on Feb. 6, 2023, 2:47 a.m.