Helper function for experiments filtering

filterExperimentByVariables(experiment, variables)

# S3 method for matrix
filterExperimentByVariables(experiment, variables)

# S3 method for SummarizedExperiment
filterExperimentByVariables(experiment, variables)

Arguments

experiment

Matrix or SummarizedExperiment object.

variables

Character vector specifying features to choose.

Value

Filtered experiment object.