aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-04 15:31:19 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-04 15:31:19 -0500
commit26215cf57f4c0b78a6f6496145fd5b4ad70a5540 (patch)
tree45b100030d8dc84d4abd993c696a28d3760beeda
parentd5af45885f76e74df4ac8d80b67d138a3a491784 (diff)
update kmer utils.h
-rw-r--r--kmer_utils.h9
1 files 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<size_t,unsigned long long> 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];