No commit activity in last 3 years
No release in over 3 years
A minimal web service on the top of sinatra to query bam files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.4.2
>= 1.0.21
~> 3.12

Runtime

>= 2.0.3
>= 1.4.5
 Project Readme

bio-samtools-server

Build Status

This is a standalone server to query BAM files (and the corresponding reference). The server will return the content of a BAM file in the selected folder when the server is started up. The server used is sintra.

Note: this software is under active development!

Installation

gem install bio-samtools-server

Usage

require 'bio-samtools-server'

The API doc is online. For more code examples see the test files in the source tree.

To run the server:

bam-server.rb  -r FOLDER_WITH_REFERENCES --bam FOLDER_WITH_BAM_FILES

On the web browser, the following outputs are implemented (so far). The first element in the path is the file with the reference, the second the BAM file (without extension) and the parameter "region" is used to query

WIG TEST:

http://localhost:4567/test_chr.fasta/testu/wig?region=chr_1:1-100&step_size=5

the param step_size sets the number of positions to be averaged. See the wiggle documentation

ALIGNMENT TEST

http://localhost:4567/test_chr.fasta/testu/alignment?region=chr_1:1-100

LIST

http://localhost:4567/test_chr.fasta/testu/list

Reference

http://localhost:4567/test_chr.fasta/testu/reference?region=chr_1:1-100

Project home page

Information on the source tree, documentation, examples, issues and how to contribute, see

http://github.com/homonecloco/bioruby-samtools-server

Cite

If you use this software, please cite one of

Biogems.info

This Biogem is published at (http://biogems.info/index.html#bio-samtools-server)

Copyright

Copyright (c) 2014 homonecloco. See LICENSE.txt for further details.