Skip to content

Commit d6b2b72

Browse files
authored
Merge pull request #458 from stitam/foodb
Implement access to FooDB
2 parents f77f423 + c61608b commit d6b2b72

12 files changed

Lines changed: 1384 additions & 63 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ Brief description of the PR
3333
PR task list:
3434
- [ ] Update NEWS
3535
- [ ] Add tests (if appropriate)
36+
- [ ] Knit README.Rmd to update test coverage badge (optional, requires ~40 GB of local databases; if skipped, a maintainer will knit and commit the updated README before merge)
3637
- [ ] Update documentation with `devtools::document()`
3738
- [ ] Check package passed

.github/workflows/test-coverage.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ export(cts_convert)
5151
export(cts_from)
5252
export(cts_to)
5353
export(db_download_chembl)
54+
export(db_download_foodb)
5455
export(etox_basic)
5556
export(etox_targets)
5657
export(etox_tests)
5758
export(find_db)
5859
export(fn_percept)
60+
export(foodb_convert)
61+
export(foodb_list_compounds)
62+
export(foodb_query)
5963
export(get_chebiid)
6064
export(get_cid)
6165
export(get_csid)

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## NEW FEATURES
44

5+
### NEW FEATURES
6+
7+
* `webchem` can now access FooDB (https://foodb.ca/), a database of food constituents, chemistry and biology, implemented in offline mode.
8+
* Added `db_download_foodb()` to download the database, `foodb_list_compounds()` to list all compounds, and `foodb_convert()` to convert between IDs and `foodb_query()` to query the database.
9+
510
### OFFLINE ACCESS
611

712
* `chembl_query()` can now perform both online queries (`mode = "ws"`, default) and offline retrievals (`mode = "offline"`) from a local ChEMBL database. Offline mode currently supports the following resources: `activity`, `assay`, `atc_class`, `binding_site`, `biotherapeutic`, `cell_line`, `chembl_id_lookup`, `compound_record`, `document`, `drug`,`drug_indication`, `drug_warning`, `go_slim`, `molecule`.

0 commit comments

Comments
 (0)