lamindb
यह क्या करती है
LaminDB जैविक डेटा और उसकी विश्लेषण प्रक्रियाओं को व्यवस्थित और ट्रैक करने में मदद करता है। इससे आप डेटासेट रजिस्टर कर सकते हैं, मेटाडेटा एनोटेट कर सकते हैं और यह पक्का कर सकते हैं कि नतीजे दोबारा बनाए जा सकें।
कब इस्तेमाल करें
- ✓जैविक डेटासेट रजिस्टर करना।
- ✓DataFrame या AnnData का मेटाडेटा एनोटेट करना।
- ✓वैज्ञानिक स्क्रिप्ट या वर्कफ़्लो को ट्रैक करना।
Skill का लिंक
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/lamindb/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा जेनेटिक प्रयोग का डेटा व्यवस्थित करो और मेरे किए गए विश्लेषणों को ट्रैक करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप तय करते हैं कि आपके डेटा की संरचना कैसी होनी चाहिए (स्कीमा) और कौन-सी जानकारी ज़रूरी है (फ़ीचर्स)। फिर आप अपनी फ़ाइलें और स्क्रिप्ट रजिस्टर करते हैं, ताकि सब कुछ खोजा और दोबारा चलाया जा सके।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
LaminDB
When to use
Use for registering biological datasets, curating DataFrame/AnnData metadata, querying annotated artifacts, and tracking scientific scripts or workflows. LaminDB stores metadata in SQLite/PostgreSQL and files in configured storage; registration alone does not establish scientific validity or FAIR compliance.
This skill targets LaminDB 2.10.0 and Bionty 2.5.0. The local examples were
executed on Python 3.12, pandas 3.0.6, and AnnData 0.13.2. The LaminDB release
caps AnnData at 0.13.2; preserve its dependency constraints. Install IPython for
registry synonym helpers (add_synonym() imports it in this release).
Workflow
- Confirm the intended instance, storage, and write scope with
lamin info. Use a new local development directory for experiments. See setup and deployment. - Define typed
Featurerecords and aSchemafor the biological data. Use registry-backed categorical dtypes for controlled vocabularies;dtype=stronly checks strings. See annotation and validation. - Review the ontology source/version and organism. Standardize only reviewed synonyms and preserve unresolved annotations. See Bionty ontologies.
- In a script or notebook, start
ln.track(), load registered inputs, validate, and save outputs.curator.validate()returnsNoneon success and raisesln.errors.ValidationErroron failure. Repair, then validate again. - Save through the curator or a schema-aware artifact constructor. Check the
stored schema and round-trip content; finish a successful run with
ln.finish(). - Query metadata before loading content. Record artifact UIDs and schema/source provenance for reproducibility; a key can resolve to a newer version later. See queries and streaming.
Local worked example
Run in a dedicated environment and an empty project directory:
uv venv --python 3.12
uv pip install 'lamindb==2.10.0' 'bionty==2.5.0' 'ipython==9.17.1'
source .venv/bin/activate
lamin init --storage ./storage --name biology-demo --modules bionty
Save the following as curate_qc.py, then run python curate_qc.py:
import pandas as pd
import lamindb as ln
ln.track(params={"analysis": "QC metadata curation"})
count = ln.Feature(name="gene_count", dtype=int).save()
condition = ln.Feature(name="condition", dtype=str).save()
schema = ln.Schema(
name="qc_metadata",
features=[count, condition],
maximal_set=True, # reject extra columns
).save()
df = pd.DataFrame({
"gene_count": [120, 130],
"condition": ["control", "treated"],
})
curator = ln.curators.DataFrameCurator(df, schema)
curator.validate() # raises on invalid data; do not use as an if condition
artifact = curator.save_artifact(key="experiments/qc.parquet")
assert artifact.schema == schema
pd.testing.assert_frame_equal(artifact.load(), df)
ln.finish()
This validates table structure/types, not whether the counts satisfy assay QC. Add assay-specific checks (units, allowed ranges, missingness, duplicate sample IDs, batch balance) before publication or downstream analysis.
Core objects and contracts
| Object | Purpose and important constraint |
|---|---|
Artifact |
A file/folder or serialized dataset; cache() gets a local path, load() materializes content, open() returns a format-specific accessor. |
Feature |
A typed metadata field; save its definition before artifact.features.set_values(...). |
Schema |
Validation rules and feature membership; maximal_set=True rejects extras. flexible=False alone does not. |
Record, ULabel |
Experimental entities and simple labels. A custom term is not an ontology assertion. |
Run, Transform |
An execution and its code definition. Inputs are run.input_artifacts; outputs are run.output_artifacts. |
Collection |
A versioned group of artifacts; iterate collection.artifacts.all(). |
Project, Branch, Space |
Grouping, change organization, and access scope; branches do not replace permissions. |
Use @ln.flow() for a workflow entry point and @ln.step() within it. Lineage
captures tracked accesses, not arbitrary reads outside LaminDB. Review
core concepts for tracking, labels, and revisions.
Failure patterns to avoid
…
अक्सर पूछे जाने वाले सवाल
'आर्टिफ़ैक्ट' क्या होता है?
आर्टिफ़ैक्ट वह फ़ाइल या फ़ोल्डर है जिसे आप रजिस्टर करते हैं, जैसे डेटासेट या स्क्रिप्ट। LaminDB इन आर्टिफ़ैक्ट का रिकॉर्ड रखता है।
LaminDB रिप्रोड्यूसिबिलिटी कैसे सुनिश्चित करता है?
यह इनपुट डेटा, इस्तेमाल की गई स्क्रिप्ट और विश्लेषण के पैरामीटर ट्रैक करता है, और पूरा इतिहास बनाता है ताकि आप काम को दोबारा कर सकें।
'स्कीमा' और 'फ़ीचर्स' क्या हैं?
स्कीमा आपके डेटा की अपेक्षित संरचना तय करता है (कॉलम और उनके प्रकार), और फ़ीचर्स उस संरचना के अलग-अलग फ़ील्ड होते हैं, जैसे 'जीन काउंट' या 'प्रयोग की स्थिति'।
जानकारी
लेखक का मूल विवरण
Manages biological datasets and models with LaminDB, including artifact registration, lineage tracking, schema validation, Bionty ontology annotation, query/search, collections, branches, storage, and workflow integrations. Use for reproducible biological data curation or a LaminDB lakehouse.
लोकप्रियता
- GitHub स्टार
- 51k
- रैंकिंग में स्थान
- #3485
- लाइसेंस
- 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 से जोड़ता है।