From 4d00f90fd8b1b9e38eea297336ee83a5e5c9e764 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 28 Sep 2013 11:52:45 -0700 Subject: idea --- kmer_total_count.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kmer_total_count.c') diff --git a/kmer_total_count.c b/kmer_total_count.c index 6d07e13..2416bfa 100644 --- a/kmer_total_count.c +++ b/kmer_total_count.c @@ -43,8 +43,10 @@ int main(int argc, char **argv) { while ((read = getline(&line, &len, fh)) != -1) { if(line[0] != '>') { + convert_kmer_to_num(line, read); + for(i = 0; i < read - kmer; i++) { - counts[convert_kmer_to_index(&line[i],kmer, width)]++; + counts[num_to_index(&line[i],kmer, width)]++; } } } -- cgit v1.2.1