davila7/claude-code-templates/molfeat
Claude Code and agent skill by davila7/claude-code-templates
- community
Checking that the SKILL.md file is still in the repository.
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
Install
npx vskill@latest install davila7/claude-code-templates/molfeatSKILL.md
Molfeat - Molecular Featurization Hub
Overview
Molfeat is a comprehensive Python library for molecular featurization that unifies 100+ pre-trained embeddings and hand-crafted featurizers. Convert chemical structures (SMILES strings or RDKit molecules) into numerical representations for machine learning tasks including QSAR modeling, virtual screening, similarity searching, and deep learning applications. Features fast parallel processing, scikit-learn compatible transformers, and built-in caching.
When to Use This Skill
This skill should be used when working with:
- Molecular machine learning: Building QSAR/QSPR models, property prediction
- Virtual screening: Ranking compound libraries for biological activity
- Similarity searching: Finding structurally similar molecules
- Chemical space analysis: Clustering, visualization, dimensionality reduction
- Deep learning: Training neural networks on molecular data
- Featurization pipelines: Converting SMILES to ML-ready representations
- Cheminformatics: Any task requiring molecular feature extraction
Installation
Optional dependencies for specific featurizers:
molfeat[dgl]- GNN models (GIN variants)molfeat[graphormer]- Graphormer modelsmolfeat[transformer]- ChemBERTa, ChemGPT, MolT5molfeat[fcd]- FCD descriptorsmolfeat[map4]- MAP4 fingerprints
Core Concepts
Molfeat organizes featurization into three hierarchical classes:
1. Calculators (molfeat.calc)
Callable objects that convert individual molecules into feature vectors. Accept RDKit Chem.Mol objects or SMILES strings.
Use calculators for:
- Single molecule featurization
- Custom processing loops
- Direct feature computation
Example:
2. Transformers (molfeat.trans)
Scikit-learn compatible transformers that wrap calculators for batch processing with parallelization.
Use transformers for:
- Batch featurization of molecular datasets
- Integration with scikit-learn pipelines
- Parallel processing (automatic CPU utilization)
Example:
3. Pretrained Transformers (molfeat.trans.pretrained)
Specialized transformers for deep learning models with batched inference and caching.
Use pretrained transformers for:
- State-of-the-art molecular embeddings
- Transfer learning from large chemical datasets
- Deep learning feature extraction
Example:
Quick Start Workflow
Basic Featurization
Save and Load Configuration
Handle Errors Gracefully
Choosing the Right Featurizer
For Traditional Machine Learning (RF, SVM, XGBoost)
Start with fingerprints:
For interpretable models:
Combine multiple featurizers:
For Deep Learning
Transformer-based embeddings:
Graph neural networks:
For Similarity Searching
For Pharmacophore-Based Approaches
Common Workflows
Building a QSAR Model
Virtual Screening Pipeline
Similarity Search
Scikit-learn Pipeline Integration
Comparing Multiple Featurizers
Discovering Available Featurizers
Use the ModelStore to explore all available featurizers:
Advanced Features
Custom Preprocessing
Batch Processing Large Datasets
Caching Expensive Embeddings
Performance Tips
- Use parallelization: Set
n_jobs=-1to utilize all CPU cores - Batch processing: Process multiple molecules at once instead of loops
- Choose appropriate featurizers: Fingerprints are faster than deep learning models
- Cache pretrained models: Leverage built-in caching for repeated use
- Use float32: Set
dtype=np.float32when precision allows - Handle errors efficiently: Use
ignore_errors=Truefor large datasets
Common Featurizers Reference
Quick reference for frequently used featurizers:
| Featurizer | Type | Dimensions | Speed | Use Case | |
|---|---|---|---|---|---|
ecfp | Fingerprint | 2048 | Fast | General purpose | |
maccs | Fingerprint | 167 | Very fast | Scaffold similarity | |
desc2D | Descriptors | 200+ | Fast | Interpretable models | |
mordred | Descriptors | 1800+ | Medium | Comprehensive features | |
map4 | Fingerprint | 1024 | Fast | Large-scale screening | |
ChemBERTa-77M-MLM | Deep learning | 768 | Slow* | Transfer learning | |
gin-supervised-masking | GNN | Variable | Slow* | Graph-based models |
*First run is slow; subsequent runs benefit from caching
Resources
This skill includes comprehensive reference documentation:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcli-tool/components/skills/scientific/molfeat/SKILL.md
Popularity
- Repository stars
- 22,322
- Repository forks
- 2,116
- Repository npm downloads, 7 days
- 5,078
- 7-day trend score
- 70
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/davila7/claude-code-templates/molfeat)