Skip to content

Commit 0ac6534

Browse files
authored
Merge pull request #455 from stitam/resources
Expand ChEMBL resources and standardize webservice output
2 parents e154c75 + 5d8c746 commit 0ac6534

12 files changed

Lines changed: 1166 additions & 675 deletions

File tree

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# based on https://docs.ropensci.org/rotemplate/
2+
13
on:
24
push:
35
branches:
@@ -9,25 +11,7 @@ on:
911
name: check-pkgdown
1012

1113
jobs:
12-
check_pkgdown:
13-
runs-on: ubuntu-22.04
14-
15-
env:
16-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
- uses: r-lib/actions/setup-r@v2
21-
with:
22-
r-version: 'release'
23-
- uses: r-lib/actions/setup-r-dependencies@v2
24-
with:
25-
extra-packages: any::devtools, any::pkgdown
26-
27-
- name: Install dependencies
28-
run: devtools::install_github("https://github.com/ropensci-org/rotemplate")
29-
shell: Rscript {0}
30-
31-
- name: Check pkgdown
32-
run: pkgdown::check_pkgdown()
33-
shell: Rscript {0}
14+
check_pkgdown:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: ropensci-org/rotemplate@main

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Imports:
4747
rlang,
4848
utils
4949
Suggests:
50+
dbplyr (>= 2.2.1),
5051
testthat,
5152
rcdk,
5253
covr,

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
### OFFLINE ACCESS
66

7-
* `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: `atc_class`, `binding_site`, `biotherapeutic`, `cell_line`, `chembl_id_lookup`, `compound_record`, and `document`.
7+
* `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: `assay`, `atc_class`, `binding_site`, `biotherapeutic`, `cell_line`, `chembl_id_lookup`, `compound_record`, `document`, `drug_indication`, `drug_warning`, `go_slim`.
8+
* Results for online and offline queries are identical for most resources. If there are differences, the offline version throws informative warnings.
89
* Added a new function `db_download_chembl()` for downloading ChEMBL for fully offline access.
910

1011
### OTHER
@@ -17,7 +18,7 @@
1718

1819
## MINOR IMPROVEMENTS
1920

20-
* `chembl_query()` now returns a named list with improved formatting for nested output.
21+
* `chembl_query()` now returns a named list with improved formatting for nested output when `output = "tidy"`.
2122
* Added new argument `output` to `chembl_query()` (values: "raw" or "tidy") to control output format. Raw format returns the full nested structure; tidy format attempts to flatten the results.
2223
* Added new `options` argument to `chembl_query()` for passing resource- and mode-specific options (cache file name, similarity threshold, database version, etc.).
2324
* `chembl_query()` can now replace NULL values with typed NA values (`NA_character_`, `NA_integer_`, `NA_real_`) based on the field schema when `replace_nulls = TRUE` in options. For this, the schema is retrieved from ChEMBL and cached for the session.

0 commit comments

Comments
 (0)