Add Server Tracks With Batch Script and snapshot size

95 views
Skip to first unread message

vito.ca...@gmail.com

unread,
Jan 7, 2016, 3:10:53 PM1/7/16
to igv-help
I am trying to setup a batch script to load five additional tracks the same way a user would use  - "File -> Load From Server", but am having difficulties implementing this into a script. 
The tracks I am trying to load are : 
  • SINE
  • LINE
  • LTR
  • Simple
  • Low Complexity 
from Annotations -> Variation and Repeats -> Repeat Masker... 

Also, I've noticed towards the bottom of the snapshots being taken the gene has been cut off.  Is there a way to extend the size of the snapshot to encompass the gene names or reorganize the tracks to have the gene track situated at the top?  This is occurring with 5 tracks where the alignments have all been compressed.  

I tried to use the 

Thanks!
Vito C. 

Jim Robinson

unread,
Jan 7, 2016, 4:20:38 PM1/7/16
to igv-...@googlegroups.com
To load those tracks you will need their URLs.  The easiest way to get that is to load them through the UI,  save a session file, then open it in a text editor to grab the URLs.

re gene track,  you can ext the height of each panel in the snapshot panel with the command "maxPanelHeight",  see http://www.broadinstitute.org/igv/PortCommands.

Jim
--

---
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/4150e54a-a5e0-49af-9677-8d9691e242e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vito.ca...@gmail.com

unread,
Jan 8, 2016, 11:54:19 AM1/8/16
to igv-help
I have been able to successfully import the tracks I had previously mentioned with your method (Thanks!).  I have been trying to use "maxPanelHeight" and still can't seem to capture the gene name/track completely within the snapshot.   Below is how I have implemented this command within the batch script and it does show more data overall, but still misses some of the gene track.  

goto chr8:10467400-10467810
sort position
collapse
maxPanelHeight 1000000
snapshot 2.png

The increase to me seems extreme, but still doesn't change anything other than I can see more reads within the alignments.  

Jim Robinson

unread,
Jan 8, 2016, 12:07:54 PM1/8/16
to igv-...@googlegroups.com
Could you attach an image?  

There is a setting to put all tracks in one panel, which I think is what you probably want here.   The preference is

IGV.single.track.pane=true

So from a batch command try

preference IGV.single.track.pane true

vito.ca...@gmail.com

unread,
Jan 8, 2016, 2:24:33 PM1/8/16
to igv-help
I have added the preference line within the script and not the gene track appears at the top which is good/fine.  

It seems when I add this line and the maxPanelHeight there seems to be some oddities going on with the track names on the left along with it being difficult to encompass all the tracks still.  I will post my batch command excerpt below and attach an image of one of the snapshots to help visualize what's going on.  

...
preference IGV.single.track.pane true
...


goto chr8:10467400-10467810
sort position
collapse
maxPanelHeight 1000000
snapshot 2.png
...
2.png

Jim Robinson

unread,
Jan 8, 2016, 2:37:37 PM1/8/16
to igv-...@googlegroups.com
Hi,

I see the screenshot,  but what are the oddities you refer too?  The image should not be cut off at the bottom with the height you specify,  I will see if I can replicate that.   Regardless, an image of this size is going to be hard to do anything with.

Jim

vito.ca...@gmail.com

unread,
Jan 8, 2016, 2:47:47 PM1/8/16
to igv-help
Jim,

The track names don't look like they line up appropriately to the respective tracks.  For instance, the 20253 tracks are annotated right in the middle of the 14147 alignments.  I'm just trying to get all the tracks in one image if possible to show a comparison of how they align to the genome.  


As for the cut off at the bottom I thought that was strange with the height used too. 

Thanks,
Vito C. 

Jim Robinson

unread,
Jan 8, 2016, 3:02:59 PM1/8/16
to igv-...@googlegroups.com
OK,  I see the problem, this will take some investigation.  

Do you really want to see every single alignment?  You can use down-sampling to get a good representation of the alignments in less vertical space.  
--

---
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+u...@googlegroups.com.

vito.ca...@gmail.com

unread,
Jan 8, 2016, 3:22:38 PM1/8/16
to igv-help
No worries.  As for the alignments, not every single one, but as many as possible for each track.  I will adjust down sampling more aggressively to try and compress the image some more.  

Thanks!
Vito C. 

Jim Robinson

unread,
Jan 8, 2016, 10:05:38 PM1/8/16
to igv-...@googlegroups.com
Hi Vito,

I've been trying but so far can't reproduce your issues. I assume you
are running the latest IGV, could you confirm that? Select "Help >
About" to get the version information.

Jim

Jim Robinson

unread,
Jan 8, 2016, 10:07:32 PM1/8/16
to igv-...@googlegroups.com
Here is my test script, which you can also run. The resulting image is
attached.

2.png

vito.ca...@gmail.com

unread,
Jan 11, 2016, 9:24:32 AM1/11/16
to igv-help
Hi Jim,

I am currently running version 2.3.65 (94).  I see the image of your resulting script, but could you post the script so I can test on my end if possible?

Thanks,
Vito C. 

Jim Robinson

unread,
Jan 11, 2016, 11:19:34 AM1/11/16
to igv-...@googlegroups.com

collapse
maxPanelHeight 1000000
snapshot 2.png



--

---
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+u...@googlegroups.com.

vito.ca...@gmail.com

unread,
Jan 11, 2016, 1:32:49 PM1/11/16
to igv-help
Ran the same script and attached is the image I got back.  Slightly different, not sure why.  
2.png
Reply all
Reply to author
Forward
0 new messages