vg
tools for working with variation graphs
Namespaces | Functions
kff.cpp File Reference
#include "kff.hpp"

Namespaces

 vg
 

Functions

bool vg::kff_is_trivial (const uint8_t *encoding)
 Returns true if the encoding is trivial (0, 1, 2, 3). More...
 
std::string vg::kff_invert (const uint8_t *encoding)
 Inverts the KFF encoding into a packed -> char table. More...
 
kff_recoding_t vg::kff_recoding (const uint8_t *encoding)
 Returns a recoding for the given encoding. More...
 
uint64_t vg::kff_parse (const uint8_t *data, size_t bytes)
 Parses a big-endian integer from KFF data. More...
 
uint8_t vg::kff_encode (const std::string &kmer, size_t start, size_t limit, const uint8_t *encoding)
 
std::vector< uint8_t > vg::kff_encode (const std::string &kmer, const uint8_t *encoding)
 
void vg::kff_decode (uint8_t byte, size_t chars, const std::string &decoding, std::string &output)
 
std::string vg::kff_decode (const uint8_t *kmer, size_t k, const std::string &decoding)
 Decodes a kmer in KFF format according to the given encoding. More...
 
uint8_t vg::kff_recode (gbwtgraph::Key64::value_type kmer, size_t k, size_t chars, const uint8_t *encoding)
 
std::vector< uint8_t > vg::kff_recode (gbwtgraph::Key64::value_type kmer, size_t k, const uint8_t *encoding)
 Recodes a kmer from a minimizer index in KFF format according to the given encoding. More...
 
gbwtgraph::Key64::value_type vg::kff_recode (const uint8_t *kmer, size_t k, kff_recoding_t recoding)
 
gbwtgraph::Key64::value_type vg::kff_recode_trivial (const uint8_t *kmer, size_t k, size_t bytes)
 
std::vector< gbwtgraph::Key64::value_type > vg::kff_recode (const uint8_t *kmers, size_t n, size_t k, kff_recoding_t recoding)
 
uint8_t vg::kff_get (const uint8_t *kmer, size_t i)
 
void vg::kff_set (std::vector< uint8_t > &kmer, size_t i, uint8_t value)
 
std::vector< uint8_t > vg::kff_reverse_complement (const uint8_t *kmer, size_t k, const uint8_t *encoding)
 Returns the reverse complement of a KFF kmer. More...