Skip to main content

python interface to IGV that simplifies creating screenshots of BAMs, VCFs, BEDs, etc for one-off spot checking or automated / scripted image collection

Project description

Overview

Python interface to IGV - inspired by an IGV_plotter tool originally written by @tmfromer.

It includes the following executables:

  • igv Launches IGV from the command line and optionally makes it load some file(s) and jump to some locus.

  • igv_plotter Automates taking IGV screenshots of one or more data files at one or more loci.

  • igvweb_viewer Allows bam, vcf, and/or bed file tracks to be viewed in a web browser using igv.js.

Install

  • To install for all users, run: pip install igv_plotter

  • To install in your home directory (eg. if you don’t have permissions to install for all users), add ~/.local/bin to your PATH and run: pip install igv_plotter --user

Run

To see all command line options, you can do:

igvweb_viewer -h

igv_plotter -h

igv -h

igvweb_viewer script - usage example:

This starts a webserver for viewing 3 files at 2 loci:

igvweb_viewer my_file1.vcf my_file2.bam my_file3.bed 1:12345 chrX:12345

After starting this script, open your web browser to 127.0.0.1:8000 for an interactive browser-based IGV view of these files.

igv_plotter script - usage example:

This loads 3 files, and takes 2 snapshots:

igv_plotter my_file1.vcf my_file2.bam my_file3.bed 1:12345 chrX:12345

igv script - usage example:

This launches IGV with 2 files loaded at locus 1:12345:

igv my_file1.vcf my_file3.bed 1:12345

Configure

An ~/.igv_plotter config file can be created and used to persitantly set any igv_plotter or igv command line options, by using lines like: <command line option (without --)> = <value>

Contribute

https://travis-ci.org/macarthur-lab/igv_utils.svg?branch=master

Issue reporting and pull requests are appreciated.

Unit tests can be run with:

python setup.py test

This code is open sourced under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igv_plotter-0.9.8.7.tar.gz (28.7 MB view details)

Uploaded Source

File details

Details for the file igv_plotter-0.9.8.7.tar.gz.

File metadata

  • Download URL: igv_plotter-0.9.8.7.tar.gz
  • Upload date:
  • Size: 28.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for igv_plotter-0.9.8.7.tar.gz
Algorithm Hash digest
SHA256 7daabaa025690f9d1e5ea78757e71c5321a72d48b6d213bb37c39a3f351aa457
MD5 53207ebfe1be2f8f631938ed47071179
BLAKE2b-256 f380a24d9535e26b940d16d2b3aebdc766e4b299df7e28303816bae2b3b2c29e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page