ZINC api: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
Here we explain how to access ZINC via an application programming interface (api)
NB This refers to ZINC version 12.
 
Most features of ZINC can be accessed under program control. Currently, documentation is spread across several pages in various states of readiness.  Please contact the [[developers]] if you don't see what you need. We intend to write this up more formally.  There is also information in the 2012 ZINC paper,  Irwin, Sterling, Mysinger, Bolstad and Coleman, J. Chem. Inf. Model. 2012 [http://pubs.acs.org/doi/abs/10.1021/ci3001277 pubs.acs.org/doi/abs/10.1021/ci3001277].
 
* [[ZINC:Command language]]
* [[Get ZINC under program control]]
* [[How to link to ZINC]]
* [[ZINC scripts]]
* [[Zinc exact lookup by http]]
* [[ZINC via curl]]


Please note that this is for zinc13 and beyond that is based on rdkit and psql.  Previously, zinc was in mysql.




Line 25: Line 33:




[[Category:Internal]]
[[Category:API]]
[[Category:Developer]]
[[Category:ZINC]]
[[Category:Sysadmin]]
[[Category:NEED ATTENTION]]

Latest revision as of 01:09, 5 January 2019

NB This refers to ZINC version 12.

Most features of ZINC can be accessed under program control. Currently, documentation is spread across several pages in various states of readiness. Please contact the developers if you don't see what you need. We intend to write this up more formally. There is also information in the 2012 ZINC paper, Irwin, Sterling, Mysinger, Bolstad and Coleman, J. Chem. Inf. Model. 2012 pubs.acs.org/doi/abs/10.1021/ci3001277.


ZINC api (r/w)

models defines tables, what columns they have, relationships

managers defines higher-level common queries

The ZINC api is composed of many managers (one for substances, one for catalogs, one for targets, etc)

You can do things like this with a manager:

in_stock = zinc.catalogs.query(Catalog.purchasbility==1)


ZINC access at the psql/SQL level (r/w) NB please be careful!

ZINC access via http (ro, safe)

How else do we want to support accessing ZINC?