aboutsummaryrefslogtreecommitdiff
path: root/kmer_total_count.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-09-28 11:52:45 -0700
committerCalvin Morrison <mutantturkey@gmail.com>2013-09-28 11:52:45 -0700
commit4d00f90fd8b1b9e38eea297336ee83a5e5c9e764 (patch)
tree23c4d52aeb90b3c4cf2f8166161a06244a08cab3 /kmer_total_count.c
parent8d1e990611a128d123e47f8a068ff9b045794db4 (diff)
idea
Diffstat (limited to 'kmer_total_count.c')
-rw-r--r--kmer_total_count.c4
1 files changed, 3 insertions, 1 deletions
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)]++;
}
}
}