|
Antonie
|
#include "dnamisc.hh"#include "antonie.hh"#include <vector>#include <stdexcept>#include <math.h>#include <boost/lexical_cast.hpp>Functions | |
| double | getGCContent (const std::string &str) |
| returns GC fraction of nucleotides in str | |
| double | qToErr (unsigned int i) |
| convert a Sanger Q-score into an error probability. Uses a cache to be fast. | |
| uint32_t | kmerMapper (const std::string &str, int offset, int unsigned len) |
| maps 'len' nucleotides from 'str' at offset offset to a 32 bit string. At most 16 nuclotides therefore! | |
| double getGCContent | ( | const std::string & | str | ) |
returns GC fraction of nucleotides in str
| uint32_t kmerMapper | ( | const std::string & | str, |
| int | offset, | ||
| int unsigned | len | ||
| ) |
maps 'len' nucleotides from 'str' at offset offset to a 32 bit string. At most 16 nuclotides therefore!
| double qToErr | ( | unsigned int | i | ) |
convert a Sanger Q-score into an error probability. Uses a cache to be fast.
1.7.6.1