Skip to content

Instantly share code, notes, and snippets.

@stevekm
Last active August 21, 2025 16:51
Show Gist options
  • Save stevekm/ac76c0c2fa4ee89db8ce2421cc6fbffc to your computer and use it in GitHub Desktop.
Save stevekm/ac76c0c2fa4ee89db8ce2421cc6fbffc to your computer and use it in GitHub Desktop.
Sample Batch Script for IGV Snapshots

Save this as a test file

new
snapshotDirectory /path/to/snapshot_dir
load /path/to/sample1.bam
load /path/to/sample2.bam
genome hg19
maxPanelHeight 400
goto chr11:108138003-108138003
snapshot custom_chr11-108138003-108138003.png
goto chr9:21971111-21971111
snapshot custom_chr9-21971111-21971111.png
exit
@jimguo
Copy link

jimguo commented Apr 22, 2019

Hi, how did you load multiple bed files? Thanks.

@ShwetaCh
Copy link

ShwetaCh commented Nov 3, 2020

Is there a way to size to snapshot in a landscape mode? It gives me a portrait mode image. Thanks.

@stevekm
Copy link
Author

stevekm commented May 31, 2025

@jimguo see the repo here https://github.com/stevekm/IGV-snapshot-automator but you likely want this instead https://github.com/igvteam/igv-reports

@ShwetaCh the dimensions are related to the size of the xvfb buffer that gets used, I think there are some args you can try to use to control it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment