filtering: Manipulating HCAMatrix filters

filteringR Documentation

Manipulating HCAMatrix filters

Description

Manipulating HCAMatrix filters

Usage

filter(x, expr)

filters(x)

filters(x) <- value

## S4 method for signature 'HCAMatrix'
filter(x, expr)

## S4 method for signature 'HCAMatrix'
filters(x)

## S4 replacement method for signature 'HCAMatrix'
filters(x) <- value

Arguments

x

the object on which to set the filter list member

expr

a filter expression in the form of the right hand side of a formula, where bare names (without quotes) are allowed if they are available fields associated with the HCAMAtrix object, x

value

A list of structured filters (internal use)

Value

A HCAMatrix object with the filter field replaced by the specified filter expression

filter

The filter is a convenient setter for the filter element in HCAMatrix objects.

filters

The filters (plural) function is a safe accessor for the filters already present in the 'HCAMAtrix' API object. The filter can also be set using the 'filters<-' function setter (advanced use).

Note

Filtering documentation provided by the 'GenomicDataCommons' package

Examples

# make an HCAMatrix object to start
hca <- HCAMatrix()

head(available_filters(hca))

hca1 <- filter(hca, genes_detected >= 500)
filters(hca1)


Bioconductor/HCAMatrixBrowser documentation built on Aug. 31, 2024, 5:38 a.m.