19 #ifndef _biomcmc_kmerhash_h_ 20 #define _biomcmc_kmerhash_h_ 27 extern const char *biomcmc_kmer_class_string[];
32 uint64_t mask1[7], mask2[7];
33 uint8_t n1, n2, shift1[7], shift2[7], size[14], nbytes[14];
35 uint64_t (*hashfunction) (
const void *,
const size_t,
const uint32_t);
44 uint64_t *forward, *reverse;
45 uint64_t *hash, *kmer;
52 kmer_params new_kmer_params (
int mode);
53 void del_kmer_params (kmer_params p);
54 kmerhash new_kmerhash (
int mode);
55 void link_kmerhash_to_dna_sequence (kmerhash kmer,
char *dna,
size_t dna_length);
56 void del_kmerhash (kmerhash kmer);
57 bool kmerhash_iterator (kmerhash kmer);
File handling functions and calculation of distances for sequence data in nexus format.
Definition: kmerhash.h:41
char * dna
n_f = 2 (128bits)
Definition: kmerhash.h:47
Definition: kmerhash.h:30
int n_hash
hash = 4mer, 8mer, etc. hashed ; kmer = original bitstring OR its complement, masked ...
Definition: kmerhash.h:46
int kmer_class_mode
4bits per base or 2bits or 1 bit (GC content)
Definition: kmerhash.h:37