aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbitz <orbitz@gmail.com>2013-12-31 16:28:32 +0100
committerorbitz <orbitz@gmail.com>2013-12-31 16:28:32 +0100
commit6063803b2dcf602146f0f0590e3ae7e2e0a9b334 (patch)
tree885edffcb61a1cec781006ea2f42954f02671abc
parent75ab37b03fee447b041f03f19d3b7f35dd84fc8c (diff)
Iterate in other direction
-rw-r--r--kmer_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmer_utils.c b/kmer_utils.c
index 907caea..9d31081 100644
--- a/kmer_utils.c
+++ b/kmer_utils.c
@@ -176,7 +176,7 @@ unsigned long long *kmer_counts_from_file(FILE *fh, const unsigned int kmer) {
unsigned long multiply = 1;
// for each char in the k-mer check if it is an error char
- for(i = position + kmer - 1; i >= position; i--){
+ for(i = position; i < position + kmer; ++i) {
if(str[i] == 5) {
mer = width;
position = i;