subset: Subsetting by indices for junctions

Description Usage Arguments Value Examples

Description

Providing subsetting by indices through the single-bracket operator

Usage

1
2
3
4
5
## S3 method for class 'FRASER'
subset(x, i, j, by = c("j", "ss"))

## S4 method for signature 'FraserDataSet,ANY,ANY,ANY'
x[i, j, by = c("j", "ss")]

Arguments

x

A FraserDataSet object

i

A integer vector to subset the rows/ranges

j

A integer vector to subset the columns/samples

by

a character (j or ss) definig if we subset by junctions or splice sites

Value

A subsetted FraserDataSet object

Examples

1
2
3
4
    fds <- createTestFraserDataSet()
    fds[1:10,2:3]
    fds[,samples(fds) %in% c("sample1", "sample2")]
    fds[1:10,by="ss"]

FRASER documentation built on Feb. 3, 2021, 2:01 a.m.