Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CIR Image function #250

Closed
wants to merge 119 commits into from
Closed
Changes from 16 commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
119fcc1
Add functions to customize communication with PubChem REST-API
stitam Apr 16, 2020
76249f3
Merge remote-tracking branch 'upstream/master' into i206
stitam Apr 16, 2020
419c692
New functions for the PubChem PUG-REST API
stitam Apr 16, 2020
c13b7e1
Updates documentation for pc_pugrest
stitam Apr 16, 2020
8735236
Multiple ways to post http requests
stitam Apr 16, 2020
5058dc5
Merge remote-tracking branch 'upstream/master' into i206
stitam Apr 17, 2020
407f272
Remove pc_pugrest, pc_validate, add get_sid
stitam Apr 18, 2020
575e59f
Add ... argument to get_sid documentation
stitam Apr 19, 2020
34ac653
Tests to check examples in article
stitam Apr 23, 2020
0e5824c
Merge remote-tracking branch 'upstream/master' into article
stitam Apr 23, 2020
7d629a3
Increase version number
stitam Apr 23, 2020
a10646a
Revert "Increase version number"
stitam Apr 23, 2020
394adcc
Remove cas.etox_basic() from extractors.R
stitam Apr 23, 2020
d891a9c
Merge remote-tracking branch 'upstream/master' into i206
stitam Apr 28, 2020
30bcfa7
Update get_cid() to handle complex queries
stitam Apr 29, 2020
ec60d27
Export get_sid() and fix some tests
stitam Apr 29, 2020
4d76660
Include article tests in test files
stitam Apr 30, 2020
feba94e
Fix conflict in test-chebi.R
stitam Apr 30, 2020
e6b7fb5
Updates to articles tests
stitam Apr 30, 2020
b467673
Small fixes in tests
stitam Apr 30, 2020
252d70c
Merge remote-tracking branch 'upstream/master' into article
stitam Apr 30, 2020
94c5665
Fix some tests in test-chemspider.R
stitam Apr 30, 2020
d501eb1
changes to tests including: replacing expect_is with expect_s3_class …
Aariq May 4, 2020
26696e9
added codecov.yml
Aariq May 4, 2020
c4f8000
changed email to tamas instead of eduard
Aariq May 4, 2020
0a53d26
added codecov
Aariq May 4, 2020
9b6c8be
travis should now run tests because it's NOT_CRAN
Aariq May 4, 2020
1db4a3f
added codecov
Aariq May 4, 2020
1cc2d93
changed codecov badge to master branch since we're not using test bra…
Aariq May 4, 2020
9176cda
changed codecov badge to master branch since we don't use test branch…
Aariq May 4, 2020
cbd929e
skip tests if service is down
Aariq May 5, 2020
226f1dc
just skip some tests for now so I can get a passing build
Aariq May 5, 2020
6e37e43
change email
Aariq May 5, 2020
fbb6d67
fix merge
Aariq May 5, 2020
93d729c
rearranged tests by service rather than function.
Aariq May 5, 2020
b5ea772
properly deprecate first=TRUE
Aariq May 5, 2020
24a7d2b
check if services are down before testing
Aariq May 5, 2020
1314044
Fix merge conflict
stitam May 5, 2020
b3e5982
used queries with more unique results to better test cs_control(). o…
Aariq May 5, 2020
58db4bc
CORRECTLY deprecated first=
Aariq May 5, 2020
ec5c54b
fixing expect_ functions
Aariq May 5, 2020
3781efe
skip failing tests for now to test codecov
Aariq May 5, 2020
52bf304
try installing r-cran-rjava to deal with error in test-utils.R on lib…
Aariq May 5, 2020
283d686
skip failing tests for now to check codecov
Aariq May 5, 2020
7230cc7
try adding rcdk to Suggests instead. (facepalm)
Aariq May 5, 2020
224bfa9
set appveyor to run as NOT_CRAN
Aariq May 5, 2020
532c3d7
attempt to get appveyor to load rcdk correctly using suggestion here:…
Aariq May 5, 2020
c300992
one more try to get 64 bit build to work with rJava
Aariq May 5, 2020
f29f8ac
push logs as artifact upon failure
Aariq May 5, 2020
8a750a2
change email to tamas
Aariq May 5, 2020
a0bc643
unskip failing tests
Aariq May 5, 2020
3c05b8c
added cir_img()
andschar May 6, 2020
93d17f3
added ping_*() functions to aid in testing. Closes #118.
Aariq May 6, 2020
5d730ec
molecular weights of two compound are equal so order is fine like this.
Aariq May 6, 2020
18fbdb0
moved ping_()s outside of tests so only pings service once.
Aariq May 6, 2020
5cf42d8
skiped a test that only seems to fail on R CMD check
Aariq May 6, 2020
6a2714d
update cir_img()
andschar May 7, 2020
406ba3b
Update R/cir.R
andschar May 7, 2020
680ab27
wrote a single exported ping_service function.
Aariq May 8, 2020
69a3cc2
changed tests to use new ping_service() function
Aariq May 8, 2020
7ddf680
CHEMID is back up and most of the tests are failing. Seems like it's…
Aariq May 8, 2020
79fe8fe
really having problems with chemid, so just skipping everything for now.
Aariq May 8, 2020
ce79d1b
minor edits to tests
Aariq May 8, 2020
7b7d56e
changed to match travis.yml
Aariq May 8, 2020
0803bea
Merge pull request #248 from Aariq/codecov
stitam May 9, 2020
2fc70eb
Fix merge conflicts
stitam May 11, 2020
3b4af6c
minor changes + tests
andschar May 12, 2020
5233e61
Merge remote-tracking branch 'upstream/master' into i206
stitam May 13, 2020
125f840
Add NEWS.md
Aariq May 13, 2020
32e05ec
switch NEWS to .md file
Aariq May 13, 2020
60f3fb7
severely reduced README length
Aariq May 13, 2020
2c1c106
added vignette for "getting started"
Aariq May 13, 2020
77463fb
added pkgdown config
Aariq May 13, 2020
2ff71bd
added instructions for previewing pkgdown site
Aariq May 13, 2020
5363ace
Update get_cid() to query substance and assay domains as well
stitam May 14, 2020
d3bc549
Fix failed tests
stitam May 14, 2020
3cc6ad3
Minor fix in pubchem tests
stitam May 14, 2020
25eea87
Add URLencoding and uncomment a failed test
stitam May 15, 2020
786d074
Merge pull request #239 from stitam/i206
stitam May 15, 2020
8ee6cf1
Fix get_cid() etc. related tests
stitam May 15, 2020
92a489a
Small fix for unused connections in scrapers
stitam May 15, 2020
3a790a9
Skip some tests when ChemSpider is down
stitam May 16, 2020
5396e1e
Make PubChem tests less sensitive to web service updates
stitam May 16, 2020
984c343
Trigger retest
stitam May 16, 2020
7d89a4f
Trigger retest
stitam May 16, 2020
d97dff8
Trigger retest
stitam May 17, 2020
552e033
Remove tests that might take a long time
stitam May 17, 2020
000d110
Remove handle from PubChem requests
stitam May 17, 2020
a1c3be0
Trigger retest
stitam May 17, 2020
757b00d
fixed typos
Aariq May 18, 2020
5a7d1f9
reverted changes to related projects, added link to survey at top.
Aariq May 18, 2020
20021a0
update from master
Aariq May 18, 2020
acb42e4
relaxed testing condition.
Aariq May 18, 2020
409a888
fixed pkgdown build error
Aariq May 19, 2020
cd14385
added ChemPhys CRAN task view
Aariq May 19, 2020
14b4deb
try switching to open ssl for curl backend.
Aariq May 19, 2020
51fb6b2
tried using GET rather than fromJSON directly. Not sure if this will…
Aariq May 19, 2020
95c4d0a
Merge pull request #256 from Aariq/gh-pages
stitam May 19, 2020
437684f
Trigger retest
stitam May 19, 2020
7ed0c9f
Update AppVeyor badge
stitam May 19, 2020
5325778
Merge pull request #243 from stitam/article
stitam May 19, 2020
d746658
fixing bugs related to NAs. May have fixed some other bugs by accident.
Aariq May 14, 2020
e3ef522
Revert "added instructions for previewing pkgdown site"
Aariq May 14, 2020
35579f6
Changed default behavior of extractors to error rather than guessing.…
Aariq May 14, 2020
fcc5fcd
give opsin query a class
Aariq May 24, 2020
ed15fac
removed tests for cts since it returns a named vector not a list.
Aariq May 24, 2020
6e3d9bf
switched cts tests to chemical name since inchikey translations are b…
Aariq May 24, 2020
87e1e9d
minor changes
Aariq May 24, 2020
e8b15f1
Merge pull request #259 from Aariq/aariq-nas
stitam May 25, 2020
fd71d9b
dir stop clause
andschar May 26, 2020
e35c8cc
tests
andschar May 26, 2020
ff77ce3
added cir_img()
andschar May 6, 2020
28cb09f
update cir_img()
andschar May 7, 2020
17676d5
Update R/cir.R
andschar May 7, 2020
349ee7a
minor changes + tests
andschar May 12, 2020
398fc3d
dir stop clause
andschar May 26, 2020
7a983ec
tests
andschar May 26, 2020
04f1834
manual
andschar May 26, 2020
191e9dd
fixing merge conflicts + examples
andschar May 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -24,3 +24,8 @@ README_cache

