Downloads all pathway diagrams in the KEGG Pathways database in KGML format and processes the XML to extract the interactions.

## Usage

kegg_pathways_download(max_expansion = NULL, simplify = FALSE)

## Arguments

max_expansion

Numeric: the maximum number of relations derived from a single relation record. As one entry might represent more than one molecular entities, one relation might yield a large number of relations in the processing. This happens in a combinatorial way, e.g. if the two entries represent 3 and 4 entities, that results 12 relations. If NULL, all relations will be expanded.

simplify

Logical: remove KEGG's internal identifiers and the pathway annotations, keep only unique interactions with direction and effect sign.

## Value

A data frame (tibble) of interactions.

• kegg_pathway_list

• kegg_process

• kegg_pathway_download

## Examples

if (FALSE) {