lamindb
Was er macht
LaminDB hilft dir, biologische Daten und ihre Analyseprozesse zu organisieren und nachzuverfolgen. Du kannst Datensätze registrieren, Metadaten annotieren und sicherstellen, dass Ergebnisse reproduzierbar sind.
Wann du ihn nutzt
- ✓Biologische Datensätze registrieren.
- ✓DataFrame- oder AnnData-Metadaten annotieren.
- ✓Wissenschaftliche Skripte oder Workflows nachverfolgen.
Link zum Skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/lamindb/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Organisiere meine Daten zu genetischen Experimenten und dokumentiere die Analysen, die ich durchgeführt habe.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Du legst fest, wie deine Daten strukturiert sein sollen (Schema) und welche Informationen wichtig sind (Features). Danach registrierst du deine Dateien und Skripte, sodass alles auffindbar und reproduzierbar ist.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
…
Häufige Fragen
Was ist ein „Artefakt“?
Ein Artefakt ist eine Datei oder ein Ordner, den du registrierst, zum Beispiel ein Datensatz oder ein Skript. LaminDB verfolgt diese Artefakte nach.
Wie stellt LaminDB Reproduzierbarkeit sicher?
Es protokolliert die Eingangsdaten, die verwendeten Skripte und die Analyseparameter und erstellt so eine vollständige Historie, mit der du die Arbeit erneut ausführen kannst.
Was sind „Schemata“ und „Features“?
Schemata legen die erwartete Struktur deiner Daten fest (Spalten und Datentypen). Features sind die einzelnen Felder innerhalb dieser Struktur, etwa „Genanzahl“ oder „Versuchsbedingung“.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 51k
- Platz im Ranking
- #3485
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
13c-metabolic-flux
51kSchätzt Stoffflüsse im Stoffwechsel anhand von Kohlenstoff-13-Isotopendaten. Nützlich für die Analyse des Zellstoffwechsels und biochemischer Stoffwechselwege.
adaptyv
51kPlant Experimente zur Proteincharakterisierung mit der Adaptyv API. Hilft beim Schätzen der Kosten, Einreichen von Sequenzen und Verfolgen der Laborergebnisse.
aeon
51kFührt Machine-Learning-Aufgaben mit Zeitreihendaten aus. Nützlich zum Klassifizieren, Prognostizieren, Erkennen von Anomalien und Finden von Mustern.
alphagenome
51kSucht vorberechnete genomische Effekte für genetische Varianten heraus. Liefert Scores und Erklärungen zu den Auswirkungen der Varianten auf das Genom.
Ähnliche Skills
pytorch-patterns
280kHilft deinem Agenten, PyTorch für Machine-Learning-Modelle einzusetzen. Er wendet Best Practices für effizientes Training und reproduzierbare Ergebnisse an.
evm-token-decimals
280kHilft deinem Agenten, Fehler bei Dezimalzahlen in verschiedenen Blockchain-Netzwerken zu vermeiden. Sorgt dafür, dass Token-Werte stimmen.
ito-inference
280kHilft deinem Agenten, die Verfügbarkeit von KI-Modellen zu prüfen. Er verbindet Rechenanfragen mit einem bereiten Modellservice.