funprofiler reports KEGG Orthology (KO) identifiers only (e.g. K00845).
funprofiler_kegg() reads the KEGG BRITE hierarchy ko00001 ("KEGG
Orthology (KO)"), which gives each KO its gene symbol, name and EC numbers,
and places it in KEGG pathways and their classes. Give the result (or the
file) to funprofiler_aggregate() as kegg.
Value
A tibble with one row per KO and place in the hierarchy, with
columns ko, ko_symbol, ko_name, ec, category, class,
pathway, pathway_id and type. Filter it (e.g. to drop the
"Organismal Systems" and "Human Diseases" categories) before passing it
to funprofiler_aggregate() to limit the pathways recorded.
Details
The hierarchy has four levels, and a KO can sit in many places in it:
- A,
category e.g. "Metabolism", "Environmental Information Processing", "Human Diseases", plus "Brite Hierarchies" and "Not Included in Pathway or Brite".
- B,
class e.g. "Carbohydrate metabolism", "Membrane transport", "Drug resistance: antimicrobial".
- C,
pathway a KEGG pathway map, e.g. "Glycolysis / Gluconeogenesis" (
pathway_id"ko00010"), or, under "Brite Hierarchies", a BRITE table such as "Transporters" ("ko02000").typesays which:"pathway","brite"or"other".- D
the KO itself.
Download. If file does not exist, the hierarchy is downloaded from
the KEGG REST API (https://rest.kegg.jp/get/br:ko00001, about 4 MB) and
saved there, so later calls read the saved copy. Save it once per project
(e.g. "data/kegg/ko00001.keg") to keep the annotation fixed for the
whole analysis; the KEGG release date is printed and kept in the
"kegg_updated" attribute of the result, for your methods section. The
KEGG REST API is free for academic use; see
https://www.kegg.jp/kegg/legal.html for other uses. KEGG data may not be
redistributed, which is why funprofiler2lab does not include it.
See also
funprofiler_aggregate(), which joins it to the profiles.
Examples
if (FALSE) { # \dontrun{
kegg <- funprofiler_kegg("data/kegg/ko00001.keg")
kegg
# the KOs of one pathway
kegg[kegg$pathway_id == "ko01501", c("ko", "ko_symbol", "ko_name")]
# record only pathways of microbial relevance
kegg_microbial <- kegg[!kegg$category %in% c("Organismal Systems",
"Human Diseases") |
kegg$class == "Drug resistance: antimicrobial", ]
} # }