ZINC api: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
m (asdf)
 
Line 1: Line 1:
NB This refers to ZINC version 12.
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].
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 [https://pubs.acs.org/doi/abs/10.1021/ci3001277 pubs.acs.org/doi/abs/10.1021/ci3001277].


* [[ZINC:Command language]]
* [[ZINC:Command language]]
Line 7: Line 7:
* [[How to link to ZINC]]
* [[How to link to ZINC]]
* [[ZINC scripts]]
* [[ZINC scripts]]
* [[Zinc exact lookup by http]]
* [[Zinc exact lookup by https]]
* [[ZINC via curl]]
* [[ZINC via curl]]


Line 28: Line 28:




= ZINC access via http (ro, safe) =  
= ZINC access via https (ro, safe) =  


= How else do we want to support accessing ZINC?  =  
= How else do we want to support accessing ZINC?  =  

Latest revision as of 01:19, 24 May 2024

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 https (ro, safe)

How else do we want to support accessing ZINC?