diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-01-30 16:29:47 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-01-30 16:29:47 -0500 |
commit | 84e6803509f91fc01678f18ec634480463099b10 (patch) | |
tree | 44cf7bf75ff7439852c81668a9eb8589a843fcdb /kmer_utils.h | |
parent | 59ff0a86e855cd78628af40ade8b2e096eb8833e (diff) |
kmer_count_per_sequence: add option to load specific mers from file, add multiline ecounting
Diffstat (limited to 'kmer_utils.h')
-rw-r--r-- | kmer_utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kmer_utils.h b/kmer_utils.h index 762c20c..cfe664b 100644 --- a/kmer_utils.h +++ b/kmer_utils.h @@ -1,12 +1,14 @@ // Kmer functions void convert_kmer_to_num(char *str, const unsigned long length); -unsigned long num_to_index(const char *str, const int kmer, const long error_pos); +unsigned long num_to_index(const char *str, const int kmer, const long error_pos, size_t *current_position); char *index_to_kmer(unsigned long long index, long kmer); unsigned long long * get_kmer_counts_from_file(const char *fn, const int kmer); // Utility functions char *strnstrip(const char *s, char *dest, int c, int len); -inline unsigned long long pow_four(unsigned long long x); +unsigned long long pow_four(unsigned long long x); // Variables const unsigned char alpha[256]; + +unsigned long long load_specific_mers_from_file(char *fn, unsigned int kmer, size_t width, size_t *arr); |