Skip to main content

clIGV - command line Interactive Genome Viewer

PyPI version Conda Version License

A fast, interactive genome browser for the command line. clIGV (command line Interactive Genome Viewer) allows you to view genomic sequences, alignments, and variants directly in your terminal with a simple interface.

Features

  • View reference genome sequences from FASTA files
  • Display variant calls from VCF files
  • Visualize read alignments from BAM files with coverage tracks
  • Intuitive keyboard navigation and zooming
  • Color-coded display with both dark and light theme options
  • Tag-based read coloring for highlighting specific attributes
  • Scales well for both small regions and larger genomic intervals

Installation

Using pip

pip install cligv

Using conda

conda install -c conda-forge cligv

From source

git clone https://github.com/jonasfreudig/cligv.git
cd cligv
pip install -e .

Quick Start

# Basic usage with just a reference genome
cligv reference.fasta

# View with variants
cligv reference.fasta -v variants.vcf.gz

# View with read alignments
cligv reference.fasta -b alignments.bam

# Load directly to a specific region
cligv reference.fasta -r chr1:1000-2000

# Full example with all options
cligv reference.fasta -v variants.vcf.gz -b alignments.bam -r chr1:1000-2000 -t ha --light-mode

Navigation

  • a - Move left
  • d - Move right
  • w - Zoom in
  • s - Zoom out
  • g - Go to a specific region
  • t - Toggle between dark and light mode
  • q - Quit

Requirements

  • Python 3.8+
  • pysam
  • rich

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Inspired by tools like IGV, samtools tview, ASCIIGenome, and other genomic viewers
  • Thanks to all contributors and users for their feedback and suggestions

Metadata

Release files for cligv 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 cligv 0.1.0
File Size Uploaded Provenance
cligv-0.1.0.tar.gz 33.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 68.4 kB

Release files / cligv-0.1.0.tar.gz

Download URL cligv-0.1.0.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91068431060676ab81366b0a0ed011fdbdaab3a4e3a28aba3ba58958302f48b4
BLAKE2b-256 checksum
How to use checksums
7c3caa1182bcb03de9598895f0d5b62a7b357859523c7c1a344d9550710eb555
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

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

Download URL cligv-0.1.0-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af5ee30e0d7512de6c6130ff72b03dcabfdd0d3a1f5064fe3d3c91e5be63edfc
BLAKE2b-256 checksum
How to use checksums
5915363287fe651519feb9f5b9136dbcdc555397fba9b87090a707a8a91dfc51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for cligv 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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 No 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