[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M736G6YF0Z9GD1CCQ60GG00F":3,"skill-same:01M736G6YF0Z9GD1CCQ60GG00F":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M736G6YF0Z9GD1CCQ60GG00F","alterlab-zinc-db",null,"Access ZINC (230M+ purchasable compounds). Search by ZINC ID\u002FSMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery. Part of the AlterLab Academic Skills suite.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-zinc-db\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: alterlab-zinc-db\ndescription: Access ZINC (230M+ purchasable compounds). Search by ZINC ID\u002FSMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery. Part of the AlterLab Academic Skills suite.\nlicense: MIT\nmetadata:\n    skill-author: AlterLab\n---\n\n# ZINC Database\n\n## Overview\n\nZINC is a freely accessible repository of 230M+ purchasable compounds maintained by UCSF. Search by ZINC ID or SMILES, perform similarity searches, download 3D-ready structures for docking, discover analogs for virtual screening and drug discovery.\n\n## When to Use This Skill\n\nThis skill should be used when:\n\n- **Virtual screening**: Finding compounds for molecular docking studies\n- **Lead discovery**: Identifying commercially-available compounds for drug development\n- **Structure searches**: Performing similarity or analog searches by SMILES\n- **Compound retrieval**: Looking up molecules by ZINC IDs or supplier codes\n- **Chemical space exploration**: Exploring purchasable chemical diversity\n- **Docking studies**: Accessing 3D-ready molecular structures\n- **Analog searches**: Finding similar compounds based on structural similarity\n- **Supplier queries**: Identifying compounds from specific chemical vendors\n- **Random sampling**: Obtaining random compound sets for screening\n\n## Database Versions\n\nZINC has evolved through multiple versions:\n\n- **ZINC22** (Current): Largest version with 230+ million purchasable compounds and multi-billion scale make-on-demand compounds\n- **ZINC20**: Still maintained, focused on lead-like and drug-like compounds\n- **ZINC15**: Predecessor version, legacy but still documented\n\nThis skill primarily focuses on ZINC22, the most current and comprehensive version.\n\n## Access Methods\n\n### Web Interface\n\nPrimary access point: https:\u002F\u002Fzinc.docking.org\u002F\nInteractive searching: https:\u002F\u002Fcartblanche22.docking.org\u002F\n\n### API Access\n\nAll ZINC22 searches can be performed programmatically via the CartBlanche22 API:\n\n**Base URL**: `https:\u002F\u002Fcartblanche22.docking.org\u002F`\n\nAll API endpoints return data in text or JSON format with customizable fields.\n\n## Core Capabilities\n\n### 1. Search by ZINC ID\n\nRetrieve specific compounds using their ZINC identifiers.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fzincid\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]_fields=smiles,zinc_id\"\n```\n\n**Multiple IDs**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001,ZINC000000000002&output_fields=smiles,zinc_id,tranche\"\n```\n\n**Response fields**: `zinc_id`, `smiles`, `sub_id`, `supplier_code`, `catalogs`, `tranche` (includes H-count, LogP, MW, phase)\n\n### 2. Search by SMILES\n\nFind compounds by chemical structure using SMILES notation, with optional distance parameters for analog searching.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fsmiles\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]=4-Fadist=4\"\n```\n\n**Parameters**:\n- `smiles`: Query SMILES string (URL-encoded if necessary)\n- `dist`: Tanimoto distance threshold (default: 0 for exact match)\n- `adist`: Alternative distance parameter for broader searches (default: 0)\n- `output_fields`: Comma-separated list of desired output fields\n\n**Example - Exact match**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=c1ccccc1\"\n```\n\n**Example - Similarity search**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=c1ccccc1&dist=3&output_fields=zinc_id,smiles,tranche\"\n```\n\n### 3. Search by Supplier Codes\n\nQuery compounds from specific chemical suppliers or retrieve all molecules from particular catalogs.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fcatitems\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fcatitems.txt:catitem_id=SUPPLIER-CODE-123\"\n```\n\n**Use cases**:\n- Verify compound availability from specific vendors\n- Retrieve all compounds from a catalog\n- Cross-reference supplier codes with ZINC IDs\n\n### 4. Random Compound Sampling\n\nGenerate random compound sets for screening or benchmarking purposes.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Frandom\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=100\"\n```\n\n**Parameters**:\n- `count`: Number of random compounds to retrieve (default: 100)\n- `subset`: Filter by subset (e.g., 'lead-like', 'drug-like', 'fragment')\n- `output_fields`: Customize returned data fields\n\n**Example - Random lead-like molecules**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=1000&subset=lead-like&output_fields=zinc_id,smiles,tranche\"\n```\n\n## Common Workflows\n\n### Workflow 1: Preparing a Docking Library\n\n1. **Define search criteria** based on target properties or desired chemical space\n\n2. **Query ZINC22** using appropriate search method:\n   ```bash\n   # Example: Get drug-like compounds with specific LogP and MW\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=10000&subset=drug-like&output_fields=zinc_id,smiles,tranche\" > docking_library.txt\n   ```\n\n3. **Parse results** to extract ZINC IDs and SMILES:\n   ```python\n   import pandas as pd\n\n   # Load results\n   df = pd.read_csv('docking_library.txt', sep='\\t')\n\n   # Filter by properties in tranche data\n   # Tranche format: H##P###M###-phase\n   # H = H-bond donors, P = LogP*10, M = MW\n   ```\n\n4. **Download 3D structures** for docking using ZINC ID or download from file repositories\n\n### Workflow 2: Finding Analogs of a Hit Compound\n\n1. **Obtain SMILES** of the hit compound:\n   ```python\n   hit_smiles = \"CC(C)Cc1ccc(cc1)C(C)C(=O)O\"  # Example: Ibuprofen\n   ```\n\n2. **Perform similarity search** with distance threshold:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=CC(C)Cc1ccc(cc1)C(C)C(=O)O&dist=5&output_fields=zinc_id,smiles,catalogs\" > analogs.txt\n   ```\n\n3. **Analyze results** to identify purchasable analogs:\n   ```python\n   import pandas as pd\n\n   analogs = pd.read_csv('analogs.txt', sep='\\t')\n   print(f\"Found {len(analogs)} analogs\")\n   print(analogs[['zinc_id', 'smiles', 'catalogs']].head(10))\n   ```\n\n4. **Retrieve 3D structures** for the most promising analogs\n\n### Workflow 3: Batch Compound Retrieval\n\n1. **Compile list of ZINC IDs** from literature, databases, or previous screens:\n   ```python\n   zinc_ids = [\n       \"ZINC000000000001\",\n       \"ZINC000000000002\",\n       \"ZINC000000000003\"\n   ]\n   zinc_ids_str = \",\".join(zinc_ids)\n   ```\n\n2. **Query ZINC22 API**:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001,ZINC000000000002&output_fields=zinc_id,smiles,supplier_code,catalogs\"\n   ```\n\n3. **Process results** for downstream analysis or purchasing\n\n### Workflow 4: Chemical Space Sampling\n\n1. **Select subset parameters** based on screening goals:\n   - Fragment: MW \u003C 250, good for fragment-based drug discovery\n   - Lead-like: MW 250-350, LogP ≤ 3.5\n   - Drug-like: MW 350-500, follows Lipinski's Rule of Five\n\n2. **Generate random sample**:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=5000&subset=lead-like&output_fields=zinc_id,smiles,tranche\" > chemical_space_sample.txt\n   ```\n\n3. **Analyze chemical diversity** and prepare for virtual screening\n\n## Output Fields\n\nCustomize API responses with the `output_fields` parameter:\n\n**Available fields**:\n- `zinc_id`: ZINC identifier\n- `smiles`: SMILES string representation\n- `sub_id`: Internal substance ID\n- `supplier_code`: Vendor catalog number\n- `catalogs`: List of suppliers offering the compound\n- `tranche`: Encoded molecular properties (H-count, LogP, MW, reactivity phase)\n\n**Example**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001&output_fields=zinc_id,smiles,catalogs,tranche\"\n```\n\n## Tranche System\n\nZINC organizes compounds into \"tranches\" based on molecular properties:\n\n**Format**: `H##P###M###-phase`\n\n- **H##**: Number of hydrogen bond donors (00-99)\n- **P###**: LogP × 10 (e.g., P035 = LogP 3.5)\n- **M###**: Molecular weight in Daltons (e.g., M400 = 400 Da)\n- **phase**: Reactivity classification\n\n**Example tranche**: `H05P035M400-0`\n- 5 H-bond donors\n- LogP = 3.5\n- MW = 400 Da\n- Reactivity phase 0\n\nUse tranche data to filter compounds by drug-likeness criteria.\n\n## Downloading 3D Structures\n\nFor molecular docking, 3D structures are available via file repositories:\n\n**File repository**: https:\u002F\u002Ffiles.docking.org\u002Fzinc22\u002F\n\nStructures are organized by tranches and available in multiple formats:\n- MOL2: Multi-molecule format with 3D coordinates\n- SDF: Structure-data file format\n- DB2.GZ: Compressed database format for DOCK\n\nRefer to ZINC documentation at https:\u002F\u002Fwiki.docking.org for downloading protocols and batch access methods.\n\n## Python Integration\n\n### Using curl with Python\n\n```python\nimport subprocess\nimport json\n\ndef query_zinc_by_id(zinc_id, output_fields=\"zinc_id,smiles,catalogs\"):\n    \"\"\"Query ZINC22 by ZINC ID.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]_id={zinc_id}&output_fields={output_fields}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n\ndef search_by_smiles(smiles, dist=0, adist=0, output_fields=\"zinc_id,smiles\"):\n    \"\"\"Search ZINC22 by SMILES with optional distance parameters.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles={smiles}&dist={dist}&adist={adist}&output_fields={output_fields}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n\ndef get_random_compounds(count=100, subset=None, output_fields=\"zinc_id,smiles,tranche\"):\n    \"\"\"Get random compounds from ZINC22.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count={count}&output_fields={output_fields}\"\n    if subset:\n        url += f\"&subset={subset}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n```\n\n### Parsing Results\n\n```python\nimport pandas as pd\nfrom io import StringIO\n\n# Query ZINC and parse as DataFrame\nresult = query_zinc_by_id(\"ZINC000000000001\")\ndf = pd.read_csv(StringIO(result), sep='\\t')\n\n# Extract tranche properties\ndef parse_tranche(tranche_str):\n    \"\"\"Parse ZINC tranche code to extract properties.\"\"\"\n    # Format: H##P###M###-phase\n    import re\n    match = re.match(r'H(\\d+)P(\\d+)M(\\d+)-(\\d+)', tranche_str)\n    if match:\n        return {\n            'h_donors': int(match.group(1)),\n            'logP': int(match.group(2)) \u002F 10.0,\n            'mw': int(match.group(3)),\n            'phase': int(match.group(4))\n        }\n    return None\n\ndf['tranche_props'] = df['tranche'].apply(parse_tranche)\n```\n\n## Best Practices\n\n### Query Optimization\n\n- **Start specific**: Begin with exact searches before expanding to similarity searches\n- **Use appropriate distance parameters**: Small dist values (1-3) for close analogs, larger (5-10) for diverse analogs\n- **Limit output fields**: Request only necessary fields to reduce data transfer\n- **Batch queries**: Combine multiple ZINC IDs in a single API call when possible\n\n### Performance Considerations\n\n- **Rate limiting**: Respect server resources; avoid rapid consecutive requests\n- **Caching**: Store frequently accessed compounds locally\n- **Parallel downloads**: When downloading 3D structures, use parallel wget or aria2c for file repositories\n- **Subset filtering**: Use lead-like, drug-like, or fragment subsets to reduce search space\n\n### Data Quality\n\n- **Verify availability**: Supplier catalogs change; confirm compound availability before large orders\n- **Check stereochemistry**: SMILES may not fully specify stereochemistry; verify 3D structures\n- **Validate structures**: Use cheminformatics tools (RDKit, OpenBabel) to verify structure validity\n- **Cross-reference**: When possible, cross-check with other databases (PubChem, ChEMBL)\n\n## Resources\n\n### references\u002Fapi_reference.md\n\nComprehensive documentation including:\n\n- Complete API endpoint reference\n- URL syntax and parameter specifications\n- Advanced query patterns and examples\n- File repository organization and access\n- Bulk download methods\n- Error handling and troubleshooting\n- Integration with molecular docking software\n\nConsult this document for detailed technical information and advanced usage patterns.\n\n## Important Disclaimers\n\n### Data Reliability\n\nZINC explicitly states: **\"We do not guarantee the quality of any molecule for any purpose and take no responsibility for errors arising from the use of this database.\"**\n\n- Compound availability may change without notice\n- Structure representations may contain errors\n- Supplier information should be verified independently\n- Use appropriate validation before experimental work\n\n### Appropriate Use\n\n- ZINC is intended for academic and research purposes in drug discovery\n- Verify licensing terms for commercial use\n- Respect intellectual property when working with patented compounds\n- Follow your institution's guidelines for compound procurement\n\n## Additional Resources\n\n- **ZINC Website**: https:\u002F\u002Fzinc.docking.org\u002F\n- **CartBlanche22 Interface**: https:\u002F\u002Fcartblanche22.docking.org\u002F\n- **ZINC Wiki**: https:\u002F\u002Fwiki.docking.org\u002F\n- **File Repository**: https:\u002F\u002Ffiles.docking.org\u002Fzinc22\u002F\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fdocking-org\u002F\n- **Primary Publication**: Irwin et al., J. Chem. Inf. Model 2020 (ZINC15)\n- **ZINC22 Publication**: Irwin et al., J. Chem. Inf. Model 2023\n\n## Citations\n\nWhen using ZINC in publications, cite the appropriate version:\n\n**ZINC22**:\nIrwin, J. J., et al. \"ZINC22—A Free Multi-Billion-Scale Database of Tangible Compounds for Ligand Discovery.\" *Journal of Chemical Information and Modeling* 2023.\n\n**ZINC15**:\nIrwin, J. J., et al. \"ZINC15 – Ligand Discovery for Everyone.\" *Journal of Chemical Information and Modeling* 2020, 60, 6065–6073.\n\n","# ZINC Database\n\n## Overview\n\nZINC is a freely accessible repository of 230M+ purchasable compounds maintained by UCSF. Search by ZINC ID or SMILES, perform similarity searches, download 3D-ready structures for docking, discover analogs for virtual screening and drug discovery.\n\n## When to Use This Skill\n\nThis skill should be used when:\n\n- **Virtual screening**: Finding compounds for molecular docking studies\n- **Lead discovery**: Identifying commercially-available compounds for drug development\n- **Structure searches**: Performing similarity or analog searches by SMILES\n- **Compound retrieval**: Looking up molecules by ZINC IDs or supplier codes\n- **Chemical space exploration**: Exploring purchasable chemical diversity\n- **Docking studies**: Accessing 3D-ready molecular structures\n- **Analog searches**: Finding similar compounds based on structural similarity\n- **Supplier queries**: Identifying compounds from specific chemical vendors\n- **Random sampling**: Obtaining random compound sets for screening\n\n## Database Versions\n\nZINC has evolved through multiple versions:\n\n- **ZINC22** (Current): Largest version with 230+ million purchasable compounds and multi-billion scale make-on-demand compounds\n- **ZINC20**: Still maintained, focused on lead-like and drug-like compounds\n- **ZINC15**: Predecessor version, legacy but still documented\n\nThis skill primarily focuses on ZINC22, the most current and comprehensive version.\n\n## Access Methods\n\n### Web Interface\n\nPrimary access point: https:\u002F\u002Fzinc.docking.org\u002F\nInteractive searching: https:\u002F\u002Fcartblanche22.docking.org\u002F\n\n### API Access\n\nAll ZINC22 searches can be performed programmatically via the CartBlanche22 API:\n\n**Base URL**: `https:\u002F\u002Fcartblanche22.docking.org\u002F`\n\nAll API endpoints return data in text or JSON format with customizable fields.\n\n## Core Capabilities\n\n### 1. Search by ZINC ID\n\nRetrieve specific compounds using their ZINC identifiers.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fzincid\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]_fields=smiles,zinc_id\"\n```\n\n**Multiple IDs**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001,ZINC000000000002&output_fields=smiles,zinc_id,tranche\"\n```\n\n**Response fields**: `zinc_id`, `smiles`, `sub_id`, `supplier_code`, `catalogs`, `tranche` (includes H-count, LogP, MW, phase)\n\n### 2. Search by SMILES\n\nFind compounds by chemical structure using SMILES notation, with optional distance parameters for analog searching.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fsmiles\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]=4-Fadist=4\"\n```\n\n**Parameters**:\n- `smiles`: Query SMILES string (URL-encoded if necessary)\n- `dist`: Tanimoto distance threshold (default: 0 for exact match)\n- `adist`: Alternative distance parameter for broader searches (default: 0)\n- `output_fields`: Comma-separated list of desired output fields\n\n**Example - Exact match**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=c1ccccc1\"\n```\n\n**Example - Similarity search**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=c1ccccc1&dist=3&output_fields=zinc_id,smiles,tranche\"\n```\n\n### 3. Search by Supplier Codes\n\nQuery compounds from specific chemical suppliers or retrieve all molecules from particular catalogs.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Fcatitems\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fcatitems.txt:catitem_id=SUPPLIER-CODE-123\"\n```\n\n**Use cases**:\n- Verify compound availability from specific vendors\n- Retrieve all compounds from a catalog\n- Cross-reference supplier codes with ZINC IDs\n\n### 4. Random Compound Sampling\n\nGenerate random compound sets for screening or benchmarking purposes.\n\n**Web interface**: https:\u002F\u002Fcartblanche22.docking.org\u002Fsearch\u002Frandom\n\n**API endpoint**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=100\"\n```\n\n**Parameters**:\n- `count`: Number of random compounds to retrieve (default: 100)\n- `subset`: Filter by subset (e.g., 'lead-like', 'drug-like', 'fragment')\n- `output_fields`: Customize returned data fields\n\n**Example - Random lead-like molecules**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=1000&subset=lead-like&output_fields=zinc_id,smiles,tranche\"\n```\n\n## Common Workflows\n\n### Workflow 1: Preparing a Docking Library\n\n1. **Define search criteria** based on target properties or desired chemical space\n\n2. **Query ZINC22** using appropriate search method:\n   ```bash\n   # Example: Get drug-like compounds with specific LogP and MW\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=10000&subset=drug-like&output_fields=zinc_id,smiles,tranche\" > docking_library.txt\n   ```\n\n3. **Parse results** to extract ZINC IDs and SMILES:\n   ```python\n   import pandas as pd\n\n   # Load results\n   df = pd.read_csv('docking_library.txt', sep='\\t')\n\n   # Filter by properties in tranche data\n   # Tranche format: H##P###M###-phase\n   # H = H-bond donors, P = LogP*10, M = MW\n   ```\n\n4. **Download 3D structures** for docking using ZINC ID or download from file repositories\n\n### Workflow 2: Finding Analogs of a Hit Compound\n\n1. **Obtain SMILES** of the hit compound:\n   ```python\n   hit_smiles = \"CC(C)Cc1ccc(cc1)C(C)C(=O)O\"  # Example: Ibuprofen\n   ```\n\n2. **Perform similarity search** with distance threshold:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles=CC(C)Cc1ccc(cc1)C(C)C(=O)O&dist=5&output_fields=zinc_id,smiles,catalogs\" > analogs.txt\n   ```\n\n3. **Analyze results** to identify purchasable analogs:\n   ```python\n   import pandas as pd\n\n   analogs = pd.read_csv('analogs.txt', sep='\\t')\n   print(f\"Found {len(analogs)} analogs\")\n   print(analogs[['zinc_id', 'smiles', 'catalogs']].head(10))\n   ```\n\n4. **Retrieve 3D structures** for the most promising analogs\n\n### Workflow 3: Batch Compound Retrieval\n\n1. **Compile list of ZINC IDs** from literature, databases, or previous screens:\n   ```python\n   zinc_ids = [\n       \"ZINC000000000001\",\n       \"ZINC000000000002\",\n       \"ZINC000000000003\"\n   ]\n   zinc_ids_str = \",\".join(zinc_ids)\n   ```\n\n2. **Query ZINC22 API**:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001,ZINC000000000002&output_fields=zinc_id,smiles,supplier_code,catalogs\"\n   ```\n\n3. **Process results** for downstream analysis or purchasing\n\n### Workflow 4: Chemical Space Sampling\n\n1. **Select subset parameters** based on screening goals:\n   - Fragment: MW \u003C 250, good for fragment-based drug discovery\n   - Lead-like: MW 250-350, LogP ≤ 3.5\n   - Drug-like: MW 350-500, follows Lipinski's Rule of Five\n\n2. **Generate random sample**:\n   ```bash\n   curl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count=5000&subset=lead-like&output_fields=zinc_id,smiles,tranche\" > chemical_space_sample.txt\n   ```\n\n3. **Analyze chemical diversity** and prepare for virtual screening\n\n## Output Fields\n\nCustomize API responses with the `output_fields` parameter:\n\n**Available fields**:\n- `zinc_id`: ZINC identifier\n- `smiles`: SMILES string representation\n- `sub_id`: Internal substance ID\n- `supplier_code`: Vendor catalog number\n- `catalogs`: List of suppliers offering the compound\n- `tranche`: Encoded molecular properties (H-count, LogP, MW, reactivity phase)\n\n**Example**:\n```bash\ncurl \"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstances.txt:zinc_id=ZINC000000000001&output_fields=zinc_id,smiles,catalogs,tranche\"\n```\n\n## Tranche System\n\nZINC organizes compounds into \"tranches\" based on molecular properties:\n\n**Format**: `H##P###M###-phase`\n\n- **H##**: Number of hydrogen bond donors (00-99)\n- **P###**: LogP × 10 (e.g., P035 = LogP 3.5)\n- **M###**: Molecular weight in Daltons (e.g., M400 = 400 Da)\n- **phase**: Reactivity classification\n\n**Example tranche**: `H05P035M400-0`\n- 5 H-bond donors\n- LogP = 3.5\n- MW = 400 Da\n- Reactivity phase 0\n\nUse tranche data to filter compounds by drug-likeness criteria.\n\n## Downloading 3D Structures\n\nFor molecular docking, 3D structures are available via file repositories:\n\n**File repository**: https:\u002F\u002Ffiles.docking.org\u002Fzinc22\u002F\n\nStructures are organized by tranches and available in multiple formats:\n- MOL2: Multi-molecule format with 3D coordinates\n- SDF: Structure-data file format\n- DB2.GZ: Compressed database format for DOCK\n\nRefer to ZINC documentation at https:\u002F\u002Fwiki.docking.org for downloading protocols and batch access methods.\n\n## Python Integration\n\n### Using curl with Python\n\n```python\nimport subprocess\nimport json\n\ndef query_zinc_by_id(zinc_id, output_fields=\"zinc_id,smiles,catalogs\"):\n    \"\"\"Query ZINC22 by ZINC ID.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002F[email protected]_id={zinc_id}&output_fields={output_fields}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n\ndef search_by_smiles(smiles, dist=0, adist=0, output_fields=\"zinc_id,smiles\"):\n    \"\"\"Search ZINC22 by SMILES with optional distance parameters.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002Fsmiles.txt:smiles={smiles}&dist={dist}&adist={adist}&output_fields={output_fields}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n\ndef get_random_compounds(count=100, subset=None, output_fields=\"zinc_id,smiles,tranche\"):\n    \"\"\"Get random compounds from ZINC22.\"\"\"\n    url = f\"https:\u002F\u002Fcartblanche22.docking.org\u002Fsubstance\u002Frandom.txt:count={count}&output_fields={output_fields}\"\n    if subset:\n        url += f\"&subset={subset}\"\n    result = subprocess.run(['curl', url], capture_output=True, text=True)\n    return result.stdout\n```\n\n### Parsing Results\n\n```python\nimport pandas as pd\nfrom io import StringIO\n\n# Query ZINC and parse as DataFrame\nresult = query_zinc_by_id(\"ZINC000000000001\")\ndf = pd.read_csv(StringIO(result), sep='\\t')\n\n# Extract tranche properties\ndef parse_tranche(tranche_str):\n    \"\"\"Parse ZINC tranche code to extract properties.\"\"\"\n    # Format: H##P###M###-phase\n    import re\n    match = re.match(r'H(\\d+)P(\\d+)M(\\d+)-(\\d+)', tranche_str)\n    if match:\n        return {\n            'h_donors': int(match.group(1)),\n            'logP': int(match.group(2)) \u002F 10.0,\n            'mw': int(match.group(3)),\n            'phase': int(match.group(4))\n        }\n    return None\n\ndf['tranche_props'] = df['tranche'].apply(parse_tranche)\n```\n\n## Best Practices\n\n### Query Optimization\n\n- **Start specific**: Begin with exact searches before expanding to similarity searches\n- **Use appropriate distance parameters**: Small dist values (1-3) for close analogs, larger (5-10) for diverse analogs\n- **Limit output fields**: Request only necessary fields to reduce data transfer\n- **Batch queries**: Combine multiple ZINC IDs in a single API call when possible\n\n### Performance Considerations\n\n- **Rate limiting**: Respect server resources; avoid rapid consecutive requests\n- **Caching**: Store frequently accessed compounds locally\n- **Parallel downloads**: When downloading 3D structures, use parallel wget or aria2c for file repositories\n- **Subset filtering**: Use lead-like, drug-like, or fragment subsets to reduce search space\n\n### Data Quality\n\n- **Verify availability**: Supplier catalogs change; confirm compound availability before large orders\n- **Check stereochemistry**: SMILES may not fully specify stereochemistry; verify 3D structures\n- **Validate structures**: Use cheminformatics tools (RDKit, OpenBabel) to verify structure validity\n- **Cross-reference**: When possible, cross-check with other databases (PubChem, ChEMBL)\n\n## Resources\n\n### references\u002Fapi_reference.md\n\nComprehensive documentation including:\n\n- Complete API endpoint reference\n- URL syntax and parameter specifications\n- Advanced query patterns and examples\n- File repository organization and access\n- Bulk download methods\n- Error handling and troubleshooting\n- Integration with molecular docking software\n\nConsult this document for detailed technical information and advanced usage patterns.\n\n## Important Disclaimers\n\n### Data Reliability\n\nZINC explicitly states: **\"We do not guarantee the quality of any molecule for any purpose and take no responsibility for errors arising from the use of this database.\"**\n\n- Compound availability may change without notice\n- Structure representations may contain errors\n- Supplier information should be verified independently\n- Use appropriate validation before experimental work\n\n### Appropriate Use\n\n- ZINC is intended for academic and research purposes in drug discovery\n- Verify licensing terms for commercial use\n- Respect intellectual property when working with patented compounds\n- Follow your institution's guidelines for compound procurement\n\n## Additional Resources\n\n- **ZINC Website**: https:\u002F\u002Fzinc.docking.org\u002F\n- **CartBlanche22 Interface**: https:\u002F\u002Fcartblanche22.docking.org\u002F\n- **ZINC Wiki**: https:\u002F\u002Fwiki.docking.org\u002F\n- **File Repository**: https:\u002F\u002Ffiles.docking.org\u002Fzinc22\u002F\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fdocking-org\u002F\n- **Primary Publication**: Irwin et al., J. Chem. Inf. Model 2020 (ZINC15)\n- **ZINC22 Publication**: Irwin et al., J. Chem. Inf. Model 2023\n\n## Citations\n\nWhen using ZINC in publications, cite the appropriate version:\n\n**ZINC22**:\nIrwin, J. J., et al. \"ZINC22—A Free Multi-Billion-Scale Database of Tangible Compounds for Ligand Discovery.\" *Journal of Chemical Information and Modeling* 2023.\n\n**ZINC15**:\nIrwin, J. J., et al. \"ZINC15 – Ligand Discovery for Everyone.\" *Journal of Chemical Information and Modeling* 2020, 60, 6065–6073.\n\n",{"name":5,"license":14,"metadata":23,"description":7},{"skill-author":24},"AlterLab","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Falterlab-zinc-db",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add roohe\u002Fagentic-super-skills --skill alterlab-zinc-db",{"tool":39,"command":40},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill alterlab-zinc-db",{"tool":42,"command":43},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill alterlab-zinc-db","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-zinc-db\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi_reference.md","REFERENCE","参考文档",19517,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-zinc-db\u002Freferences\u002Fapi_reference.md",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]