Question: Are there services/java libs I can use to upload files automatically for UCSC display?
0
gravatar for endrebak
2.7 years ago by
endrebak760
endrebak760 wrote:

I want to create a script that lets users get pdfs of a bunch of regions from the UCSC genome browser.

I want to allow users to give custom bigwigs as arguments on the command line and have them displayed by UCSC. Problem is, the bigwigs need to be stored online somewhere. Therefore I want to upload them programmatically for the user.

Are there services that lets me do this easily, preferably with a java library (I am using clojure)?

browser ucsc java genome • 1.0k views
ADD COMMENTlink modified 2.7 years ago by Ryan Dale4.8k • written 2.7 years ago by endrebak760
1

If you have a Galaxy instance then it can do this. You then don't need to deal with anything else yourself.

ADD REPLYlink modified 2.7 years ago • written 2.7 years ago by Devon Ryan90k

Thanks for your answer.

I do not know galaxy yet. What exactly described above can a galaxy instance help with? Upload files for me or get a bunch of pdfs from UCSC?

And I want to make it easy for other users to use too, so something that does not require galaxy would be nice.

ADD REPLYlink written 2.7 years ago by endrebak760

It allows users to upload files to a place you control (and therefore provide space for) and then view the files remotely in UCSC. They can do this with other file types, like BAM files too and aren't limited to just UCSC (they can also use IGV and similar desktop genome browsers with their files in Galaxy).

ADD REPLYlink written 2.7 years ago by Devon Ryan90k
2
gravatar for Alex Reynolds
2.7 years ago by
Alex Reynolds28k
Seattle, WA USA
Alex Reynolds28k wrote:

If you're willing to use Python, you could use my soda.py script, which creates a folder of PDF-formatted browser shots from a UCSC browser instance. Ultimately, its purpose is to make a PNG-based web gallery from those PDFs, but you could modify your copy to exit after making all the PDFs, or just use the subfolder containing the PDFs. Cf. https://github.com/alexpreynolds/soda

ADD COMMENTlink modified 2.7 years ago • written 2.7 years ago by Alex Reynolds28k

Neat. Did not know you could set psOutput in the link.

ADD REPLYlink written 2.7 years ago by endrebak760

Yes. soda.py also has some annotation options that place an interval rectangle underneath the PDF output. This highlights the input intervals in each plot, without having to create a track hub or upload tracks to the UCSC browser instance.

ADD REPLYlink written 2.7 years ago by Alex Reynolds28k
1
gravatar for Ryan Dale
2.7 years ago by
Ryan Dale4.8k
Bethesda, MD
Ryan Dale4.8k wrote:

trackhub (https://github.com/daler/trackhub) doesn't do the PDF snapshots, but you can use it for configuring and setting up the bigWigs into a UCSC track hub (Python 2.7-only due to the dependency on fabric).

ADD COMMENTlink written 2.7 years ago by Ryan Dale4.8k

Nice. I guess you do more with fabric than just subprocess.call("scp ...", shell=True)

ADD REPLYlink written 2.7 years ago by endrebak760
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 986 users visited in the last hour