Skip to content

kojix2/samtools-mruby

Repository files navigation

samtools-mruby

Use mruby to evaluate expressions.

Instllation

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

Usage

samtools/samtools view -E 'puts qname.ljust(13) + seq.green' htslib/test/colons.bam

Development

  1. The mruby directory has not been changed. It was added to a submodule because it is needed to generate libmruby.a.
    1. The following mrbgems are included:
      1. mruby-terminal-color
      2. mruby-regexp-pcre
  2. The htslib directory is also unchanged. This is also useful for samtools builds, so I added it as a submodule.
  3. It is preferable to use the latest stable versions of mruby and htslib. These are not modified and can be easily updated.
  4. samtools is not origin, but the mruby branch of the kojix2 repository.
  5. The tanuki subcommand helps distinguish between ordinary samtools and samtools that incorporate mruby.

Contributing

  • Fork it
  • Pull Request welcome!

License

MIT License

About

kexpr / mruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published