Compact Randomly-accessible Reference file. More...
#include <CrrFile.hpp>
Public Member Functions | |
CrrFile (const std::string &path) | |
void | open (const std::string &path) |
const std::vector < CompactDnaSequence > & | listChromosomes () const |
Return the list of chromosomes (and their metadata). | |
std::vector< Range > | listContigs (uint32_t minGapLength=50) const |
Return the list of ranges that may be considered contigs, if you split contigs by stretches of reference N's that are at list minGapLength long. | |
std::string | getSequence (const Range &range) const |
Get the reference sequence for the given range. | |
char | getBase (const Location &loc) const |
Get the reference sequence for the given location. | |
uint16_t | getChromosomeId (const std::string &chromosomeName) const |
Get the chromosome id for the given chromosome name. | |
void | validate () const |
Validate the md5 checksums in the chromosome metadata. | |
Static Public Member Functions | |
static uint32_t | currentVersion () |
The expected .crr file version. |
Compact Randomly-accessible Reference file.
It's a binary format.
Return the list of ranges that may be considered contigs, if you split contigs by stretches of reference N's that are at list minGapLength long.