Hi Endre,
Thank you for your question about automatically generating pdf images.
There is a way to have the browser generate a single pdf image via the
View->PDF/PS option, but scripting this would be tricky. Instead, it
may be better to use the hgRenderTracks CGI to generate a PNG image,
and then convert that image to PDF with ImageMagick.
To use hgRenderTracks, replace hgTracks in your URL with
hgRenderTracks, like so: Your link:
http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg18&position=chr1%3A779770-779967&hgct_customText=track%20type=bigWig%20name=myBigWig%20description=%22a%20bigWig%20track%22%20visibility=full%20bigDataUrl=https://github.com/endrebak/git-lfs/raw/master/PolII.bw&omimGene2=full
becomes:
http://genome.ucsc.edu/cgi-bin/hgRenderTracks?db=hg18&position=chr1%3A779770-779967&hgct_customText=track%20type=bigWig%20name=myBigWig%20description=%22a%20bigWig%20track%22%20visibility=full%20bigDataUrl=https://github.com/endrebak/git-lfs/raw/master/PolII.bw&omimGene2=full
You can curl this link and pipe the resulting PNG to ImageMagick's
convert utility.
Your script will look similar to the following: curl
"http://genome.ucsc.edu/cgi-bin/hgRenderTracks?param1=x¶m2=y&..."
| convert - example.pdf
Although it sounds like your requests will be reasonable, please keep
in mind our Conditions of Use allow no more than one hit per 15
seconds and 5000 hits per day: https://genome.ucsc.edu/conditions.html
For more information about constructing and sharing URLs, please see
the following page:
https://genome.ucsc.edu/goldenpath/help/hgTracksHelp.html#SHARE
Thank you again for your inquiry and using the UCSC Genome Browser. If
you have any further questions, please reply to genome@soe.ucsc.edu.
All messages sent to that address are archived on a
publicly-accessible forum. If your question includes sensitive data,
you may send it instead to genome-www@soe.ucsc.edu.
Christopher Lee UCSC Genomics Institute
If I do not get an answer here I'll ask at the UCSC mailing list and post the answer here.
More info here: Batch Viewing Of Ucsc Browser Graphic