This gist implements a proof-of-concept web server to provide remote access to multiple BAMs. You can launch the server with:
go run hts-server.go -e /path/to/samtools bam-dir1 bam-dir2
and test it with:
curl -s http://127.0.0.1:8000/
The server regards bam-dir1
and bam-dir2
as study accessions. For a BAM file bam-dir1/myfile1.bam
, the file accession is myfile1
. It is required that every file has a unique file name across all input directories (i.e. even in two directories, two files must be named differently).