Skip to main content

lobster-metadata

Sample metadata management and harmonization for multi-omics datasets.

Installation

pip install lobster-metadata

Agents

Agent Description
metadata_assistant Metadata operations specialist. Sample ID mapping, schema standardization, dataset validation, and disease annotation enrichment.

Services

Service Purpose
SampleMappingService Map sample IDs between datasets using multiple strategies
MetadataStandardizationService Standardize metadata fields to Pydantic schemas
MetadataFilteringService Filter datasets by metadata criteria
DiseaseStandardizationService Standardize disease names to controlled vocabularies
DiseaseOntologyService Map diseases to ontology terms (MONDO, DO)
ClinicalMetadataService Extract and validate clinical metadata fields
SampleGroupingService Group samples by metadata attributes
MicrobiomeFilteringService Microbiome-specific metadata filtering

Features

Sample ID Mapping

  • Exact match between matrix and metadata identifiers
  • Fuzzy matching with configurable similarity thresholds
  • Pattern-based matching using regular expressions
  • Metadata-based correlation for complex mapping scenarios

Metadata Standardization

  • Transcriptomics schema (cell type, tissue, organism, disease)
  • Proteomics schema (platform, quantification method, normalization)
  • Microbiome schema (16S vs shotgun, taxonomic level, diversity)

Dataset Validation

  • Sample count consistency between matrix and metadata
  • Condition coverage verification for experimental design
  • Control sample identification and validation
  • Biological and technical replicate detection
  • Platform consistency checks across samples

Disease Enrichment

Four-phase hierarchy for missing disease annotations:

  1. Column re-scan for disease-related field names
  2. LLM-based abstract extraction from publication context
  3. LLM-based methods section parsing
  4. Manual mapping fallback for known datasets

Multi-Omics Integration

  • Cross-modality sample alignment
  • Shared sample identification across data types
  • Metadata merging with conflict resolution

Requirements

  • Python 3.12+
  • lobster-ai >= 1.0.0

Testing

To run the test suite for this package:

# Install in editable mode with dev dependencies
pip install -e ".[dev]"

# Run all tests
pytest tests/ -v

# Run specific test categories
pytest tests/services/metadata/ -v  # Service tests only
pytest tests/agents/ -v             # Agent tests only

Documentation

Full documentation: docs.omics-os.com/docs/agents/metadata

License

AGPL-3.0-or-later

Metadata

Release files for lobster-metadata 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lobster-metadata 1.2.1
File Size Uploaded Provenance Actions
lobster_metadata-1.2.1.tar.gz 105.9 kB With provenance Details for lobster_metadata-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lobster-metadata 1.2.1
File Interpreter ABI Platform Actions
lobster_metadata-1.2.1-py3-none-any.whl Python 3 none any Details for lobster_metadata-1.2.1-py3-none-any.whl

Total release size: 223.0 kB

Release files / lobster_metadata-1.2.1.tar.gz

Download URL lobster_metadata-1.2.1.tar.gz
Size 105.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7c373b0a52b5979e290927a9ecb7e94c46e0d98c22114275c453c253ddd0e54e
BLAKE2b-256 checksum
How to use checksums
f5db0d5fda93bc9e2e20eaf62acab9efcbda614e29fd7c8d69c9ada41950b03b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / lobster_metadata-1.2.1-py3-none-any.whl

Download URL lobster_metadata-1.2.1-py3-none-any.whl
Size 117.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b9f2940186b9e86443ebd3cedcc775b6fbaa261fa2d61bca16aade55be59b2d
BLAKE2b-256 checksum
How to use checksums
13587e96a9acbef87249347ee973c111fe12f7e53b5f9885a1b51fb4ef384312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for lobster-metadata 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lobster_metadata-1.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page