subset.FRASER {FRASER} | R 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"))

    ## 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

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

[Package FRASER version 1.6.1 Index]