All Projects → stevekm → Igv Snapshot Automator

stevekm / Igv Snapshot Automator

Licence: gpl-3.0
Script to automatically create and run IGV snapshot batchscripts

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Igv Snapshot Automator

Radiator
RADseq Data Exploration, Manipulation and Visualization using R
Stars: ✭ 40 (-51.81%)
Mutual labels:  genomics
Mixomics
Development repository for the Bioconductor package 'mixOmics '
Stars: ✭ 58 (-30.12%)
Mutual labels:  genomics
Fastq.bio
An interactive web tool for quality control of DNA sequencing data
Stars: ✭ 76 (-8.43%)
Mutual labels:  genomics
Jigv
igv.js server and automatic configuration to view bam/cram/vcf/bed. "working in under 1 minute"
Stars: ✭ 43 (-48.19%)
Mutual labels:  genomics
Aioli
Framework for building fast genomics web tools with WebAssembly and WebWorkers
Stars: ✭ 51 (-38.55%)
Mutual labels:  genomics
Deep Review
A collaboratively written review paper on deep learning, genomics, and precision medicine
Stars: ✭ 1,141 (+1274.7%)
Mutual labels:  genomics
Bwa
Burrow-Wheeler Aligner for short-read alignment (see minimap2 for long-read alignment)
Stars: ✭ 970 (+1068.67%)
Mutual labels:  genomics
Scoary
Pan-genome wide association studies
Stars: ✭ 80 (-3.61%)
Mutual labels:  genomics
Genozip
Compressor for genomic files (FASTQ, SAM/BAM, VCF, FASTA, GVF, 23andMe...), up to 5x better than gzip and faster too
Stars: ✭ 53 (-36.14%)
Mutual labels:  genomics
Bgt
Flexible genotype query among 30,000+ samples whole-genome
Stars: ✭ 72 (-13.25%)
Mutual labels:  genomics
Sns
Analysis pipelines for sequencing data
Stars: ✭ 43 (-48.19%)
Mutual labels:  genomics
Dram
Distilled and Refined Annotation of Metabolism: A tool for the annotation and curation of function for microbial and viral genomes
Stars: ✭ 47 (-43.37%)
Mutual labels:  genomics
Bluegenes
A friendly next-generation interface for Genomic data discovery powered by InterMine
Stars: ✭ 66 (-20.48%)
Mutual labels:  genomics
Gatk
Official code repository for GATK versions 4 and up
Stars: ✭ 1,002 (+1107.23%)
Mutual labels:  genomics
Sibeliaz
A fast whole-genome aligner based on de Bruijn graphs
Stars: ✭ 76 (-8.43%)
Mutual labels:  genomics
Awesome Biological Visualizations
A list of web-based interactive biological data visualizations.
Stars: ✭ 40 (-51.81%)
Mutual labels:  genomics
Dna Nn
Model and predict short DNA sequence features with neural networks
Stars: ✭ 59 (-28.92%)
Mutual labels:  genomics
Awesome 10x Genomics
List of tools and resources related to the 10x Genomics GEMCode/Chromium system
Stars: ✭ 82 (-1.2%)
Mutual labels:  genomics
Svtyper
Bayesian genotyper for structural variants
Stars: ✭ 79 (-4.82%)
Mutual labels:  genomics
Gubbins
Rapid phylogenetic analysis of large samples of recombinant bacterial whole genome sequences using Gubbins
Stars: ✭ 67 (-19.28%)
Mutual labels:  genomics

IGV Snapshot Automator

A script to automatically create and run IGV snapshot batchscripts. This script will first write an IGV batch script for the supplied input files, then load all supplied files for visualization (.bam, etc) in a headless IGV session and take snapshots at the locations defined in the regions.bed file.

Designed for use on Linux systems, and intended to be used as a component of sequencing analysis pipelines.

Usage

Download IGV

Use the included Makefile recipe to download a copy of IGV

make install

Run Snapshotter

  • Put your chromosome regions to visualize in the regions.bed file (provided), or another BED format file

  • Locate your files to visualize (e.g. .bam & .bam.bai files)

  • Create and run batchscript. Example command:

$ python make_IGV_snapshots.py /path/to/alignments1.bam /path/to/alignments2.bam

Demo

To run the script on the included demo files:

$ python make_IGV_snapshots.py test_data/test_alignments.bam test_data/test_alignments2.bam

Options

See python make_IGV_snapshots.py --help for available options. Here are a few:

  • -r: Path to the BED formatted regions file to use (defaults to the included demo regions.bed)
  • -nosnap: Make batchscript without taking snapshots
  • -g: Genome to use, e.g. hg19
  • -ht: Height of the snapshot, default is 500
  • -o: Name of the output directory to save the snapshots in (defaults to IGV_Snapshots)
  • -bin: Path to the IGV jar binary to run (defaults to igv.jar)
  • -mem: Memory to allocate to IGV (MB)
  • -suffix: Filename suffix to place before '.png' in the snapshots
  • -onlysnap: Skip batchscript creation and only run IGV using the supplied batchscript file
  • -nf4: "Name field 4" mode, uses values saved in 4th field of the regions.bed file as the output filename of the PNG snapshot. Use this when you have pre-made filenames you wish to use for each snapshot.
  • -s or -group_by_strand: Group alignment(s) by read strand with forward on top and reverse on the bottom.

Example Output

chr1_713500_714900_h500

Notes

Default memory allotment is set at 4GB; this can be changed with the -mem argument (e.g. -mem 1000 sets memory to 1GB).

IGV may take several minutes to run, depending on the number of input files and regions to snapshot. Stdout messages from the program may not appear immediately in the console.

Containers

Docker and Singularity container files are included. Pre built container images can be found on Dockerhub at https://hub.docker.com/repository/docker/stevekm/igv-snapshot-automator

Docker

The Docker container can be built with the included Makefile recipe

make docker-build

The test data can be run with

make docker-test

Singularity

The Singularity container can be built using Docker with the included Makefile recipe

make singularity-build

The test data can be run with

make singularity-test

Software Requirements

  • Python 2.7 or 3+
  • bash version 4.1.2+
  • IGV (download script provided in bin directory)
  • Xvfb
  • xdpyinfo
  • Java runtime environment
  • Docker or Singularity for building and running containers

Notes

Some alternative implementations of the same basic methodology used here for creating IGV snapshots can also be found implemented in Nextflow pipelines;

Running a batch script on IGV:

Details on interpretation of IGV visualizations can be found here:

IGV available preferences which could be included in IGV batch scripts:

igv-reports which makes HTML report outputs with embedded Javascript IGV viewer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].