How can I serve a directory of BAM files via http most easily?
1
1
Entering edit mode
6.0 years ago

This is bordering on off-topic, but I routinely want to quickly serve up a set of BAM files to users for viewing via IGV and the like via a simple http server.  Both python and node (http-server) servers do not seem to correctly support range requests.  Short of configuring and running something more heavyweight (nginx, apache, etc.), are there other simple command-line http servers that can support quickly and easily serving up a directory?

bam http • 1.3k views
ADD COMMENT
0
Entering edit mode

Any reason for not considering an FTP server? I often do range requests on 1000 genomes BAMs and it works quite well.

ADD REPLY
3
Entering edit mode
6.0 years ago

set-up a jetty server? see the gist below. you just have to change the path

holderPwd.setInitParameter("resourceBase", "/home/user/path/to/directory");

ADD COMMENT

Login before adding your answer.

Traffic: 1702 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