Downloads & Batching
Pull large ZINC exports in 50k-100k pages, stream each shard to disk, merge and gzip them, and record query parameters and shard counts in a metadata.json.
This page shows how to pull large ZINC exports without exhausting memory or storage — chunking requests into pages, streaming to disk, merging shards, and recording provenance. Requesting smaller pages and streaming responses is what most affects whether a bulk download completes reliably. These scripts pull straight from ZINC's CartBlanche22 service: ask Ivy to run them in the chat's code workspace, where files land under /workspace/scratch/, or run them on your own machine.
Chunk large requests
- Request smaller pages (e.g., 50k–100k compounds per call).
- Stream responses to disk to avoid high memory usage.
Merge shards
Provenance
- Store query parameters in
/workspace/scratch/metadata.json. - Record counts per shard and final merged count.
- Keep the original, unfiltered shards alongside filtered outputs.
Storage tips
- Compress CSVs after filtering:
gzip zinc_full.csv. - If producing SDF, chunk by 10k–20k molecules to keep files manageable.
- Validate a random sample of SMILES from each shard before downstream screening.
Canvas Visualization
When a ZINC lookup returns, a result card appears on the canvas.
- Card size: 350x300px
- Border color: Blue-grey (#607D8B)
- Visualization: Compound grid with vendor availability indicators
Tier 2 Metrics
- Compounds found count
- Average molecular weight
- Available (with vendor count)
- Search time
- Query string
Tanimoto Coefficient
The ZINC lookup itself finds analogs by edit distance, not Tanimoto. When you ask Ivy to filter results by Tanimoto similarity, it computes it with RDKit in the code workspace; read the threshold like this:
- 1.0: Identical fingerprints
- >=0.7: Highly similar (recommended for analog finding)
- 0.5-0.7: Moderate similarity (scaffold hopping candidates)
- <0.5: Low similarity (diverse chemical space)
Was this page helpful?
3D Prep & SDF Exports
Turn a filtered ZINC SMILES set into docking-ready 3D with RDKit ETKDGv3 and MMFF — deduplicate on canonical SMILES first, then shard the SDF at 10k-20k.
Property Filters
There is no ZINC filter panel. Ask Ivy to filter a ZINC lookup's results by molecular weight, LogP, hydrogen-bond and rotatable-bond caps, similarity and structural alerts.