BiocSet {BiocSet} | R Documentation

## BiocSet class

### Description

The `BiocSet` constructor, the show method, the slot accessors, and creating a `BiocSet` object from an element set tibble rather than character vector(s).

### Usage

    BiocSet(..., active = c("elementset", "element", "set"))

    ## S4 method for signature 'BiocSet'
    show(object)

    es_element(x)

    ## S4 method for signature 'BiocSet'
    es_element(x)

    es_set(x)

    ## S4 method for signature 'BiocSet'
    es_set(x)

    es_elementset(x)

    ## S4 method for signature 'BiocSet'
    es_elementset(x)

    BiocSet_from_elementset(elementset, element, set)

### Arguments

`...` | Named character() vectors of element sets. Each character vector is an element set. The name of the character vectors are the name of the sets.
`active` | A character to indicate which tibble is active. The default is "elementset".
`object` | A `BiocSet` object.
`x` | A `BiocSet` object.
`elementset` | A tibble with element set information.
`element` | A tibble with element information.
`set` | A tibble with set information.

### Value

An S4 `BiocSet` object shown as a tripple tibble, where each slot is a tibble.

### Slots

`element`

  The element tibble from 'tbl_elementset'

`set`

  The set tibble from 'tbl_elementset'

`elementset`

  The elementset tibble created from user input

`active`

  Character, indicates which tibble is active

### Examples

    BiocSet(set1 = letters, set2 = LETTERS)

    set.seed(123)
    element <-
       tibble(
           element = letters[1:10],
           v1 = sample(10),
           v2 = sample(10)
       )
    set <-
       tibble(
           set = LETTERS[1:2],
           v1 = sample(2),
           v2 = sample(2)
       )
    elementset <-
       tibble(
           element = letters[1:10],
           set = sample(LETTERS[1:2], 10, TRUE)
       )
    BiocSet_from_elementset(elementset, element, set)

[Package BiocSet version 1.0.1 Index]