summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-09-26 15:16:59 +0200
committerChristoph Helma <helma@in-silico.ch>2016-09-26 15:16:59 +0200
commit96ca0eec8bfce8f95ea1d36de7ede61f7c12e517 (patch)
treed207385a5e75f2c95de2a13173583db356bc5af8
parent22eed169b6f156dc5a65c395f04866f349094f3e (diff)
Chembl URI fixed
-rw-r--r--lib/compound.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index 54a0364..deaace0 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -249,7 +249,7 @@ module OpenTox
# @return [String] ChEMBL database compound id, derieved via restcall to chembl
def chemblid
# https://www.ebi.ac.uk/chembldb/ws#individualCompoundByInChiKey
- uri = "http://www.ebi.ac.uk/chemblws/compounds/smiles/#{smiles}.json"
+ uri = "https://www.ebi.ac.uk/chemblws/compounds/smiles/#{smiles}.json"
update(:chemblid => JSON.parse(RestClientWrapper.get(uri))["compounds"].first["chemblId"]) unless self["chemblid"]
self["chemblid"]
end