HTSlib
:dna: HTSlib - high-throughput sequencing data manipulation - for Ruby
:apple: Feel free to fork it out if you can develop it!
:bowtie: Just a prototype.
Installation
gem install htslib
Set environment variable HTSLIBDIR.
export HTSLIBDIR="/your/path/to/htslib"
Requirements
Usage
HTS::FFI - Low-level API
require 'htslib'
a = HTS::FFI.hts_open("a.bam", "r")
b = HTS::FFI.hts_get_format(a)
p b[:category]
p b[:format]
A high-level API based on hts-python is under development.
Documentation
Development
To get started with development
git clone --recurse-submodules https://github.com/kojix2/ruby-htslib
cd ruby-htslib
bundle install
bundle exec rake htslib:compile
bundle exec rake spec
Contributing
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features