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

View source: R/query.R

ExtractFieldR Documentation

Extract a specific field from a brenda.entries object.

Description

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

Usage

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

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")

y1zhou/brendaDb documentation built on Dec. 12, 2022, 3:43 a.m.