From 7b3377714a57d94db3e0efb886e7efe5e14999ca Mon Sep 17 00:00:00 2001 From: orbitz Date: Sun, 29 Dec 2013 12:53:38 +0100 Subject: Namespace all the functions and make private ones static --- kmer_counts_per_sequence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kmer_counts_per_sequence.c') 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++) -- cgit v1.2.3