command line Interactive Genome Viewer
Project description
clIGV - command line Interactive Genome Viewer
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 leftd- Move rightw- Zoom ins- Zoom outg- Go to a specific regiont- Toggle between dark and light modeq- Quit
Requirements
- Python 3.8+
- pysam
- rich
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cligv-0.1.0.tar.gz.
File metadata
- Download URL: cligv-0.1.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91068431060676ab81366b0a0ed011fdbdaab3a4e3a28aba3ba58958302f48b4
|
|
| MD5 |
258560154f6b921cb26565d45d34f27b
|
|
| BLAKE2b-256 |
7c3caa1182bcb03de9598895f0d5b62a7b357859523c7c1a344d9550710eb555
|
File details
Details for the file cligv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cligv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af5ee30e0d7512de6c6130ff72b03dcabfdd0d3a1f5064fe3d3c91e5be63edfc
|
|
| MD5 |
36e029b0810f966a6b4feb04ce4fa515
|
|
| BLAKE2b-256 |
5915363287fe651519feb9f5b9136dbcdc555397fba9b87090a707a8a91dfc51
|