get_column_filters: Get or set sample-related contraints for query

View source: R/query_builder_wrappers.R

get_column_filtersR Documentation

Get or set sample-related contraints for query

Description

Get or set sample-related contraints for query

Usage

get_column_filters(qb)

set_column_filters(qb, ...)

Arguments

qb

a QueryBuilder object constructed using the QueryBuilder function

...

one or more boolean predicates as either strings or unevaluated expressions

Value

get_column_filters returns the current filters as a list of strings. set_column_filters returns a new QueryBuilder object with the column filters set to the value of column_filters.

Examples

qb <- QueryBuilder(compilation = "gtex", regions = "CD99")
# column filters set using a string
qb <- set_column_filters(qb, "SMTS == Brain")
get_column_filters(qb)
# column filters set using unevaluated expression
qb <- set_column_filters(qb, SMTS == "Spleen")
get_column_filters(qb)

langmead-lab/snapcount documentation built on May 1, 2022, 4:27 a.m.