molfeat
यह क्या करती है
यह टूल केमिकल मॉलिक्यूल (जैसे उनकी संरचना) की जानकारी को संख्याओं में बदलता है, जिन्हें कंप्यूटर समझ सकता है। इन संख्यात्मक रूपों का उपयोग मॉलिक्यूल के गुणों का अनुमान लगाने या मिलते-जुलते मॉलिक्यूल ढूंढने जैसे कामों में होता है।
कब इस्तेमाल करें
- ✓जब आप नए मॉलिक्यूल के गुणों का अनुमान लगाना चाहते हैं।
- ✓जब आपको किसी ज्ञात मॉलिक्यूल जैसे गुणों वाले मॉलिक्यूल ढूंढने हों।
- ✓मशीन लर्निंग मॉडल को मॉलिक्यूल के डेटा से ट्रेन करने के लिए।
Skill का लिंक
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/molfeat/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“SMILES मॉलिक्यूल 'CCO' को radius 2 वाले ECFP fingerprint में बदलो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल खास एल्गोरिदम का उपयोग करके मॉलिक्यूल की संरचना को संख्याओं की एक श्रृंखला (fingerprints या descriptors) में बदलता है। यह अलग-अलग प्रकार के representations संभाल सकता है और यह सुनिश्चित करता है कि रूपांतरण हर बार एक जैसा हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Molfeat — Small-molecule featurization
When to use
Use this skill to turn SMILES or RDKit molecules into fingerprints, descriptors, pharmacophores, or pretrained embeddings for molecular machine learning and similarity search. Compare representations on the same molecular split and assay endpoint.
This skill targets Molfeat 1.0.0. The previous 0.11 runtime guidance is obsolete:
1.x supports modern Python and removes DGL/DGLLife, legacy Graphormer, and protein
adapters. Historical model-store cards can still name removed adapters. The tagged
1.0 migration guide
and source take precedence over older pages still served at the documentation's
stable URL.
Installation
Create an isolated environment. Core examples were executed on Python 3.13.3/macOS Apple Silicon with Molfeat 1.0.0, datamol 0.13.0, RDKit 2026.03.6, and PyTorch 2.14.1.
uv venv --python 3.13 .venv-molfeat
uv pip install --python .venv-molfeat/bin/python "molfeat==1.0.0"
On Windows use .venv-molfeat\Scripts\python.exe as the interpreter path. Upstream
supports Python 3.11–3.14; macOS Intel uses Python 3.11–3.12, PyTorch 2.2.x, NumPy<2,
and Transformers<5. Other platforms require PyTorch>=2.5. Let Molfeat's platform
markers resolve these constraints; do not copy Apple Silicon pins to Intel.
Install only needed extras with the same interpreter: molfeat[transformer]==1.0.0
for Hugging Face models, [mordred] for mordredcommunity, [pyg] for graph tensors,
[fcd] for ChemNet embeddings, [selfies] for SELFIES conversion, [cache] for
HDF5/Parquet, [viz] for visualization, and [cloud] for S3/GCS stores. DGL and
Graphormer extras no longer exist. Pretrained inference may download substantial
weights; check model licensing, disk space, and device requirements first.
Workflow
- Preserve source record IDs, labels, original structures, and a declared policy for salts, stereochemistry, tautomers, charge, and duplicate compounds. Standardization changes chemical identity; apply the same policy to training and prediction.
- Start with an explicit ECFP baseline. A calculator processes one molecule;
MoleculeTransformerbatches it.datamol.Molis RDKit's molecule type. - Record rejected positions and align every associated array. Inspect descriptor NaN/Inf separately: successful parsing does not guarantee finite features.
- Fit any feature selection, imputation, scaling, and model inside the training fold. Prefer scaffold/group or temporal splits appropriate to the scientific question; random splits can leak close analogues or repeated measurements.
- Save the featurizer state, ordered feature names, package versions, molecular preprocessing policy, and input IDs. Revalidate old state after migrating to 1.x.
Fingerprint baseline and invalid records
import numpy as np
from molfeat.calc import FPCalculator
from molfeat.trans import MoleculeTransformer
smiles = ["CCO", "invalid", "CC(=O)O", "c1ccccc1"]
record_ids = np.array(["ethanol", "rejected", "acetate", "benzene"])
y = np.array([0.1, 9.9, 0.2, 0.3]) # toy labels only
calc = FPCalculator("ecfp", radius=2, fpSize=2048, includeChirality=True)
transformer = MoleculeTransformer(calc, n_jobs=1, dtype=np.float32)
X, valid_ids = transformer(smiles, ignore_errors=True)
assert X.shape == (3, 2048)
X_ids, y_valid = record_ids[valid_ids], y[valid_ids]
assert valid_ids == [0, 2, 3]
assert np.isfinite(X).all()
ignore_errors belongs on the call, not the constructor. With True, __call__
returns filtered features and original input positions; with False, it raises on
failed molecules. transform(..., ignore_errors=True) preserves positions using
None for failures. Never filter each feature block independently and then concatenate.
ECFP radius is a bond radius: radius=2 means ECFP4; radius 3 means ECFP6. In 1.0.0
FPCalculator("ecfp") defaults to radius 2 and 2048 bits. FPVecTransformer has a
different default length of 2000, so specify length=2048 when using it.
Configuration round trip
transformer.to_state_yaml_file("featurizer.yml")
loaded = MoleculeTransformer.from_state_yaml_file("featurizer.yml")
np.testing.assert_array_equal(loaded(["CCO"]), transformer(["CCO"]))
Load only trusted configuration/artifacts. State can identify Python classes and
…
अक्सर पूछे जाने वाले सवाल
'Fingerprints' और 'descriptors' क्या होते हैं?
Fingerprints मॉलिक्यूल के डिजिटल बारकोड जैसे होते हैं, जो दिखाते हैं कि कुछ खास फीचर मौजूद हैं या नहीं। Descriptors ऐसी संख्यात्मक वैल्यू हैं जो किसी खास मॉलिक्यूल गुण को मापती हैं।
क्या मैं इस टूल को किसी भी तरह के मॉलिक्यूल के साथ इस्तेमाल कर सकता हूँ?
हाँ, बशर्ते मॉलिक्यूल ऐसे फॉर्मेट में हो जिसे टूल समझता है, जैसे SMILES या RDKit structures। यह गलत मॉलिक्यूल को पहचान भी सकता है और चाहें तो उन्हें छोड़ भी सकता है।
मॉडल ट्रेन करने के लिए नतीजे भरोसेमंद हों, यह कैसे सुनिश्चित करूँ?
ट्रेनिंग और टेस्टिंग, दोनों के सभी मॉलिक्यूल पर एक ही standardization नियम लगाना ज़रूरी है। साथ ही, जिस सटीक configuration से representations बनाए गए, उसे सेव करके रखें। इससे परिणाम एक जैसे रहेंगे।
जानकारी
लेखक का मूल विवरण
Featurizes small molecules with Molfeat for QSAR/QSPR, chemical similarity, virtual screening, and molecular ML. Covers ECFP/MACCS fingerprints, RDKit descriptors, pharmacophores, pretrained embeddings, configuration persistence, and molecule-to-label alignment.
लोकप्रियता
- GitHub स्टार
- 51k
- रैंकिंग में स्थान
- #3501
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
13c-metabolic-flux
51kकार्बन-13 आइसोटोप ट्रेसिंग डेटा से मेटाबोलिक फ़्लक्स का अनुमान लगाता है। कोशिका के मेटाबॉलिज़्म और बायोकेमिकल मार्गों का विश्लेषण करने के लिए यह उपयोगी है।
adaptyv
51kAdaptyv API का उपयोग करके प्रोटीन कैरेक्टराइज़ेशन प्रयोग डिज़ाइन करता है। लागत का अनुमान लगाने, सीक्वेंस सबमिट करने और लैब के नतीजों पर नज़र रखने में मदद करता है।
aeon
51kटाइम सीरीज़ डेटा पर मशीन लर्निंग के काम करता है। क्रमबद्ध डेटा में वर्गीकरण, पूर्वानुमान, एनोमली डिटेक्शन और पैटर्न खोजने के लिए यह उपयोगी है।
alphagenome
51kजेनेटिक वेरिएंट्स के पहले से गणना किए गए जीनोमिक प्रभाव देखता है। वेरिएंट का जीनोम पर असर समझने के लिए स्कोर और स्पष्टीकरण देता है।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।