Mercurial > repos > mvdbeek > igv_take_screenshots
comparison xvfb_igv.py @ 0:d828cf6bff42 draft
planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4824aeaa8107bd30ec786e8ca81779f053f0e736-dirty
author | mvdbeek |
---|---|
date | Mon, 26 Jun 2017 10:00:06 -0400 |
parents | |
children | 64eb1ffd7872 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d828cf6bff42 |
---|---|
1 import os | |
2 import subprocess | |
3 import sys | |
4 | |
5 import xvfbwrapper | |
6 | |
7 | |
8 def take_screenshots(igv_script, screensize): | |
9 width, height = screensize.split(',') | |
10 with xvfbwrapper.Xvfb(width=width, height=height) as xvfb: | |
11 exit_code = subprocess.call(['igv', '--batch', igv_script], env=os.environ.copy()) | |
12 sys.exit(exit_code) | |
13 | |
14 | |
15 if __name__ == '__main__': | |
16 take_screenshots(sys.argv[1], sys.argv[2]) | |
17 |