From 26215cf57f4c0b78a6f6496145fd5b4ad70a5540 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 4 Mar 2014 15:31:19 -0500 Subject: update kmer utils.h --- kmer_utils.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kmer_utils.h b/kmer_utils.h index cf7b8a1..10d7ea4 100644 --- a/kmer_utils.h +++ b/kmer_utils.h @@ -12,15 +12,16 @@ unsigned long long pow_four(unsigned long long x); // Variables typedef unordered_map kmer_map; - +unsigned char alpha[256]; // file loading functions kmer_map *get_sparse_kmer_counts_from_filename(const char *fn, const unsigned int kmer); kmer_map *get_sparse_kmer_counts_from_file(FILE *fh, int kmer); -unsigned long long * get_dense_kmer_counts_from_file(FILE *fh, const unsigned int kmer); - +unsigned long long *get_dense_kmer_counts_from_file(FILE *fh, const unsigned int kmer); +unsigned long long *get_dense_kmer_counts_from_filename(const char *fn, const unsigned int kmer); +size_t load_specific_mers_from_file(char *fn, unsigned int kmer, size_t width, size_t *arr); +// print functions void print_kmer(unsigned long long *counts, bool label, bool nonzero, unsigned int kmer); void print_kmer(kmer_map *counts, bool label, bool nonzero, unsigned int kmer); -unsigned char alpha[256]; -- cgit v1.2.3