.vscode
^codecov\.yml$
^_pkgdown\.yml$
^docs$
^pkgdown$

.Rmd.orig
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -10,3 +10,5 @@ README_files*
README.html
.github/*.html
README_cache*
docs
inst/doc
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -39,5 +39,8 @@ Suggests:
testthat,
rcdk,
covr,
robotstxt
robotstxt,
knitr,
rmarkdown
RoxygenNote: 7.1.0
VignetteBuilder: knitr
142 changes: 70 additions & 72 deletions NEWS → NEWS.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
webchem 0.5.0.9010
# webchem 0.5.0.9010

NEW FEATURES
## NEW FEATURES

* get_cid() now can search by registry IDs (e.g. CAS RN), and can handle more complex requests like searching for similar compounds.
* Retrieve chemical data from PubChem content pages with pc_sect().
* get_etoxid() now can search by CAS, EC, GSBL and RTECS numbers. Added `from = ` argument. [PR #241, added by @andschar]
* nist_ri() now can search by name, InChI, InChIKey, or CAS. The `cas` argument is deprecated. Use `query` instead with `from = "cas"`

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* all `get_*()` functions now output tibbles with a column for the query and a column for the retrieved ID
* changes to arguments in `get_*()` functions to make them more consistent
* aw_idx.rda is no longer included in the package as a data set. Instead, it is built by build_aw_idx() to tempdir().


BUG FIXES
## BUG FIXES

* nist_ri() returned malformed tables or errored if there was only one entry for a query
* get_csid() now returns all csids when queried from formula
@@ -23,27 +23,27 @@ BUG FIXES
* get_cid() returned the PubChem ID of sodium when the query was NA [PR #223, fixed by stitam]
* aw_query() returned a list for successful queries, NA for unsuccessful queries [PR #222, fixed by stitam]

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS

webchem 0.5.0
======================
# webchem 0.5.0

NEW FEATURES

## NEW FEATURES

* Retrieve data from ChEBI (https://www.ebi.ac.uk/chebi/) webservice with get_chebiid() and chebi_comp_entity(). ChEBI comprises a rich data base on chemicals with bilogical interest [contributed by @andschar].
* Retrieve retention indices from NIST (https://webbook.nist.gov) with nist_ri() [PR #154, contributed by @Aariq]
* Get record details from US EPA Substance Registry Services (https://cdxnodengn.epa.gov/cdx-srs-rest/) with srs_query() [PR #179]
* "first" argument in cts_convert() and cir_query() and "interactive" argument in pc_synonyms() deprecated. Use "choices" instead to return either a list of all results, only the first result, or an interactive menu to choose a result to return. [contributed by @Aariq]
* ChemSpider functions now look for an API token stored in .Renviron or .Rprofile by default so you can keep them hidden more easily.

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* as.cas() added.
* removed documentation files for non-exported functions that were only used internally.

BUG FIXES
## BUG FIXES

* cs_prop() failed with duplicated return values [issue #148, reported and fixed by @stanstrup]
* pp_query() failed when compound present, but no properties [issue #151, reported and fixed by @stanstrup]
@@ -54,24 +54,23 @@ BUG FIXES
* fixed functions that communicate with the ChemSpider API [issue #149, issue #160, fixed by @stitam]
* get_etoxid() printed incorrect results for certain match types [issue #201, fixed by @stitam]

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

* cs_extcompinfo() cannot be fixed as there is no equivalent in the new ChemSpider API yet.

DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS

* ppdb_parse() has been removed. webchem no longer offers any support for PPDB.
* pp_query() has been removed. Physprop API is no longer active.
* cs_prop() has been removed.

webchem 0.4.0
======================
# webchem 0.4.0

NEW FEATURES
## NEW FEATURES

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

BUG FIXES
## BUG FIXES

* extr_num() did not work properly with decimal numbers [issue #136, reported and fixed by @stanstrup]
* cs_prop() failed when epi-suite data was not available [issue #139, reported and fixed by @stanstrup]
@@ -82,98 +81,98 @@ BUG FIXES
* cir_query() failed with identifiers containing spaces (e.g. 'acetic acid') [issue #146, reported by Lars Nielsen]
* several other functions failed with identifiers containing spaces & returned wrong distance.

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

## DEFUNCT FUNCTIONS

DEFUNCT FUNCTIONS

# webchem 0.3.0

webchem 0.3.0
======================

NEW FEATURES
## NEW FEATURES

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* cs_prop() now also return experimental data for Boiling and Melting Points.
* pc_synonyms gained an argument 'interactive' to enter an interactive mode for
selecting synonyms [issue #129, requested by @Aariq]
* cts_convert now returns NA if no matches are found.

BUG FIXES
## BUG FIXES

* cs_prop() failed with some CSIDs [isse #127, reported by @Aariq]
* wd_ident() failed if multiple entries where found. Now returns the first hit only.
* ci_query() did not return fully cleaned smiles and inchi

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS


webchem 0.2.0
======================
# webchem 0.2.0

NEW FEATURES

## NEW FEATURES

* fn_percept() extracts flavor percepts using CAS numbers from www.flavornet.org. Flavornet is a database of 738 compounds with human-detectible odors. [contributed by @Aariq]

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

## BUG FIXES

BUG FIXES
## DEPRECATED FUNCTIONS

DEPRECATED FUNCTIONS
## DEFUNCT FUNCTIONS

DEFUNCT FUNCTIONS


# webchem 0.1.1

webchem 0.1.1
======================

NEW FEATURES
## NEW FEATURES
* added ping_pubchem() to check whether pubchem is up & running
* added cs_web_ping () to check whether the chemspider webpage is functional

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS
* updated allan wood index

BUG FIXES
## BUG FIXES
* pc_prop() returned to many rows if last cid supplied was NA
* Switched to https for NCBI, chemspider & chemid (Issue #120, reported by @jranke)
* get_wdid() failed if non-ascii characters where returned by wikipedia
* rcdk:parse.smiles() now returns NA if a SMILES string could not be parsed.
=> broke is.smiles

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS



webchem 0.1.0
======================
# webchem 0.1.0

NEW FEATURES

## NEW FEATURES
* added cts_to() and cts_from() to retrieve possible ids that can be queried.
* cts_*(), pp_query(), cir_query(), get_cid(), get_etoxid(), etox_*(), pan_query() get_wdid(), aw_query(), get_csid(), cs_prop(), cs_compinfo() and ci_query() can handle multiple inputs.
* pc_prop() queries properties and pc_synonmy() synonyms from PUG-REST.
* added extractors for webchem objects: cas(), inchikey() and smiles().


MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS
* rewrite of pubchem functions using PUG-REST
* chemspider: better use of NA in input (=return NA)
* more robust matching in get_etoxid

BUG FIXES
## BUG FIXES

* pan_query() did not return numeric values
* get_cid() failed with multiple results

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS


DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS

* ppdb_query() has been removed due to copyright issues.
The new ppdb_parse() parses only a html, but does not interact with the database
@@ -186,18 +185,17 @@ The new ppdb_parse() parses only a html, but does not interact with the database



webchem 0.0.5
======================
# webchem 0.0.5

NEW FEATURES
## NEW FEATURES

* is.smiles() checks SMILES strings, by parsing via (R)CDK.
* get_wdid() and wd_indent() to retrieve information from wikidata.
* get_etoxid() can handle multi inputs (interactive mode, best match, first match, NA and all matches).
* ci_query() can handle multi inputs (interactive mode, best match, first match and NA).
* cs_prop() queries predcitions (ACD and EPiSuite) from ChemSpider

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* webchem uses exclusively xml2 (instead of XML).
* All function return source_url for (micro-)attribution of sources
@@ -211,7 +209,7 @@ MINOR IMPROVEMENTS
* aw_query() returns multiple inchikey if found.
* pan() now returns chemical name and matched synonym.

BUG FIXES
## BUG FIXES

* utility functions are not vectorized and throw an error.
* chemid() did mot work with inchikey as input.
@@ -221,7 +219,7 @@ BUG FIXES
* ci_query() failed if multi hits were found. Now returns first hit.
* aw_fuery() failed if inchikey was not found.

DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

* pan_query() replaces pan()
* aw_query() replaces alanwood()
@@ -230,18 +228,18 @@ DEPRECATED FUNCTIONS
* ci_query() replaces chemid()
* pp_query() replaces physprop()

DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS

* csid_compinfo()
* csid_extcompinfo()




webchem 0.0.4
======================
# webchem 0.0.4


NEW FEATURES
## NEW FEATURES

* chemid() to query ChemIDplus http://chem.sis.nlm.nih.gov/chemidplus/.
* is.inchikey() and is.cas() to check if a string is valid inchikey or CAS registry number.
@@ -261,7 +259,7 @@ NEW FEATURES
* webchem has now a zenodo doi, please cite if you use it.


MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* cts_compinfo() checks if input is a inchikey (via exported function is.inchikey()).
* cts_compinfo() is now more robust and verbose, if problems are encountered
@@ -270,58 +268,58 @@ MINOR IMPROVEMENTS
* physprop() also returns boiling and melting points. Moreover, values are now numeric.


BUG FIXES
## BUG FIXES

* alanwood() returns only results for first match in case of multiple links found
* physprop() stopped working after change of SRC to https, fixed now.
* changed etox_* functions to https


DEPRECATED FUNCTIONS
## DEPRECATED FUNCTIONS

* ppdb() replaces ppdb_query() and accepts individual index as created by ppdb_buildidx().
* cir() replaces cir_query().
* cs_compinfo() replaces csid_compinfo()
* cs_extcompinfo() replaces csid_extcompinfo()


DEFUNCT FUNCTIONS
## DEFUNCT FUNCTIONS

* allanwood()




webchem 0.0.3
======================
# webchem 0.0.3

NEW FEATURES

## NEW FEATURES

* Query SRC PHYSPROP Database with physprop().
* Query the ETOX ID with get_etoxid(); query basic information with etox_basic();
quality targets with etox_targets() and test results with etox_tests().
* Query PPDB with ppdb_query()

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* added exceptions/checks to tests
* improved robustness of cir_query()

BUG FIXES
## BUG FIXES

* Correct the spelling of Alan Wood and rename function allanwood() to alanwood() [contribution of @jranke]



webchem 0.0.2
======================
# webchem 0.0.2


NEW FEATURES
## NEW FEATURES

* Query the PAN Pesticides Database with pan().
* Query Allan Woods Compendium of Pesticide Common Names with allanwood().

MINOR IMPROVEMENTS
## MINOR IMPROVEMENTS

* Added checks for user input.
* Fixed documentation, added example for bulk processing.
@@ -330,7 +328,7 @@ MINOR IMPROVEMENTS
* Added unit tests.
* All functions return silently NA, if API is not reachable.

BUG FIXES
## BUG FIXES

* cts_convert() does not ignore 'first' argument.
* get_csid() did not return NA, if there was a problem with the API.
Loading