subEset {GOexpress} | R Documentation

## Subset an ExpressionSet to values of phenotypic data columns.

### Description

Given a list of column names and corresponding values present in the phenoData slot of an ExpressionSet object, this method returns the subset of the ExpressionSet restricted to samples associated with the given values in the given columns.

### Usage

        subEset(eSet, subset = list())

### Arguments

`eSet` | `ExpressionSet` of the `Biobase` package including a gene-by-sample expression matrix in the `AssayData` slot, and a phenotypic information data-frame in the `phenodate` slot. In the expression matrix, row names are Ensembl gene identifiers or probeset identifiers, and column names are sample identifiers. In the phentypic data-frame, row names are sample idenfifiers, column names are grouping factors and phenotypic traits usable for the one-way ANOVA.
`subset` | A named list to subset `eSet`. Names must be column names existing in colnames(pData(eSet)). Values must be vectors of values existing in the corresponding column of pData(eSet).

### Value

A subset of the given ExpressionSet restricted to samples associated with the given values in the given columns

### Author(s)

Kevin Rue-Albrecht

### See Also

Class `ExpressionSet`.

### Examples

    # Load example data set
    data(AlvMac)

    # Subset it to only samples of "CN" and "MB" treatments, and also only "2H",
    # "6H", and "24H" time-points
    sub.AlvMac <- subEset(
        eSet=AlvMac,
        subset=list(
            Treatment=c("CN","MB"),
            Time=c("2H","6H")
            )
        )

[Package GOexpress version 1.28.0 Index]