ExtractField: Extract a specific field from a brenda.entries object.

Description Usage Arguments Value Examples

View source: R/query.R

Description

Retrieve one field from all the brenda.entry objects. A column of EC numbers will be added to distinguish different enzymes.

Usage

1
ExtractField(res, field, entries = NULL)

Arguments

res

A brenda.entries object from QueryBrenda().

field

A string indicating the field to extract. Nested fields should be separated by $, e.g. parameters$ph.optimum.

entries

A character vector with values of EC numbers. This should be a subset of names(res).

Value

A tibble with all columns from the tibble in the given field, and extra columns containing the EC numbers and organisms.

Examples

1
2
3
4
5
6
df <- ReadBrenda(system.file("extdata", "brenda_download_test.txt",
                          package = "brendaDb"))
res <- QueryBrenda(brenda = df, EC = c("1.1.1.1", "6.3.5.8"),
                   n.core = 2)
ExtractField(res, field = "molecular$stability$general.stability")
ExtractField(res, field = "structure$subunits")

brendaDb documentation built on Nov. 8, 2020, 5:16 p.m.