biod ~meson

Bioinformatics library in D (utils for working with SAM, BAM, SFF formats)


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

BioD Build Status DUB Package

BioD is a fast and memory efficient bioinformatics library written in the D programming language.

BioD aims to:

  • Provide a platform for writing high-performance bioinformatics applications in D. BioD achieves this by:
  • automatic parallelization of tasks where possible for example reading and writing BAM files
  • reducing the GC overhead by avoiding unnecessary memory allocations
  • Offer support for manipulating common biological data formats

Why D?

D is a language that suits parallel programming because of guarantees the compiler provides. D is both a low-level language and a high-level hybrid OOP/FP language. There is no other programming language that matches those features. Also, D templating/generics is far easier that that of C++ or, say, Scala.

That is not to say that D is an easy language. A powerful toolbox will be complicated. If you want to do everything with a hammer, maybe better choose Java instead ;).

For more information about D find Andrei Alexandrecu's D book. It is a classic. Ali Çehreli's book also is recommended.

Current development

Our current focus is to provide a bamreader and bamwriter that is really fast and easy to use. We believe the BAM format is here to stay for the foreseeable future in pipelines. With D we have an good way to write performance parsers, particularly with three typical scenarios:

  1. Go through a BAM file a read at a time
  2. Go through a BAM file a nucleotide at a time (pileup)
  3. Go through a BAM file with a sliding window

The sliding window is a derivation of the first - a read at a time or a nucleotide at a time.

At this point this functionality is mostly in BioD, but not in an intuitive way. We are building up this functionality and will give examples (WIP).

Install

The current default is to provide the path to the checked out repo to the D-compiler. For example in sambamba we use

DFLAGS = -wi -I. -IBioD -g

Usage

See the examples directory for examples and usage.

BioD is also a crucial part of the sambamba tool.

Contributing

Simply clone the repository on github and put in a pull request.

BioD contributors and support

See contributors. For support use the issue tracker or contact

License

BioD is licensed under the liberal MIT (expat) license.

Authors:
  • Artem Tarasov
  • Pjotr Prins
Dependencies:
undead
Versions:
0.2.3 2019-Jun-01
0.2.2 2019-Mar-16
0.2.1 2018-Oct-04
0.2.0 2018-Sep-15
0.1.0 2016-Jun-14
Show all 11 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 118 downloads total

Score:
2.4
Short URL:
biod.dub.pm