IGV Batch script Track height

912 views
Skip to first unread message

jason...@gmail.com

unread,
Mar 1, 2013, 11:39:33 AM3/1/13
to igv-...@googlegroups.com
Hi.
I wrote a batch script to load three bam files at a time (I'm doing trio analysis) and take snapshots of given locations.

The problem I'm having is that the track heights for of the three panels seem to be random. Sometimes one track will take up the whole screen and the other two are squished at the bottom, and sometimes all three are evenly distributed.
Usually, the first load looks good, but each subsequent load has randomly sized track heights. 
I've extensively changed the Tracks Preferences for default height before running the script (I've tried multiple different values, etc), and I've also used the MaxPanelHeight (again with multiple values) command in my script-- they both seem to do nothing.

How can I solve this so that they are all evenly sized so that I can see a maximum amount of data for all three?

I'm running IGV 2.2 and the latest version of java 7 either on my Mac or on a linux server with X11 forwarding-- same issues with both.

I tried using an earlier version of IGV for testing, 1.5, and placing a "goto All" line after "new" seemed to help a little bit, but it wasn't consistent. (also, "goto All" in IGV 2.2 does not go to the whole chromosome view anymore-- it goes to chr2). 

Can anybody help?
Thanks,
Jason

Here's an example of my script:

new
snapshotDirectory /path/to/dir
maxPanelHeight <some integer--it doesn't seem to matter what number>
load /path/to/bam1,/path/to/bam2,/path/to/bam3
goto chr19:3113483
collapse
snapshot
new
snapshotDirectory /path/to/dir
load /path/to/bam4,/path/to/bam5,/path/to/bam6
goto chr15:32928983
collapse
snapshot
new
etc........

freeseek

unread,
Aug 5, 2013, 12:47:19 PM8/5/13
to igv-...@googlegroups.com
I would also like to comment on some weird outcomes I have observed.

While increasing the height (e.g. setting "maxPanelHeight 4096" does make a difference) allows to show more of some very large tracks, I still get that some tracks are often displayed much larger than they need to be (i.e. lots of wasted white space), and sometimes some tracks are displayed collapsed, even if they were expanded with the appropriate command.

What exactly is going on when a snapshot is taken and how can these parameters be fully controlled?

Jim Robinson

unread,
Aug 7, 2013, 11:44:53 AM8/7/13
to igv-...@googlegroups.com
Hi,

There can be many reasons for "lots of whitespace",  for example if a gene track is shown expanded and there is a gene somewhere with lots of isoforms the height of the track will be sized to show all those isoforms,  resulting in a lot of whitespace everywhere else.    We do not currently have a command to explicitly control individual track heights,  I have just added that to the list of future features.

With respect to tracks displaying collapsed could you supply a screenshot, and also the command used to expand them?   An example file would be helpful as well.   You can post these or email them to igv-team (at) broadinstitute.org.

JIm

freeseek

unread,
Oct 14, 2013, 4:04:38 PM10/14/13
to igv-...@googlegroups.com
On Wednesday, August 7, 2013 11:44:53 AM UTC-4, Jim Robinson wrote:
With respect to tracks displaying collapsed could you supply a screenshot, and also the command used to expand them?   An example file would be helpful as well.   You can post these or email them to igv-team (at) broadinstitute.org.

I have tried IGV 2.3.20, but the problem of the tracks being squished is still not solved. Do you have time to look at it?

Helga Thorvaldsdottir

unread,
Oct 30, 2013, 3:15:04 PM10/30/13
to igv-...@googlegroups.com
Hi, As Jim mentioned earlier, to look at this we need some more information. Can you supply a screenshot, and also the command used to expand them?   An example file would be helpful as well.   You can post these or email them to igv-team (at) broadinstitute.org.

Helga

sent...@gmail.com

unread,
Jun 14, 2018, 12:31:30 PM6/14/18
to igv-help
I ran a script similar to Jason but dont find it in snapshotDirectory. Where else should I find them ? Is there a default directory .Can you please reply ?

James Robinson

unread,
Jun 14, 2018, 2:56:57 PM6/14/18
to igv-help
Does your computer have a "find" function?  There are too many platforms and OS systems to say where the default is.

On Thu, Jun 14, 2018 at 12:31 PM, <sent...@gmail.com> wrote:
I ran a script similar to Jason but dont find it in snapshotDirectory. Where else should I find them ? Is there a default directory .Can you please reply ?

--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/99562921-818d-4fc1-a654-8318044b4893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dream Sentisci

unread,
Jun 14, 2018, 3:01:49 PM6/14/18
to igv-...@googlegroups.com
Thank you .. Actually it wasn't saving files at all because I put colon in the image name ..
My mistake ... Thanks for prompt response 

Sent from my iPhone
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/CACOP%2BpvFKvp7hSg6UbQqZWiOe9hz6E4DdBFWSpqbGaKQatcEdQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages