aboutsummaryrefslogtreecommitdiff
path: root/kmer_total_count.c
diff options
context:
space:
mode:
authororbitz <orbitz@gmail.com>2013-12-29 12:53:38 +0100
committerorbitz <orbitz@gmail.com>2013-12-29 12:53:38 +0100
commit7b3377714a57d94db3e0efb886e7efe5e14999ca (patch)
tree511d332c49ca94e6c2a68bfbc99e769a6139e887 /kmer_total_count.c
parent1701700a02e338835822c1a6d5c61d35ef9cf4e7 (diff)
Namespace all the functions and make private ones static
Diffstat (limited to 'kmer_total_count.c')
-rw-r--r--kmer_total_count.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmer_total_count.c b/kmer_total_count.c
index 5dbb50d..2f944d8 100644
--- a/kmer_total_count.c
+++ b/kmer_total_count.c
@@ -80,9 +80,9 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
- width = pow_four(kmer);
+ width = kmer_pow_four(kmer);
- unsigned long long *counts = get_kmer_counts_from_file(fh, kmer);
+ unsigned long long *counts = kmer_counts_from_file(fh, kmer);
// If nonzero is set, only print non zeros
if(nonzero) {
@@ -90,7 +90,7 @@ int main(int argc, char **argv) {
if(label) {
for(i = 0; i < width; i++)
if(counts[i] != 0) {
- char *kmer_str = index_to_kmer(i, kmer);
+ char *kmer_str = kmer_index_to_kmer(i, kmer);
fprintf(stdout, "%s\t%llu\n", kmer_str, counts[i]);
free(kmer_str);
}
@@ -106,7 +106,7 @@ int main(int argc, char **argv) {
if(label) {
for(i = 0; i < width; i++) {
if(counts[i] != 0) {
- char *kmer_str = index_to_kmer(i, kmer);
+ char *kmer_str = kmer_index_to_kmer(i, kmer);
fprintf(stdout, "%s\t%llu\n", kmer_str, counts[i]);
free(kmer_str);
}