subset: Subsetting by indices for junctions

subset.FRASERR Documentation

Subsetting by indices for junctions

Description

Providing subsetting by indices through the single-bracket operator

Usage

## S3 method for class 'FRASER'
subset(x, i, j, by = c("j", "ss"), ..., drop = FALSE)

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

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) defining if we subset by junctions or splice sites

...

Parameters currently not used or passed on

drop

No dimension reduction is done. And the drop parameter is currently not used at all.

Value

A subsetted FraserDataSet object

Examples

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


c-mertes/FRASER documentation built on April 20, 2024, 4:32 p.m.