Automates IGV (Integrative Genomics Viewer) batch snapshot generation for multiple BAM files and genomic regions. Developed at CSIR-IGIB for rare disease WES variant visualization.
- Reads BAM filenames and genomic regions from a text file
- Generates individual IGV batch scripts (.igv) for each sample
- Runs IGV in batch mode to capture PNG snapshots automatically
Create bam_region.txt (tab or space separated):
SAMPLE001.bam chr1:99861524-99861524
SAMPLE002.bam chr2:218812300-218812300
SAMPLE003.bam chr3:38613773-38613773
SAMPLE004.bam chr3:165830741-165830741
python generate_igv_script.py \
-b /path/to/BAMs \
-s /path/to/snapshots \
-g /path/to/hg38.fa \
-r bam_region.txt./run_igv.sh| Argument | Description |
|---|---|
-b |
Path to BAM files directory |
-s |
Directory to save PNG snapshots |
-g |
Path to genome reference (hg38) |
-r |
Path to BAM regions file |
-d |
Delay in seconds between samples (default: 2) |
.igvbatch scripts per sample.pngsnapshots saved to snapshot directory
- Linux operating system
- Python 3.8+
- IGV installed and
igv.shin PATH
- IGV (Integrative Genomics Viewer)
- Python 3
- Bash
Treesa Issen | CSIR-IGIB, New Delhi