cgatools::reference::CrrFile Class Reference

Compact Randomly-accessible Reference file. More...

#include <CrrFile.hpp>

List of all members.

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< RangelistContigs (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.

Detailed Description

Compact Randomly-accessible Reference file.

It's a binary format.


Member Function Documentation

std::vector<Range> cgatools::reference::CrrFile::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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2