Bioinformatics library in D (utils for working with SAM, BAM, SFF formats)
To use this package, put the following dependency into your project's dependencies section:
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
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.
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:
- Go through a BAM file a read at a time
- Go through a BAM file a nucleotide at a time (pileup)
- 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).
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
See the examples directory for examples and usage.
BioD is also a crucial part of the sambamba tool.
Simply clone the repository on github and put in a pull request.
BioD contributors and support
BioD is licensed under the liberal MIT (expat) license.
- Registered by Artem Tarasov
- 0.2.1 released 12 days ago
- Copyright © 2016, BioD developers