aboutsummaryrefslogtreecommitdiff
path: root/kmer_counts_per_sequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'kmer_counts_per_sequence.c')
-rw-r--r--kmer_counts_per_sequence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmer_counts_per_sequence.c b/kmer_counts_per_sequence.c
index 6557d5d..6ff815d 100644
--- a/kmer_counts_per_sequence.c
+++ b/kmer_counts_per_sequence.c
@@ -46,11 +46,11 @@ int main(int argc, char **argv) {
memset(counts, 0, width * sizeof(unsigned long long));
for(i = 0; i < read - kmer; i++) {
- line[i] = alpha[(int)line[i]];
+ line[i] = kmer_alpha[(int)line[i]];
}
for(i = 0; i < read - kmer; i++) {
- counts[num_to_index(&line[i],kmer, width)]++;
+ counts[kmer_num_to_index(&line[i],kmer, width)]++;
}
for(i = 0; i < width; i++)