A library for working with phylogenetic and population genetic data.
v0.32.0
function.hpp File Reference
#include "genesis/sequence/kmer/kmer.hpp"
#include <cassert>
#include <cstdint>
#include <iostream>
#include <stdexcept>
#include <string>
#include <type_traits>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::sequence
 

Functions

template<typename Tag >
Kmer< Tag > canonical_representation (Kmer< Tag > const &kmer)
 
size_t number_of_kmers (size_t k, size_t alphabet_size=4)
 Compute the total number of possible k-mers for a given k and alphabet_size. More...
 
template<typename Tag >
bool operator!= (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
bool operator< (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
std::ostream & operator<< (std::ostream &os, Kmer< Tag > const &kmer)
 
template<typename Tag >
bool operator<= (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
bool operator== (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
bool operator> (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
bool operator>= (Kmer< Tag > const &lhs, Kmer< Tag > const &rhs)
 
template<typename Tag >
Kmer< Tag > reverse_complement (Kmer< Tag > const &kmer)
 
template<typename Tag >
std::string to_string (Kmer< Tag > const &kmer)