Skip to contents

The plastic vocabulary, with the organisms and proteins acting on each.

Usage

plastics_list(..., limit = Inf, client = plasticdb_client())

plastics_get(
  plastic_id,
  microorganism_limit = 25,
  microorganism_offset = 0,
  microorganism_sort_by = c("papers", "result", "name"),
  microorganism_sort_order = c("desc", "asc"),
  microorganism_polarity = c("positive", "negative", "inconclusive"),
  protein_limit = 25,
  protein_offset = 0,
  protein_sort_by = c("id", "papers", "result", "plasticdb_id", "accession", "name"),
  protein_sort_order = c("desc", "asc"),
  protein_polarity = c("positive", "negative", "inconclusive"),
  evidence_scope = c("organism_or_enzyme", "whole_organism"),
  client = plasticdb_client()
)

plastics_names(client = plasticdb_client())

Arguments

...

Filters (see Details), named as the API names them.

limit

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

client

A plasticdb_client().

plastic_id

A plastic's numeric id (16 is PET).

microorganism_limit, microorganism_offset

The page of organisms embedded in the record.

microorganism_sort_by, microorganism_sort_order

How it is sorted.

microorganism_polarity

Which outcome it lists.

protein_limit, protein_offset

The page of proteins embedded in the record.

protein_sort_by, protein_sort_order

How it is sorted.

protein_polarity

Which outcome it lists.

evidence_scope

"organism_or_enzyme" or "whole_organism".

Value

A tibble with provenance, or a plasticdb_record list.

Details

  • plastics_list() lists plastics matching the filters in ... (has_evidence = TRUE: only those with evidence).

  • plastics_get() returns one plastic with one page each of its microorganisms and proteins. For every organism or protein acting on a plastic use microorganisms_list(plastic_id = ) or proteins_list(plastic = ) instead.

  • plastics_names() is every plastic's id and name (live only).

Examples

plastics_list(has_evidence = TRUE, limit = 5)[, c("id", "name")]
# \donttest{
pet <- plastics_get(16, microorganism_limit = 2, protein_limit = 2)
pet$full_name
# }