[Genome] download browser graphics programmatically
Hiram Clawson
hiram at soe.ucsc.edu
Tue May 15 10:28:46 PDT 2007
Good Morning Bob:
You can use wget to fetch the browser page and its associated .gif
graphic. The resulting html file ends up with an unusual name,
but the .gif file is there too. For example:
wget --no-directories --recursive --follow-tags=img --html-extension \
--convert-links \
'http://genome.ucsc.edu/cgi-bin/hgTracks?hgt.customText=http://genome-test.cse.ucsc.edu/~hiram/ctDb/bedWigGtfPsl.txt'
This causes the loading of the custom tracks specified, which also controls which tracks are
displayed and position, note the browser specifications in the custom track file:
http://genome-test.cse.ucsc.edu/~hiram/ctDb/bedWigGtfPsl.txt
The resulting .gif file is named something like: hgt_genome_34c6_9eae80.gif
The hex ID numbers there will be different each time.
For this particular example, as a bonus, you also get the ideogram graphic:
hgtIdeo_genome_34c6_9eae80.gif
--Hiram
Bob Thurman wrote:
> Hi,
>
> I would like a way to generate from within a program or from a unix
> command line, a browser screen shot displaying tracks that I load myself
> and download that graphic (as with the "PDF/PS" link at the top of your
> page). Is this possible? Is there a way to do this by piping output
> through a wget command or something?
>
> Thanks,
>
> Bob Thurman
>
> Dept. of Genome Sciences
> University of Washington
More information about the Genome
mailing list