Removes (or includes) annotations such that the named column excludes (or includes) the specified labels.
Arguments
- column_name
(character) The column name to filter.
- labels
(character) The labels to filter by. Uses
[grepl()]so regex is accepted e.g. for partial matching or labels.- mode
(character) Filter mode. Allowed values are limited to the following:
"exclude": The specified labels are removed from the annotation table."include": Only the specified labels are retained in the annotation table.
The default is
"exclude".- perl
(logical) Use a Perl-compatible regex. The default is
FALSE.- fixed
(logical) Use exact matching. The default is
FALSE.- ...
Additional slots and values passed to
struct_class.
Value
A filter_labels object with the following output slots:
filtered | (annotation_source) The annotation_source after filtering. |
flags | (data.frame) A list of flags indicating which annotations had a matching label. |