subsetByFeature {QFeatures} | R Documentation

## Subset by feature name

### Description

This function will find the assays and features that match directly (by name) or indirectly (through aggregation) the feature name.

The `subsetByFeature` function will first identify the assay that contains the feature(s) `i` and filter the rows matching these feature names exactly. It will then find, in the other assays, the features that produces `i` through aggregation with the `aggregateQFeatures` function.

See QFeatures for an example.

### Arguments

`x` | An instance of class QFeatures.
`y` | A `character` of feature names present in an assay in `x`.
`...` | Additional parameters. Ignored.

### Value

An new instance of class QFeatures containing relevant assays and features.

### Examples

    example(aggregateFeatures)

    ## Retrieve protein 'ProtA' and its 2 peptides and 6 PSMs
    feat1["ProtA", , ]

[Package QFeatures version 1.2.0 Index]