From 59ff0a86e855cd78628af40ade8b2e096eb8833e Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 7 Jan 2014 16:01:25 -0500 Subject: fix kmer_counts_per_sequence, make sure we convert the array fully, and update kmer_utils for str[i] == 5 instead of >> 2 --- kmer_counts_per_sequence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kmer_counts_per_sequence.c') diff --git a/kmer_counts_per_sequence.c b/kmer_counts_per_sequence.c index 66accc8..fceb17e 100644 --- a/kmer_counts_per_sequence.c +++ b/kmer_counts_per_sequence.c @@ -45,7 +45,7 @@ int main(int argc, char **argv) { // reset our count matrix to zero memset(counts, 0, width * sizeof(unsigned long long)); - for(i = 0; i < read - kmer; i++) { + for(i = 0; i < read; i++) { line[i] = alpha[(int)line[i]]; } -- cgit v1.2.3