aboutsummaryrefslogtreecommitdiff
path: root/kmer_utils.h
blob: 59323165509d7cb692e56d812adaf56d6d03f3d1 (plain)
1
2
3
4
5
6
7
8
9
10
// Kmer functions
void kmer_convert_kmer_to_num(char *str, unsigned long length);
unsigned long kmer_num_to_index(const char *str, const int kmer, long error_pos);
char *kmer_index_to_kmer(unsigned long long index, long kmer);
unsigned long long * kmer_counts_from_file(FILE *fh, int kmer);

// Utility functions
unsigned long long kmer_pow_four(unsigned long long x);

extern const unsigned char kmer_alpha[256];