LaminDB
Overview
LaminDB is an open-source, lineage-native lakehouse for biology. It makes datasets and models queryable, traceable, validated, reproducible, and FAIR (Findable, Accessible, Interoperable, Reusable) while storing data in open formats across local filesystems, S3, GCS, Hugging Face, SQLite, and Postgres.
Core Value Proposition:
- Queryability: Search and filter artifacts, records, runs, features, schemas, and collections
- Traceability: Track inputs, outputs, parameters, source code, and environments for notebooks, scripts, functions, and pipelines
- Validation: Curate DataFrame, AnnData, SpatialData, TileDB-SOMA, Parquet, Zarr, and other biological formats with schemas
- FAIR Compliance: Standardize annotations with Bionty-backed ontologies and custom registries
- Change management: Organize work with projects, branches, spaces, collections, and saved notes or plans
When to Use This Skill
Use this skill when:
- Managing biological datasets: scRNA-seq, bulk RNA-seq, spatial transcriptomics, flow cytometry, multi-modal data, EHR data
- Tracking computational workflows: Notebooks, scripts, functions, shell scripts, and pipeline execution (Nextflow, Snakemake, Redun)
- Curating and validating data: Schema validation, standardization, ontology-based annotation
- Working with biological ontologies: Genes, proteins, cell types, tissues, diseases, pathways (via Bionty)
- Building data lakehouses: Unified query interface across multiple datasets
- Ensuring reproducibility: Automatic versioning, lineage tracking, environment capture
- Integrating ML pipelines: Connecting with Weights & Biases, MLflow, Hugging Face, Lightning, scVI-tools
- Deploying data infrastructure: Setting up local or cloud-based data management systems
- Collaborating on datasets: Sharing curated, annotated data with standardized metadata
Core Capabilities
LaminDB provides six interconnected capability areas, each documented in detail in the references folder.
1. Core Concepts and Data Lineage
Core entities:
- Artifacts: Versioned datasets (DataFrame, AnnData, Parquet, Zarr, etc.)
- Records & ULabels: Experimental entities, typed records, and simple labels
- Collections: Versioned, immutable sets of artifacts
- Runs & Transforms: Computational lineage tracking (what code produced what data)
- Features: Typed metadata fields for annotation and querying
- Projects, Branches & Spaces: Project grouping, change management, and access boundaries
Key workflows:
- Create and version artifacts from files or Python objects
- Track notebook/script execution with
ln.track() and ln.finish()
- Track function workflows with
@ln.flow() and @ln.step()
- Annotate artifacts with records, ulabels, projects, and typed features
- Visualize data lineage graphs with
artifact.view_lineage()
- Query by provenance (find all outputs from specific code/inputs)
Reference: references/core-concepts.md - Read this for detailed information on artifacts, records, runs, transforms, features, versioning, and lineage tracking.
2. Data Management and Querying
Query capabilities:
- Registry exploration and lookup with auto-complete
- Single record retrieval with
get(), one(), one_or_none()
- Filtering with comparison operators (
__gt, __lte, __contains, __startswith)
- Feature-based queries, including expression-style queries with
Feature objects
- Cross-registry traversal with double-underscore syntax
- Full-text search across registries
- Advanced logical queries with
ln.Q objects (AND, OR, NOT)
- Streaming large datasets without loading into memory
Key workflows:
- Browse artifacts with filters and ordering
- Query by features, creation date, creator, size, etc.
- Stream large files in chunks or with array slicing
- Organize data with hierarchical keys
- Group artifacts into collections
Reference: references/data-management.md - Read this for comprehensive query patterns, filtering examples, streaming strategies, and data organization best practices.
3. Annotation and Validation
Curation process:
- Validation: Confirm datasets match desired schemas
- Standardization: Fix typos, map synonyms to canonical terms
- Annotation: Link datasets to metadata entities for queryability
Schema types:
- Flexible schemas: Validate only known columns, allow additional metadata
- Minimal required schemas: Specify essential columns, permit extras
- Strict schemas: Complete control over structure and values
Supported data types:
- DataFrames (Parquet, CSV)
- AnnData (single-cell genomics)
- MuData (multi-modal)
- SpatialData (spatial transcriptomics)
- TileDB-SOMA (scalable arrays)
Key workflows:
- Define features and schemas for data validation
- Use
DataFrameCurator, AnnDataCurator, SpatialDataCurator, or TiledbsomaExperimentCurator for validation
- Standardize values with
.cat.standardize()
- Map to ontologies with
.cat.add_ontology()
- Save curated artifacts with schema linkage
- Query validated datasets by features
Reference: references/annotation-validation.md - Read this for detailed curation workflows, schema design patterns, handling validation errors, and best practices.
4. Biological Ontologies
Available ontologies (via Bionty):
- Genes (Ensembl), Proteins (UniProt)
- Cell types (CL), Cell lines (CLO)
- Tissues (Uberon), Diseases (Mondo, DOID)
- Phenotypes (HPO), Pathways (GO)
- Experimental factors (EFO), Developmental stages
- Organisms (NCBItaxon), Drugs (DrugBank)
Key workflows:
- Import public ontologies with
bt.CellType.import_source()
- Search ontologies with keyword or exact matching
- Standardize terms using synonym mapping
- Explore hierarchical relationships (parents, children, ancestors)
- Validate data against ontology terms
- Annotate datasets with ontology records
- Create custom terms and hierarchies
- Handle multi-organism contexts (human, mouse, etc.)
Reference: references/ontologies.md - Read this for comprehensive ontology operations, standardization strategies, hierarchy navigation, and annotation workflows.
5. Integrations
Workflow managers:
- Nextflow: Track pipeline processes and outputs
- Snakemake: Integrate into Snakemake rules
- Redun: Combine with Redun task tracking
- Lightning: Persist checkpoints and training metadata
MLOps platforms:
- Weights & Biases: Link experiments with data artifacts
- MLflow: Track models and experiments
- Hugging Face: Track model fine-tuning
- scVI-tools: Single-cell analysis workflows
Storage systems:
- Local filesystem, AWS S3, Google Cloud Storage
- S3-compatible (MinIO, Cloudflare R2)
- HTTP/HTTPS endpoints (read-only)
- HuggingFace datasets
Array stores:
- TileDB-SOMA (with cellxgene support)
- DuckDB for SQL queries on Parquet files
Visualization:
- Vitessce for interactive spatial/single-cell visualization
Version control:
- Git integration for source code tracking
Reference: references/integrations.md - Read this for integration patterns, code examples, and troubleshooting for third-party systems.
6. Setup and Deployment
Installation:
- Current stable baseline:
lamindb==2.5.1 (released 2026-06-01; Python >=3.10, <=3.14)
- Basic:
uv pip install 'lamindb==2.5.1'
- With extras:
uv pip install 'lamindb[gcp,zarr-v2,fcs]==2.5.1'
- Minimal namespace only:
uv pip install 'lamindb-core==2.5.1'
- Bionty module: included in the LaminDB docs and available as
uv pip install 'bionty==2.4.0'
- Optional modules: pin reviewed releases for wetlab or clinical schema modules rather than installing floating latest versions
Instance types:
- Local SQLite (development)
- Cloud storage + SQLite (small teams)
- Cloud storage + PostgreSQL (production)
Storage options:
- Local filesystem
- AWS S3 with configurable regions and permissions
- Google Cloud Storage
- S3-compatible endpoints (MinIO, Cloudflare R2)
Configuration:
- Cache management for cloud files
- Multi-user system configurations
- Git repository sync
- Named environment variables for credentials and connection URLs
Deployment patterns:
- Local dev → Cloud production migration
- Multi-region deployments
- Shared storage with personal instances
Reference: references/setup-deployment.md - Read this for detailed installation, configuration, storage setup, database management, security best practices, and troubleshooting.
Safety and Security Defaults
When helping with LaminDB setup or integrations:
- Never display, log, or transmit actual API keys, cloud credentials, database passwords, or full connection strings that include secrets.
- Prefer IAM roles, workload identity, secret managers, or named environment variables such as
LAMIN_DB_URL, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and GOOGLE_APPLICATION_CREDENTIALS; only check whether a named variable is present, not its value.
- Before saving content from REST APIs, external databases, or user-provided files, validate and sanitize it with an explicit schema or curator.
- For reproducible installs, pin package versions or use a lock file. Floating installs are acceptable only when the user explicitly wants the latest upstream release.
Common Use Case Workflows
Use Case 1: Single-Cell RNA-seq Analysis with Ontology Validation
import lamindb as ln
import bionty as bt
import anndata as ad
# Start tracking a notebook/script run
ln.track(params={"analysis": "scRNA-seq QC and annotation"})
# Import cell type ontology
bt.CellType.import_source()
# Load data
adata = ad.read_h5ad("raw_counts.h5ad")
# Validate and standardize cell types
adata.obs["cell_type"] = bt.CellType.standardize(adata.obs["cell_type"])
# Curate with schema
curator = ln.curators.AnnDataCurator(adata, schema)
curator.validate()
artifact = curator.save_artifact(key="scrna/validated.h5ad")
# Link ontology-backed annotations for queryability
cell_types = bt.CellType.from_values(adata.obs["cell_type"])
artifact.cell_types.add(*cell_types)
ln.finish()
Use Case 2: Building a Queryable Data Lakehouse
import lamindb as ln
# Register multiple experiments
for i, file in enumerate(data_files):
artifact = ln.Artifact.from_anndata(
ad.read_h5ad(file),
key=f"scrna/batch_{i}.h5ad",
description=f"scRNA-seq batch {i}"
).save()
# Annotate with features
artifact.features.set_values({
"batch": i,
"tissue": tissues[i],
"condition": conditions[i]
})
# Query across all experiments by annotated features
immune_datasets = ln.Artifact.filter(
key__startswith="scrna/",
tissue="PBMC",
condition="treated"
).to_dataframe()
# Load specific datasets
for artifact in immune_datasets:
adata = artifact.load()
# Analyze
Use Case 3: ML Pipeline with W&B Integration
import lamindb as ln
import wandb
# Initialize both systems
wandb.init(project="drug-response", name="exp-42")
ln.track(params={"model": "random_forest", "n_estimators": 100})
# Load training data from LaminDB
train_artifact = ln.Artifact.get(key="datasets/train.parquet")
train_data = train_artifact.load()
# Train model
model = train_model(train_data)
# Log to W&B
wandb.log({"accuracy": 0.95})
# Save model in LaminDB with W&B linkage
import joblib
joblib.dump(model, "model.pkl")
model_artifact = ln.Artifact("model.pkl", key="models/exp-42.pkl").save()
model_artifact.features.set_values({"wandb_run_id": wandb.run.id})
ln.finish()
wandb.finish()
Use Case 4: Nextflow Pipeline Integration
# In Nextflow process script
import lamindb as ln
ln.track()
# Load input artifact
input_artifact = ln.Artifact.get(key="raw/batch_${batch_id}.fastq.gz")
input_path = input_artifact.cache()
# Process (alignment, quantification, etc.)
# ... Nextflow process logic ...
# Save output
output_artifact = ln.Artifact(
"counts.csv",
key="processed/batch_${batch_id}_counts.csv"
).save()
ln.finish()
For native Nextflow projects, prefer the nf-lamin plugin and current nextflow.config patterns when available; use inline Python tracking for small or custom pipeline steps.
Getting Started Checklist
To start using LaminDB effectively:
Installation & Setup (references/setup-deployment.md)
- Install pinned LaminDB and required extras
- Authenticate with
lamin login
- Initialize instance with
lamin init --storage ...
Learn Core Concepts (references/core-concepts.md)
- Understand Artifacts, Records, Runs, Transforms
- Practice creating and retrieving artifacts
- Implement
ln.track()/ln.finish() or @ln.flow()/@ln.step() in workflows
Master Querying (references/data-management.md)
- Practice filtering and searching registries
- Learn feature-based queries and expression-style filters
- Experiment with streaming large files
Set Up Validation (references/annotation-validation.md)
- Define features relevant to research domain
- Create schemas for data types
- Practice curation workflows
Integrate Ontologies (references/ontologies.md)
- Import relevant biological ontologies (genes, cell types, etc.)
- Validate existing annotations
- Standardize metadata with ontology terms
Connect Tools (references/integrations.md)
- Integrate with existing workflow managers
- Link ML platforms for experiment tracking
- Configure cloud storage and compute
Key Principles
Follow these principles when working with LaminDB:
Track everything: Use ln.track() at the start of every analysis for automatic lineage capture
Validate early: Define schemas and validate data before extensive analysis
Use ontologies: Leverage public biological ontologies for standardized annotations
Organize with keys: Structure artifact keys hierarchically (e.g., project/experiment/batch/file.h5ad)
Query metadata first: Filter and search before loading large files
Version, don't duplicate: Use built-in versioning instead of creating new keys for modifications
Annotate with features: Define typed features and use artifact.features.set_values() for queryable metadata
Document thoroughly: Add descriptions to artifacts, schemas, and transforms
Leverage lineage: Use view_lineage() to understand data provenance
Start local, scale cloud: Develop locally with SQLite, deploy to cloud with PostgreSQL
Reference Files
This skill includes comprehensive reference documentation organized by capability:
references/core-concepts.md - Artifacts, records, runs, transforms, features, versioning, lineage
references/data-management.md - Querying, filtering, searching, streaming, organizing data
references/annotation-validation.md - Schema design, curation workflows, validation strategies
references/ontologies.md - Biological ontology management, standardization, hierarchies
references/integrations.md - Workflow managers, MLOps platforms, storage systems, tools
references/setup-deployment.md - Installation, configuration, deployment, troubleshooting
Read the relevant reference file(s) based on the specific LaminDB capability needed for the task at hand.
Additional Resources
Source: K-Dense-AI/scientific-agent-skills → skills/lamindb/SKILL.md
1---2name: lamindb3description: "Use when working with LaminDB, the open-source lineage-native lakehouse for biological datasets and models. Covers setup, artifact registration, query/search, lineage tracking, validation, ontology-backed annotation with Bionty, collections, branches, storage, and workflow integrations."4category: general-purpose5source_repo: K-Dense-AI/scientific-agent-skills6source_path: "skills/lamindb/SKILL.md"7source_url: https://github.com/K-Dense-AI/scientific-agent-skills/blob/HEAD/skills/lamindb/SKILL.md8metadata:9 source: https://skillmd.com/skills/thedixitjain/lamindb10---111213# LaminDB1415## Overview1617LaminDB is an open-source, lineage-native lakehouse for biology. It makes datasets and models queryable, traceable, validated, reproducible, and FAIR (Findable, Accessible, Interoperable, Reusable) while storing data in open formats across local filesystems, S3, GCS, Hugging Face, SQLite, and Postgres.1819**Core Value Proposition:**20- **Queryability**: Search and filter artifacts, records, runs, features, schemas, and collections21- **Traceability**: Track inputs, outputs, parameters, source code, and environments for notebooks, scripts, functions, and pipelines22- **Validation**: Curate DataFrame, AnnData, SpatialData, TileDB-SOMA, Parquet, Zarr, and other biological formats with schemas23- **FAIR Compliance**: Standardize annotations with Bionty-backed ontologies and custom registries24- **Change management**: Organize work with projects, branches, spaces, collections, and saved notes or plans2526## When to Use This Skill2728Use this skill when:2930- **Managing biological datasets**: scRNA-seq, bulk RNA-seq, spatial transcriptomics, flow cytometry, multi-modal data, EHR data31- **Tracking computational workflows**: Notebooks, scripts, functions, shell scripts, and pipeline execution (Nextflow, Snakemake, Redun)32- **Curating and validating data**: Schema validation, standardization, ontology-based annotation33- **Working with biological ontologies**: Genes, proteins, cell types, tissues, diseases, pathways (via Bionty)34- **Building data lakehouses**: Unified query interface across multiple datasets35- **Ensuring reproducibility**: Automatic versioning, lineage tracking, environment capture36- **Integrating ML pipelines**: Connecting with Weights & Biases, MLflow, Hugging Face, Lightning, scVI-tools37- **Deploying data infrastructure**: Setting up local or cloud-based data management systems38- **Collaborating on datasets**: Sharing curated, annotated data with standardized metadata3940## Core Capabilities4142LaminDB provides six interconnected capability areas, each documented in detail in the references folder.4344### 1. Core Concepts and Data Lineage4546**Core entities:**47- **Artifacts**: Versioned datasets (DataFrame, AnnData, Parquet, Zarr, etc.)48- **Records & ULabels**: Experimental entities, typed records, and simple labels49- **Collections**: Versioned, immutable sets of artifacts50- **Runs & Transforms**: Computational lineage tracking (what code produced what data)51- **Features**: Typed metadata fields for annotation and querying52- **Projects, Branches & Spaces**: Project grouping, change management, and access boundaries5354**Key workflows:**55- Create and version artifacts from files or Python objects56- Track notebook/script execution with `ln.track()` and `ln.finish()`57- Track function workflows with `@ln.flow()` and `@ln.step()`58- Annotate artifacts with records, ulabels, projects, and typed features59- Visualize data lineage graphs with `artifact.view_lineage()`60- Query by provenance (find all outputs from specific code/inputs)6162**Reference:** `references/core-concepts.md` - Read this for detailed information on artifacts, records, runs, transforms, features, versioning, and lineage tracking.6364### 2. Data Management and Querying6566**Query capabilities:**67- Registry exploration and lookup with auto-complete68- Single record retrieval with `get()`, `one()`, `one_or_none()`69- Filtering with comparison operators (`__gt`, `__lte`, `__contains`, `__startswith`)70- Feature-based queries, including expression-style queries with `Feature` objects71- Cross-registry traversal with double-underscore syntax72- Full-text search across registries73- Advanced logical queries with `ln.Q` objects (AND, OR, NOT)74- Streaming large datasets without loading into memory7576**Key workflows:**77- Browse artifacts with filters and ordering78- Query by features, creation date, creator, size, etc.79- Stream large files in chunks or with array slicing80- Organize data with hierarchical keys81- Group artifacts into collections8283**Reference:** `references/data-management.md` - Read this for comprehensive query patterns, filtering examples, streaming strategies, and data organization best practices.8485### 3. Annotation and Validation8687**Curation process:**881. **Validation**: Confirm datasets match desired schemas892. **Standardization**: Fix typos, map synonyms to canonical terms903. **Annotation**: Link datasets to metadata entities for queryability9192**Schema types:**93- **Flexible schemas**: Validate only known columns, allow additional metadata94- **Minimal required schemas**: Specify essential columns, permit extras95- **Strict schemas**: Complete control over structure and values9697**Supported data types:**98- DataFrames (Parquet, CSV)99- AnnData (single-cell genomics)100- MuData (multi-modal)101- SpatialData (spatial transcriptomics)102- TileDB-SOMA (scalable arrays)103104**Key workflows:**105- Define features and schemas for data validation106- Use `DataFrameCurator`, `AnnDataCurator`, `SpatialDataCurator`, or `TiledbsomaExperimentCurator` for validation107- Standardize values with `.cat.standardize()`108- Map to ontologies with `.cat.add_ontology()`109- Save curated artifacts with schema linkage110- Query validated datasets by features111112**Reference:** `references/annotation-validation.md` - Read this for detailed curation workflows, schema design patterns, handling validation errors, and best practices.113114### 4. Biological Ontologies115116**Available ontologies (via Bionty):**117- Genes (Ensembl), Proteins (UniProt)118- Cell types (CL), Cell lines (CLO)119- Tissues (Uberon), Diseases (Mondo, DOID)120- Phenotypes (HPO), Pathways (GO)121- Experimental factors (EFO), Developmental stages122- Organisms (NCBItaxon), Drugs (DrugBank)123124**Key workflows:**125- Import public ontologies with `bt.CellType.import_source()`126- Search ontologies with keyword or exact matching127- Standardize terms using synonym mapping128- Explore hierarchical relationships (parents, children, ancestors)129- Validate data against ontology terms130- Annotate datasets with ontology records131- Create custom terms and hierarchies132- Handle multi-organism contexts (human, mouse, etc.)133134**Reference:** `references/ontologies.md` - Read this for comprehensive ontology operations, standardization strategies, hierarchy navigation, and annotation workflows.135136### 5. Integrations137138**Workflow managers:**139- Nextflow: Track pipeline processes and outputs140- Snakemake: Integrate into Snakemake rules141- Redun: Combine with Redun task tracking142- Lightning: Persist checkpoints and training metadata143144**MLOps platforms:**145- Weights & Biases: Link experiments with data artifacts146- MLflow: Track models and experiments147- Hugging Face: Track model fine-tuning148- scVI-tools: Single-cell analysis workflows149150**Storage systems:**151- Local filesystem, AWS S3, Google Cloud Storage152- S3-compatible (MinIO, Cloudflare R2)153- HTTP/HTTPS endpoints (read-only)154- HuggingFace datasets155156**Array stores:**157- TileDB-SOMA (with cellxgene support)158- DuckDB for SQL queries on Parquet files159160**Visualization:**161- Vitessce for interactive spatial/single-cell visualization162163**Version control:**164- Git integration for source code tracking165166**Reference:** `references/integrations.md` - Read this for integration patterns, code examples, and troubleshooting for third-party systems.167168### 6. Setup and Deployment169170**Installation:**171- Current stable baseline: `lamindb==2.5.1` (released 2026-06-01; Python >=3.10, <=3.14)172- Basic: `uv pip install 'lamindb==2.5.1'`173- With extras: `uv pip install 'lamindb[gcp,zarr-v2,fcs]==2.5.1'`174- Minimal namespace only: `uv pip install 'lamindb-core==2.5.1'`175- Bionty module: included in the LaminDB docs and available as `uv pip install 'bionty==2.4.0'`176- Optional modules: pin reviewed releases for wetlab or clinical schema modules rather than installing floating latest versions177178**Instance types:**179- Local SQLite (development)180- Cloud storage + SQLite (small teams)181- Cloud storage + PostgreSQL (production)182183**Storage options:**184- Local filesystem185- AWS S3 with configurable regions and permissions186- Google Cloud Storage187- S3-compatible endpoints (MinIO, Cloudflare R2)188189**Configuration:**190- Cache management for cloud files191- Multi-user system configurations192- Git repository sync193- Named environment variables for credentials and connection URLs194195**Deployment patterns:**196- Local dev → Cloud production migration197- Multi-region deployments198- Shared storage with personal instances199200**Reference:** `references/setup-deployment.md` - Read this for detailed installation, configuration, storage setup, database management, security best practices, and troubleshooting.201202## Safety and Security Defaults203204When helping with LaminDB setup or integrations:205206- Never display, log, or transmit actual API keys, cloud credentials, database passwords, or full connection strings that include secrets.207- Prefer IAM roles, workload identity, secret managers, or named environment variables such as `LAMIN_DB_URL`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `GOOGLE_APPLICATION_CREDENTIALS`; only check whether a named variable is present, not its value.208- Before saving content from REST APIs, external databases, or user-provided files, validate and sanitize it with an explicit schema or curator.209- For reproducible installs, pin package versions or use a lock file. Floating installs are acceptable only when the user explicitly wants the latest upstream release.210211## Common Use Case Workflows212213### Use Case 1: Single-Cell RNA-seq Analysis with Ontology Validation214215```python216import lamindb as ln217import bionty as bt218import anndata as ad219220# Start tracking a notebook/script run221ln.track(params={"analysis": "scRNA-seq QC and annotation"})222223# Import cell type ontology224bt.CellType.import_source()225226# Load data227adata = ad.read_h5ad("raw_counts.h5ad")228229# Validate and standardize cell types230adata.obs["cell_type"] = bt.CellType.standardize(adata.obs["cell_type"])231232# Curate with schema233curator = ln.curators.AnnDataCurator(adata, schema)234curator.validate()235artifact = curator.save_artifact(key="scrna/validated.h5ad")236237# Link ontology-backed annotations for queryability238cell_types = bt.CellType.from_values(adata.obs["cell_type"])239artifact.cell_types.add(*cell_types)240241ln.finish()242```243244### Use Case 2: Building a Queryable Data Lakehouse245246```python247import lamindb as ln248249# Register multiple experiments250for i, file in enumerate(data_files):251 artifact = ln.Artifact.from_anndata(252 ad.read_h5ad(file),253 key=f"scrna/batch_{i}.h5ad",254 description=f"scRNA-seq batch {i}"255 ).save()256257 # Annotate with features258 artifact.features.set_values({259 "batch": i,260 "tissue": tissues[i],261 "condition": conditions[i]262 })263264# Query across all experiments by annotated features265immune_datasets = ln.Artifact.filter(266 key__startswith="scrna/",267 tissue="PBMC",268 condition="treated"269).to_dataframe()270271# Load specific datasets272for artifact in immune_datasets:273 adata = artifact.load()274 # Analyze275```276277### Use Case 3: ML Pipeline with W&B Integration278279```python280import lamindb as ln281import wandb282283# Initialize both systems284wandb.init(project="drug-response", name="exp-42")285ln.track(params={"model": "random_forest", "n_estimators": 100})286287# Load training data from LaminDB288train_artifact = ln.Artifact.get(key="datasets/train.parquet")289train_data = train_artifact.load()290291# Train model292model = train_model(train_data)293294# Log to W&B295wandb.log({"accuracy": 0.95})296297# Save model in LaminDB with W&B linkage298import joblib299joblib.dump(model, "model.pkl")300model_artifact = ln.Artifact("model.pkl", key="models/exp-42.pkl").save()301model_artifact.features.set_values({"wandb_run_id": wandb.run.id})302303ln.finish()304wandb.finish()305```306307### Use Case 4: Nextflow Pipeline Integration308309```python310# In Nextflow process script311import lamindb as ln312313ln.track()314315# Load input artifact316input_artifact = ln.Artifact.get(key="raw/batch_${batch_id}.fastq.gz")317input_path = input_artifact.cache()318319# Process (alignment, quantification, etc.)320# ... Nextflow process logic ...321322# Save output323output_artifact = ln.Artifact(324 "counts.csv",325 key="processed/batch_${batch_id}_counts.csv"326).save()327328ln.finish()329```330331For native Nextflow projects, prefer the `nf-lamin` plugin and current `nextflow.config` patterns when available; use inline Python tracking for small or custom pipeline steps.332333## Getting Started Checklist334335To start using LaminDB effectively:3363371. **Installation & Setup** (`references/setup-deployment.md`)338 - Install pinned LaminDB and required extras339 - Authenticate with `lamin login`340 - Initialize instance with `lamin init --storage ...`3413422. **Learn Core Concepts** (`references/core-concepts.md`)343 - Understand Artifacts, Records, Runs, Transforms344 - Practice creating and retrieving artifacts345 - Implement `ln.track()`/`ln.finish()` or `@ln.flow()`/`@ln.step()` in workflows3463473. **Master Querying** (`references/data-management.md`)348 - Practice filtering and searching registries349 - Learn feature-based queries and expression-style filters350 - Experiment with streaming large files3513524. **Set Up Validation** (`references/annotation-validation.md`)353 - Define features relevant to research domain354 - Create schemas for data types355 - Practice curation workflows3563575. **Integrate Ontologies** (`references/ontologies.md`)358 - Import relevant biological ontologies (genes, cell types, etc.)359 - Validate existing annotations360 - Standardize metadata with ontology terms3613626. **Connect Tools** (`references/integrations.md`)363 - Integrate with existing workflow managers364 - Link ML platforms for experiment tracking365 - Configure cloud storage and compute366367## Key Principles368369Follow these principles when working with LaminDB:3703711. **Track everything**: Use `ln.track()` at the start of every analysis for automatic lineage capture3723732. **Validate early**: Define schemas and validate data before extensive analysis3743753. **Use ontologies**: Leverage public biological ontologies for standardized annotations3763774. **Organize with keys**: Structure artifact keys hierarchically (e.g., `project/experiment/batch/file.h5ad`)3783795. **Query metadata first**: Filter and search before loading large files3803816. **Version, don't duplicate**: Use built-in versioning instead of creating new keys for modifications3823837. **Annotate with features**: Define typed features and use `artifact.features.set_values()` for queryable metadata3843858. **Document thoroughly**: Add descriptions to artifacts, schemas, and transforms3863879. **Leverage lineage**: Use `view_lineage()` to understand data provenance38838910. **Start local, scale cloud**: Develop locally with SQLite, deploy to cloud with PostgreSQL390391## Reference Files392393This skill includes comprehensive reference documentation organized by capability:394395- **`references/core-concepts.md`** - Artifacts, records, runs, transforms, features, versioning, lineage396- **`references/data-management.md`** - Querying, filtering, searching, streaming, organizing data397- **`references/annotation-validation.md`** - Schema design, curation workflows, validation strategies398- **`references/ontologies.md`** - Biological ontology management, standardization, hierarchies399- **`references/integrations.md`** - Workflow managers, MLOps platforms, storage systems, tools400- **`references/setup-deployment.md`** - Installation, configuration, deployment, troubleshooting401402Read the relevant reference file(s) based on the specific LaminDB capability needed for the task at hand.403404## Additional Resources405406- **Official Documentation**: https://docs.lamin.ai407- **API Reference**: https://docs.lamin.ai/api408- **GitHub Repository**: https://github.com/laminlabs/lamindb409- **Tutorial**: https://docs.lamin.ai/tutorial410- **FAQ**: https://docs.lamin.ai/faq411412---413414**Source:** [`K-Dense-AI/scientific-agent-skills`](https://github.com/K-Dense-AI/scientific-agent-skills) → `skills/lamindb/SKILL.md`