smiles-validation
Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.
- License 许可
- MIT
- 最近更新
- 2026-10-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- smiles-validation
- tags
- [ "cheminformatics", "validation", "SMILES", "quality-control" ]
- license
- MIT
- version
- 1.0.0
- category
- chemistry
- metadata
- { "skill-author": "Synthetic Sciences" }
- description
- Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.
- dependencies
- [ "rdkit-pypi" ]
02 资源文件 1
- 脚本scripts/validate.py8.8 KB
03 SKILL.md 正文
SMILES Validation
Overview
LLMs frequently generate invalid SMILES or produce molecules that don't match their stated reasoning. This skill provides strict validation, structural comparison, and modification verification.
Key checks:
- Parse validation: RDKit sanitization, valence checking, parenthesis/bracket balance
- Structural comparison: Tanimoto similarity, scaffold preservation, MCS analysis
- Modification verification: Confirm claimed structural changes exist in the actual molecule
- Classification: Categorize changes as optimization (>0.6 similarity), significant modification (0.4-0.6), or de novo design (<0.4)
When to Use This Skill
- After molecule generation: Validate every SMILES before reporting results
- Optimization verification: Confirm proposed modifications match the actual structure
- Batch validation: Check a library of generated molecules for validity
- Quality control: Ensure reproducibility of molecular designs
Installation
pip install rdkit-pypi
Core Workflows
1. Validate a Single SMILES
python scripts/validate.py --smiles "c1ccccc1"
2. Compare Original vs Modified
python scripts/validate.py --original "c1ccccc1" --proposed "c1ccc(O)cc1" --check-modification "Added hydroxyl group"
3. Batch Validation
python scripts/validate.py --input generated_molecules.csv --output validation_report.json
Script Reference
| Script | Purpose | Key Outputs |
|---|---|---|
validate.py |
SMILES validation, comparison, and modification checking | JSON report with validity, similarity, scaffold match, modification verification |
04 同仓库更多 Skills
statistical-power
Sample size calculation, power analysis, and effect size conversion for scientific studies. Use BEFORE data collection (a priori) to determine required N, or after (post-hoc) to compute achieved power. Covers parametric tests (t-test, ANOVA, chi-square, proportions, correlation, regression), simulation-based power for complex/clustered/nested designs, and power curves. Use this skill when someone asks 'how many samples do I need', 'what is my power', 'what effect size can I detect', or any variant. Pairs with /experimental-design (choose design first, then compute power) and /statistical-analysis (analyze data after collection).
statistical-analysis
Guided statistical analysis with test selection and reporting. Use when you need help choosing appropriate tests for your data, assumption checking, power analysis, and APA-formatted results. Best for academic research reporting, test selection guidance. For implementing specific models programmatically use statsmodels.
scientific-writing
Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), for research papers and journal submissions.
scientific-visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
research-code
Debug, profile, review, and restructure Python research and analysis code. Use when analysis scripts crash, produce wrong results, run too slowly, or need a correctness review. Covers: reading tracebacks and diagnosing root causes, hypothesis-driven debugging, reviewing code for common statistical/numerical errors, profiling data pipelines, improving reproducibility (seeds, environments, determinism), and structuring analysis scripts for sharing. Distinct from /exploratory-data-analysis (which understands data) and /statistical-analysis (which chooses and runs tests) — this skill focuses on the code itself.
markdown-mermaid-writing
Comprehensive markdown and Mermaid diagram writing skill. Use when creating any scientific document, report, analysis, or visualization. Establishes text-based diagrams as the default documentation standard with full style guides (markdown + mermaid), 24 diagram type references, and 9 document templates.