pruneFeatures: Prune features by predicate

pruneFeaturesR Documentation

Prune features by predicate

Description

Modifies the data slot of a Collection or CollectionWithMetadata object, to exclude features for which the provided predicate function returns FALSE.

Usage

pruneFeatures(object, predicate, verbose = c(TRUE, FALSE))

## S4 method for signature 'Collection'
pruneFeatures(object, predicate, verbose = c(TRUE, FALSE))

Arguments

object

Collection

predicate

Function returning a boolean indicating if a feature should be included (TRUE) or excluded (FALSE)

verbose

boolean indicating if timed logging is desired

Value

Collection with modified data slot


VEuPathDB/veupathUtils documentation built on Feb. 8, 2025, 12:29 p.m.