Use mruby to evaluate expressions.
git clone --recurse-submodules https://github.com/kojix2/samtools-mruby
./build.sh
samtools/samtools tanuki # check
Rake is required to build mruby.
If you are using conda to install Ruby, setting the LD
environment may work.
rake LD=/usr/bin/gcc MRUBY_CONFIG=$(pwd)/mruby_build_config.rb -f $(pwd)/mruby/Rakefile
samtools/samtools view -E 'puts qname.ljust(13) + seq.green' htslib/test/colons.bam
- The mruby directory has not been changed. It was added to a submodule because it is needed to generate libmruby.a.
- The following mrbgems are included:
- The htslib directory is also unchanged. This is also useful for samtools builds, so I added it as a submodule.
- It is preferable to use the latest stable versions of mruby and htslib. These are not modified and can be easily updated.
- samtools is not origin, but the mruby branch of the kojix2 repository.
- The tanuki subcommand helps distinguish between ordinary samtools and samtools that incorporate mruby.
- Fork it
- Pull Request welcome!
MIT License