Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Getting Started with skyline

version: 0.12.0b0

The skyline package is a genomic plotting toolkit. It was initially put together to plot Manhattan plots but can be generalised to plot general genomic "track" based data. Currently you can:

  1. Plot Manhattan style plots
  2. Plot Miami style plots
  3. Plot skyview plots (multiple Manhattans stacked and viewed from the top)
  4. Locus view type plots
  5. Link tracks together with different sorts of linkers
  6. Add label tracks

Architecture

Tracks draw into Matplotlib Axes (they are not Axes subclasses), with hierarchical Theme styles and full access to Figure / Axes / Artists. Import from the package root (from skyline import manhattan, Theme, …).

Recipes vs tracks

Skyline offers two complementary surfaces:

Layer What it is When to use it
Recipes Functions (manhattan, miami, locus_scatter, …) that return a PlotResult Common figures, pipelines, and automation — few lines to a finished plot
Tracks Building-block classes (GenomicScatter, GeneTrack, linkers, rulers, grids, …) with draw(ax) Custom multi-track figures and layouts recipes do not cover
Shared Hierarchical Theme / role-leaf styles Styling both recipes and hand-built tracks

Recipes cover everyday plots; tracks are for composition and control. Matplotlib remains available underneath both (e.g. result.scatter.ax).

from skyline import HumanGRCh38, manhattan

res = manhattan(gwas_df, HumanGRCh38())
res.savefig("manhattan.png")
res.scatter.ax.axhline(y=7.3, ls="--")  # Matplotlib fine-tuning

Installation

Conda

conda install -c cfin -c bioconda -c conda-forge skyline-plots

Optional Ensembl REST helpers:

pip install "skyline-plots[ensembl]"
# or install ensembl-rest-client into the same environment

Pip (from PyPI)

pip install skyline-plots
pip install "skyline-plots[ensembl]"   # optional REST features

The import package is still skyline (from skyline import …).

From a clone (development)

git clone git@gitlab.com:cfinan/skyline.git
cd skyline
python -m pip install -e ".[dev]"

For Ensembl-backed locus features during development:

python -m pip install -e ".[dev,ensembl]"

Example / demo data

Large example GWAS tables are not shipped in the installed package (they remain in the git tree under skyline/example_data/ for local notebooks and scripts). A small assembly coordinate file required by HumanGRCh37 / HumanGRCh38 / HumanNCBI36 is installed.

A download helper or documented data archive for demos is planned; until then use a git checkout for full examples.

Documentation

Online: https://cfinan.gitlab.io/skyline/

The docs home page mirrors this README. A progressive tutorial lives under resources/examples/ and the Sphinx “Tutorial” section, organised by plot family:

  1. Foundations (styles, offline GTF/GFF)
  2. Genome-wide plots (Manhattan → labels → highlights → Miami → grid → GenomicScatter)
  3. Locus plots (locus view → genes → LD → skyview/linkers → dual-locus panel)
  4. Composition (hand-built multi-track figures)

Local docs / CI dry-run (docker + pytest + Sphinx, HTML rsynced to pCloud):

cd resources/ci_cd
./build.sh

Tests

pytest tests/

Licence

GPLv3+ — see LICENCE.txt.

Release files for skyline-plots 0.12.0b0

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

Source distribution (sdist)

Source distribution for skyline-plots 0.12.0b0
File Size Uploaded
skyline_plots-0.12.0b0.tar.gz 218.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skyline-plots 0.12.0b0
File Interpreter ABI Platform
skyline_plots-0.12.0b0-py3-none-any.whl Python 3 none any Details

Total release size: 467.8 kB

Release files / skyline_plots-0.12.0b0.tar.gz

Download URL skyline_plots-0.12.0b0.tar.gz
Size 218.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f5a32693ebcd89587693ea8108f881aca5ff344e5e62743ce7a84be79801b595
BLAKE2b-256 checksum
How to use checksums
757919b2d47d50e9da11e4c21f9961298f01b2cfd565fea4fed478a6e7600573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / skyline_plots-0.12.0b0-py3-none-any.whl

Download URL skyline_plots-0.12.0b0-py3-none-any.whl
Size 249.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c049c944d1ab8c3553e933d6a59f47c6ac0269fc8e66ab56340af1d4eac4c812
BLAKE2b-256 checksum
How to use checksums
1f612773fd8998503ce6cb352e5ec74d50e79aed08aa97e5b3176ac38a21515c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0
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