Skip to main content

omix

A Python package that:

  • Fetches comprehensive metadata from public databases (ENA, and soon others).
  • Enriches coordinates, dates, host/environment categories, and experimental protocols.
  • Searches across multiple publication sources (Crossref, Europe PMC, NCBI, Semantic Scholar, etc.).
  • Extracts methodology from full‑text using LLMs (optional).
  • Validates findings against reference databases (e.g., primer databases for 16S).
  • Works for any omics via plugins.

Installation

pip install omix
# with LLM support:
pip install omix[llm]

Quick Start

Command Line

# Enrich a metadata file with ENA data
omix fetch-metadata samples.tsv --email you@example.com

# Fetch publications for one or more accessions
omix fetch-publications PRJNA864623 --omics 16S --api-key $LLM_KEY

# Run the full metadata cleaning and enrichment pipeline
omix run-pipeline metadata.csv -o enriched.csv

# NEW: Unified pipeline (metadata + publications + validation + integration)
omix enrich-with-publications samples.csv -o enriched_complete.csv --config config.yaml

Unified Metadata + Publications Pipeline

The enrich-with-publications command provides an end-to-end workflow:

  1. Metadata Enrichment: Fetches comprehensive data from ENA (sequences, samples, runs)
  2. Publication Discovery: Searches across 12+ publication APIs (Crossref, EuropePMC, NCBI, Semantic Scholar, arXiv, bioRxiv, CORE, DataCite, DOAJ, PLOS, Unpaywall, Zenodo)
  3. Publication Validation: Filters to only include publications with direct accession mentions
  4. Integration: Merges publication counts and DOIs into the enriched metadata

Output includes all ENA metadata fields plus:

  • publication_count: Number of validated publications per study
  • publication_dois: Semicolon-separated list of publication DOIs
# Basic usage
omix enrich-with-publications input.csv -o output.csv

# With debug config for faster testing
omix enrich-with-publications input.csv -o output.csv --config config.debug.yaml

# Skip validation (keep all publications found)
omix enrich-with-publications input.csv -o output.csv --no-validate

# With LLM-based methodology extraction
omix enrich-with-publications input.csv -o output.csv --api-key $LLM_KEY

Python API

from omix import Config
from omix.metadata.file_workflow import enrich_metadata_from_path
import asyncio

config = Config(email="you@example.com")
df = asyncio.run(enrich_metadata_from_path("samples.csv", config=config))
print(df.head())

Configuration

omix can be configured via a YAML file:

credentials:
  email: "your.email@example.com"
  ena_email: "ena@example.com"
  llm_api_key: "sk-..."
  ncbi_api_key: "..."

apis:
  sequence:
    ena:
      enabled: true
      max_concurrent: 5
      batch_size: 100
      cache_ttl_days: 30
      fetch_phases: true

metadata:
  sample_id_column: "#sampleid"
  exclude_host: false

paths:
  cache_dir: ".cache"
  logs_dir: "logs"
  primer_db: null

Pass it with --config my_config.yaml or set environment variables like OMIX_EMAIL.

Metadata

Release files for omix 0.1.0

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

Source distribution (sdist)

Source distribution for omix 0.1.0
File Size Uploaded Provenance Actions
omix-0.1.0.tar.gz 89.4 kB With provenance Details for omix-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omix 0.1.0
File Interpreter ABI Platform Actions
omix-0.1.0-py3-none-any.whl Python 3 none any Details for omix-0.1.0-py3-none-any.whl

Total release size: 204.5 kB

Release files / omix-0.1.0.tar.gz

Download URL omix-0.1.0.tar.gz
Size 89.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3e330f2e8834e8286247c494782c50490903fbce010b60364b69867b49a42f55
BLAKE2b-256 checksum
How to use checksums
056aaf5af1181bda87561c094c47560eafb8d95a5179d6b51ff14c0917765fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 14, 2026.

Transparency log

Release files / omix-0.1.0-py3-none-any.whl

Download URL omix-0.1.0-py3-none-any.whl
Size 115.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c741c2aabe7f3d29ab953239982507ddbc183308ab1ca98bc9163cf2e89d6c
BLAKE2b-256 checksum
How to use checksums
c98c7f0156528a58910ea5e8c3c51dea50d5d70d6f64697816a82eec14622726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 14, 2026.

Transparency log

Security for omix 0.1.0

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 omix-0.1.0.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 May 14, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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