You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suppose the issue is with the URLs in the getMoleculeFromCAS(String cas) method in InsertTextPanel.java. As NCBI switched to HTTPS, this method now returns null. I could get the method working with the following changes:
Hi,
I suppose the issue is with the URLs in the getMoleculeFromCAS(String cas) method in InsertTextPanel.java. As NCBI switched to HTTPS, this method now returns
null
. I could get the method working with the following changes:Edit 1:
String firstURL = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pccompound&term=" + cas;
(change to https)
Edit 2:
Pattern pattern = Pattern.compile("http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi\\?cid=(\\d*)");
(change the regex string to
https://pubchem.ncbi.nlm.nih.gov/compound/(\\d*)
)Edit 3:
String secondURL = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?tool=jcppubchem&db=pccompound&id=" + cid;
(change to https)
Edit 4:
pattern = Pattern.compile("<Item Name=\"CanonicalSmile\" Type=\"String\">([^\\s]*?)</Item>");
(change
CanonicalSmile
toCanonicalSmiles
)Is it possible to release a new version of jchempaint-hotfix-3.4.jar? I would like to use the sketcher panel in the development of a new KNIME node.
Thank you,
Vishal
The text was updated successfully, but these errors were encountered: