elementset_funs: Functions applied to elementsets in a 'BiocSet' object

elementset_funsR Documentation

Functions applied to elementsets in a BiocSet object

Description

All of the major methods applied to a BiocSet object can be explicitly applied to the elementset tibble. These functions bypass the need to use the es_activate function by indicating what function should be used on the elementset tibble.

Usage

filter_elementset(.data, ...)

select_elementset(.data, ...)

mutate_elementset(.data, ...)

summarise_elementset(.data, ...)

arrange_elementset(.data, ...)

left_join_elementset(.data, ...)

tibble_from_elementset(.data)

data.frame_from_elementset(.data)

Arguments

.data

A BiocSet object.

...

Additional arguments passed to the function.

Value

A BiocSet object.

For tibble_from_elementset, a tibble.

For data.frame_from_elementset, a data.frame.

Examples

es <- BiocSet(set1 = letters, set2 = LETTERS)
filter_elementset(es, element == "a" | element == "A")

es %>% select_elementset(element)

es %>% mutate_elementset(pval = rnorm(1:52))

es %>% summarise_elementset(n = n())

es %>% arrange_elementset(desc(element))

tbl <- tibble(x = 5:6, y = c("set1", "set2"))
es %>% left_join_elementset(tbl, by = c(set = "y"))

tibble_from_elementset(es)

data.frame_from_elementset(es)

Bioconductor/BiocSet documentation built on Oct. 31, 2024, 11:43 p.m.