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 (
Inffor all of them).- 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".
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 usemicroorganisms_list(plastic_id = )orproteins_list(plastic = )instead.plastics_names()is every plastic'sidandname(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
# }