aboutsummaryrefslogtreecommitdiff
path: root/kmer_total_count.c
diff options
context:
space:
mode:
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)]++;
}
}
}