Downloads mol files corresponding to individual compounds or compounds in a pathway from KEGG.
Arguments
- compound_ids
Character vector of KEGG compound IDs—5 digits prepended with a "C".
- pathway_ids
Character vector of KEGG pathway or pathway module IDs—5 digits prepended with "map" or "M", respectively.
- dir
Path to a folder to save .mol files in. Folder will be created if it does not already exist.
- force
Logical; by default (
FALSE
), .mol files will not be downloaded if they are found indir
. Set this toTRUE
to download and overwrite existing files.