cg
Clinical Genomics command center
What it is and what it does
cg is a clinical sequencing platform developed at SciLifeLab that acts as a command center for genomic analysis workflows. It provides both HTTP REST APIs (powering the clinical.scilifelab.se web portal) and a command-line interface to automate interactions between sequencing tools and manage cross-tool communication. The package bundles a substantial dependency stack including Flask for the web layer, SQLAlchemy for data persistence, cryptography for secure operations, and specialized bioinformatics libraries like genologics for instrument integration.
The platform is designed to bridge multiple genomic analysis tools and expose their capabilities through unified interfaces. It runs on Python 3.11 or later and is actively maintained, with recent releases. The large runtime dependency footprint reflects its role as a full-stack system rather than a lightweight library, combining web serving, database management, authentication, and domain-specific genomics integration.
Use it for:
- Orchestrate multi-step clinical sequencing workflows across different bioinformatics tools and instruments.
- Expose genomic analysis capabilities via REST API for a web-based clinical reporting portal.
- Automate routine genomic data processing and sample tracking from the command line.
- Integrate with laboratory information systems and sequencing instruments via standardized APIs.
- Manage authentication and authorization for clinical genomics platforms using OAuth and cryptographic controls.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
cg is a clinical sequencing platform that provides REST APIs and CLI tools to orchestrate interactions between genomic analysis tools, exposing both HTTP endpoints for web portals and command-line interfaces for automation.
Yes, if you are operating a clinical genomics platform or integrating with SciLifeLab's infrastructure. The package is actively maintained, has no known vulnerabilities, and low install friction. However, verify the license terms before use, and note that it is tightly scoped to clinical sequencing workflows—not a general-purpose library. The Python version requirement and large dependency footprint make it suitable for dedicated backend deployment rather than lightweight embedding.
Install
cg on PyPI
pip
pip install cguv
uv add cgpoetry
poetry add cgInstalling cg
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release within the last day. Requires Python 3.11 or later; the capped upper bound suggests compatibility testing against specific versions rather than forward compatibility.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before using in proprietary or restricted contexts.
Quickstart
pip install cg
from cg import SomeModule # Exact import depends on cg's public API
# Use CLI: cg --help
Requires Python 3.11 or later (not compatible with Python 3.13 or later). Intended for clinical genomics workflows; runtime dependencies include database (SQLAlchemy, PyMySQL), web framework (Flask stack), and bioinformatics tools (genologics).
Verify before relying
- Exact public API surface and recommended import patterns are not documented in the excerpt.
- Whether the package is intended for end-user installation or primarily as a backend service component.
- Specific genomic file formats and sequencing platforms supported by the orchestration layer.
Package facts
| License | not declared (unclear) |
| Python support | capped below the current Python release (<3.13,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 40 — CacheControl, Flask, Flask-Admin, Flask-CORS, Flask-Dance, Flask-WTF, Jinja2, MarkupSafe, PyMySQL, PyYAML, SQLAlchemy, WTForms, alembic, blinker, cachetools, click, coloredlogs, cryptography, email-validator, genologics, google-auth, gunicorn, housekeeper, lxml, marshmallow, nats-py, openpyxl, packaging, paramiko, petname |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 90,961/month — #13,553 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cg-88.2.1-py3-none-any.whl
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
refgenieRefgenie manages standardized folder structures…
permissive · top 15,000 on PyPI
multiqcMultiQC scans bioinformatics analysis…
copyleft · top 15,000 on PyPI
pyrangesPyRanges provides efficient querying and…
permissive · top 15,000 on PyPI
cellxgene-censusProvides a Python API to query and retrieve…
permissive · top 15,000 on PyPI
refgenconfManages standardized configuration for…
permissive · top 15,000 on PyPI
pybedtoolsWraps the BEDTools suite to perform genomic…
permissive · top 15,000 on PyPI
deepbiopDeepBioP is a deep learning preprocessing…
permissive · top 15,000 on PyPI
pysampysam reads, manipulates, and writes genomic…
permissive · top 5,000 on PyPI
gtfparseParses GTF (gene transfer format) files into…
permissive · top 15,000 on PyPI
mudataMuData is a container for multimodal omics data…
permissive · top 15,000 on PyPI