extractFeatures: Extract features from Data objects

Description Usage Arguments Value Examples

View source: R/extractFeatures.R

Description

Given a Data object and either a set of regular expressions to select or discard features or a set of features, return the same object type as the original, but only with a subset of features.

Usage

1
extractFeatures(x, select = NULL, drop = NULL, features = NULL)

Arguments

x

The original Data object, containing the superset of features

select

A vector of strings (regular expressions), specifying features to keep

drop

A vector of strings (regular expressions), specifying features to drop

features

For performance reasons, the complete set of features to keep can be determined in advance and specified here (in this case, arguments select/drop will be ignored if not NULL)

Value

A Data object of the same type as x, but only storing a subset of all features.

Examples

1
2
3
4
features <- c("^Cells.Location_Center_X$",
              "^Cells.Location_Center_Y$")
data <- PlateData(PlateLocation("J101-2C"))
data <- extractFeatures(data, features)

nbenn/singleCellFeatures documentation built on May 23, 2019, 12:24 p.m.