getInput: Get metabolites in the input

Description Usage Arguments Value Examples

View source: R/get-.R

Description

Extractor function for the metabolites specified by the user in the input

Usage

1
getInput(object)

Arguments

object

FELLA.USER object

Value

Vector of metabolites in the input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(FELLA.sample)
data(input.sample)

## No excluded compounds: the input is recovered as is
obj <- defineCompounds(
compounds = input.sample, 
data = FELLA.sample)
i1 <- getInput(obj)

## One compound does not map: the input contains only the mapped entities
obj <- defineCompounds(
compounds = c(input.sample, "intruder"), 
data = FELLA.sample)
i2 <- getInput(obj)

identical(sort(i1), sort(i2))

b2slab/FELLA documentation built on March 3, 2021, 2:22 p.m.