subsetByGenes {SeqGSEA} | R Documentation

## Get a new ReadCountSet with specified gene IDs.

### Description

Get a new ReadCountSet with specified gene IDs.

### Usage

    subsetByGenes(RCS, genes)

### Arguments

`RCS` | a ReadCountSet object.
`genes` | a list of gene IDS.

### Value

This function returns a new ReadCountSet object, with changes in slots `assayData`, `featureData`, `featureData_gene`, and `permute_NBstat_exon` and `permute_NBstat_gene` if they have been calculated.

### Author(s)

Xi Wang, xi.wang@newcastle.edu.au

### See Also

`newReadCountSet`, `ReadCountSet`

### Examples

    data(RCS_example, package="SeqGSEA")
    RCS_example
    genes <- c("ENSG00000000938", "ENSG00000000005")
    RCS_sub <- subsetByGenes(RCS_example, genes)
    RCS_sub

[Package SeqGSEA version 1.20.0 Index]