Saving IGV images for bigwig files
4
1
Entering edit mode
6.8 years ago
Varun Gupta ★ 1.3k

Hi,

I have 100 bigwig files and a bed file which has 80 features. I want to load all the bigwig files and bed annotation file in IGV and for each feature I want to output an image which has for each feature all the loaded 100 bigwig files. In total I should have 80 graphs(for 80 features). Also I want it to scroll and not a screen shot as I want to see all the bigwig files. I am writing a batch script as told in IGV but I cannot get all the bigwig files to display.

Any help how to do it is appreciated.

Thanks

igv bigwig • 4.6k views
ADD COMMENT
2
Entering edit mode
6.8 years ago

You can do this with batch files in IGV. Here's a little wrapper script that automates some of it: https://github.com/chrisamiller/igvScreenshot

To be clear, I know you said no screenshots, but on a headless node, you can expand these to whatever height/size you want by tweaking params.

ADD COMMENT
0
Entering edit mode

In the "screenshot" categorie, check this paper : Strategies for identification of somatic variants using the Ion Torrent deep targeted sequencing platform. They have "created an IGV batch script to load the samples in which each variant was called", it's pretty nice.

ADD REPLY
1
Entering edit mode
6.8 years ago
venu 7.1k

Recently I started using https://github.com/deeptools/pyGenomeTracks for a similar purpose. You can loop over all features or run in batch mode.

You have to spend some time configuring the input tracks file though.

ADD COMMENT
0
Entering edit mode

Hi venu, I downloaded and installed the pyGenomeTracks but I cannot locate make_tracks_file command for making the config file. Where does this go. I am using linux machine

ADD REPLY
0
Entering edit mode

How did you install?

ADD REPLY
0
Entering edit mode
pip install pyGenomeTracks
ADD REPLY
0
Entering edit mode

It got installed here

/home/varun/.local/bin
ADD REPLY
0
Entering edit mode

Then add this directory to PATH. It will work smoothly.

ADD REPLY
0
Entering edit mode

enter image description hereHi Venu, I tried making plots by providing this command

./pyGenomeTracks --tracks tracks.ini --BED ~/test.bed -out fig_

The graph is showing too much upstream and downstream of my bed coordinates. Any way to fix that Also how can i display the name of the feature present in the bed file??

ADD REPLY
0
Entering edit mode

graph is showing too much upstream and downstream of my bed coordinates

I did not experience this. Explore the options (commented) in *.ini file. If I remember correctly, you should provide feature names in GFF format. Then it shows the feature name on plot.

ADD REPLY
0
Entering edit mode
6.8 years ago

the Bioconductor Gviz package will also do what you're looking for (allowing for Genome Browser style snapshots in a scripted manner)

ADD COMMENT
0
Entering edit mode
6.8 years ago

In these cases, I cannot help mentioning my own tool, ASCIIGenome. It doesn't help with the question of how to do it with IGV, of course, but I would suggest that for batch processing it might be a better alternative (see examples here).

ADD COMMENT

Login before adding your answer.

Traffic: 1628 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6