Removes (or includes) annotations such that the named column excludes (or includes) the specified levels.
Usage
filter_venn(
factor_name,
group_column = NULL,
tables = NULL,
levels,
mode = "exclude",
perl = FALSE,
fixed = FALSE,
...
)
Arguments
- factor_name
(character) The name of the column(s) in the
annotation_source
to generate a chart from. Up to seven columns can be compared for a singleannotation_source
.- group_column
(character, NULL) The name of the column in the
annotation_source
to create groups from in the Venn diagram. This parameter is ignored if!is.null(tables)
, as each table is considered to be a group. This parameter is also ignored if more than onefactor_name
is provided, as each column is considered a group. The default isNULL
.- tables
(list, NULL) A list of
annotation_sources
to generate the venn groups from. If the only table of interest is the table coming in frommodel_apply
then settables = NULL
and usegroup_column
. The default isNULL
.- levels
(character) The venn diagram levels to filter by.
- mode
(character) Filter mode. Allowed values are limited to the following:
"exclude"
: The specified levels are removed from the annotation table."include"
: Only the specified levels 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_venn
object with the following output
slots:
filtered | (annotation_source) Annotation_source after filtering. |
flags | (data.frame) A list of flags indicating which annotations were removed. |