Zinc22:Searching: Difference between revisions

From DISI
Jump to navigation Jump to search
(asdf)
 
No edit summary
Line 1: Line 1:
Searching ZINC22:  
Searching ZINC22:  
== GUI ==
Below url returns a json file with all possible fields. Please see the return format from “Return Format for single zinc_id search” section.
http://cartblanche22.docking.org/search.json?zinc_id=ZINCms000002NiP3
You can specify output fields:
http://cartblanche.docking.org/search.json?zinc_id=ZINCms000002NiP3&output_fields=smiles,sub_id
You can use the GUI interface
Go to cartblanche22.docking.org.  Use search-> by zinc id


== Commmand line interface ==
== Commmand line interface ==
Line 19: Line 5:
Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for single zinc_id search” section.
Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for single zinc_id search” section.


  curl http://cartblanche.docking.org/search.json -F zinc_id=ZINCms000002NiP3
  curl http://cartblanche22.docking.org/search.json -F zinc_id=ZINCms000002NiP3
   
   
If you want to specify output fields, you can add output_fields. In this example it will return only smiles, sub_id. Please note that there are always tranche and zinc_id fields by default.  Also please do not forget to add -F before every field.
If you want to specify output fields, you can add output_fields. In this example it will return only smiles, sub_id. Please note that there are always smiles and zinc_id fields by default.  Also please do not forget to add -F before every field.


  curl http://cartblanche.docking.org/search.json -F zinc_id=ZINCms000002NiP3 -F output_fields='smiles,sub_id'
  curl http://cartblanche22.docking.org/search.json -F zinc_id=ZINCms000002NiP3 -F output_fields='smiles,sub_id'




Line 58: Line 44:
Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for list of zinc_id by text file search” section.
Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for list of zinc_id by text file search” section.


  curl http://cartblanche.docking.org/substances.json -F zinc_id-in=@/nfs/exd/zinc-22/H16/H16P220/H16P220-N.txt
  curl http://cartblanche22.docking.org/substances.json -F zinc_id-in=@/nfs/exd/zinc-22/H16/H16P220/H16P220-N.txt
   
   
Without txt file
Without txt file


  curl http://cartblanche.docking.org/sublist -F zinc_id-in=”ZINCgs0000000OAi,ZINCgs0000000OAj"
  curl http://cartblanche22.docking.org/sublist -F zinc_id-in=”ZINCgs0000000OAi,ZINCgs0000000OAj"
 
== Downloading a set of random molecules ==
 
The curl command returns a json file with the zinc_id and smiles of the specified number of random molecules.
 
  curl https://cartblanche22.docking.org/substance/random.txt -F count=100
 
Subsets can be specified, but the search will pull from all available molecules unless otherwise specified.
 
  curl https://cartblanche22.docking.org/substance/random.txt -F count=100 -F subset='lead-like'
 
 





Revision as of 20:27, 9 December 2022

Searching ZINC22:

Commmand line interface

Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for single zinc_id search” section.

curl http://cartblanche22.docking.org/search.json -F zinc_id=ZINCms000002NiP3

If you want to specify output fields, you can add output_fields. In this example it will return only smiles, sub_id. Please note that there are always smiles and zinc_id fields by default. Also please do not forget to add -F before every field.

curl http://cartblanche22.docking.org/search.json -F zinc_id=ZINCms000002NiP3 -F output_fields='smiles,sub_id'


Return Format for single zinc_id search

{

   "catalogs": [
       {
           "catalog_name": "mH22P220", 
           "short_name": "m"
       }
   ], 
   "smiles": "C=C(C)CN(C)[C@H](C)CNC(=O)c1nc(C)n2ccccc12", 
   "sub_id": 41303101, 
   "supplier_code": [
       "M_275030__14114248__14126248__12659170"
   ], 
   "tranche": {
       "h_num": "H22", 
       "logp": "s", 
       "mwt": "m", 
       "p_num": "P220", 
       "tranche_id": 1371
   }, 
   "zinc_id": "ZINCms000002NiP3"

}

Search by list of zinc ids

By curl command

TEXT file

Below curl command returns a json file with all possible fields. Please see the return format from “Return Format for list of zinc_id by text file search” section.

curl http://cartblanche22.docking.org/substances.json -F zinc_id-in=@/nfs/exd/zinc-22/H16/H16P220/H16P220-N.txt

Without txt file

curl http://cartblanche22.docking.org/sublist -F zinc_id-in=”ZINCgs0000000OAi,ZINCgs0000000OAj"

Downloading a set of random molecules

The curl command returns a json file with the zinc_id and smiles of the specified number of random molecules.

 curl https://cartblanche22.docking.org/substance/random.txt -F count=100 

Subsets can be specified, but the search will pull from all available molecules unless otherwise specified.

 curl https://cartblanche22.docking.org/substance/random.txt -F count=100 -F subset='lead-like'