filter.SummarizedExperiment: Returns rows or cols of se with matching conditions

View source: R/dplyr.R

filter.SummarizedExperimentR Documentation

Returns rows or cols of se with matching conditions

Description

Use filter() to choose rows/genes where conditions are true. Uses attached metadata to find matches.

Usage

## S3 method for class 'SummarizedExperiment'
filter(.data, axis, ...)

Arguments

.data

SummarizedExperiment to subset

axis

The axis to perform the operation on. Either row or col.

...

Logical predicates defined in terms of the variables in .data. Multiple conditions are combined with & or ,. Only rows where the condition evaluates to TRUE are kept.

Value

A SummarizedExperiment after the filter operation

Examples

#filter the rows of the example se with genes from the IL group
data(seq_se)
seq_se %>% filter(row, gene_group == "IL")

martijnvanattekum/cleanse documentation built on Nov. 20, 2023, 8:28 p.m.