Skip to contents

Curated degradation pathways: ordered reaction steps from a polymer to its metabolites.

Usage

pathways_list(limit = Inf, client = plasticdb_client())

pathways_get(pathway_id, client = plasticdb_client())

pathways_for_plastic(plastic_id, client = plasticdb_client())

pathways_graph(plastic_id, pathway_id = NULL, client = plasticdb_client())

Arguments

limit

The most records to return (Inf for all of them).

client

A plasticdb_client().

pathway_id

A pathway's id (in pathways_graph(), NULL for all of the plastic's pathways).

plastic_id

A plastic's id (16 is PET).

Value

A tibble with provenance, a plasticdb_record list, or (for the graph) a list of two tibbles.

Details

  • pathways_list() lists every pathway; pathways_get() returns one with its steps; pathways_for_plastic() every pathway that degrades one plastic.

  • pathways_graph() returns a plastic's pathways as a graph of compounds and reactions: a list of nodes and edges tibbles (each element's attributes, flattened), ready for igraph::graph_from_data_frame(g$edges, vertices = g$nodes).

Examples

g <- pathways_graph(16)
g$edges[, c("source", "target", "label")]
# \donttest{
pathways_list()
# }