Skip to content

Commit

Permalink
Updated spoa and added missing header
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed Mar 1, 2018
1 parent fb3a059 commit fa371d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "sequence.hpp"
#include "polisher.hpp"

static const char* version = "v1.0.2";
static const char* version = "v1.0.3";

static struct option options[] = {
{"include-unpolished", no_argument, 0, 'u'},
Expand Down
6 changes: 3 additions & 3 deletions src/overlap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void Overlap::transmute(const std::unordered_map<std::string, uint64_t>& name_to
} else {
if (!transmuteId(id_to_id, q_id_ << 1 | 0, q_id_)) {
fprintf(stderr, "[racon::Overlap::transmute] error: "
"missing sequence with id %lu!\n", q_id_);
"missing sequence with id %zu!\n", q_id_);
exit(1);
}
}
Expand All @@ -162,7 +162,7 @@ void Overlap::transmute(const std::unordered_map<std::string, uint64_t>& name_to
} else {
if (!transmuteId(id_to_id, t_id_ << 1 | 1, t_id_)) {
fprintf(stderr, "[racon::Overlap::transmute] error: "
"missing sequence with id %lu!\n", t_id_);
"missing sequence with id %zu!\n", t_id_);
exit(1);
}
}
Expand Down Expand Up @@ -210,7 +210,7 @@ void Overlap::find_breaking_points(const std::vector<std::unique_ptr<Sequence>>&
free(cigar);
} else {
fprintf(stderr, "[racon::Overlap::find_breaking_points] error: "
"edlib unable to align pair (%lu x %lu)!\n", q_id_, t_id_);
"edlib unable to align pair (%zu x %zu)!\n", q_id_, t_id_);
exit(1);
}

Expand Down
1 change: 1 addition & 0 deletions src/overlap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#pragma once

#include <stdlib.h>
#include <stdint.h>
#include <memory>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions src/polisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void Polisher::initialize() {
}
for (uint64_t i = 0; i < thread_futures.size(); ++i) {
thread_futures[i].wait();
fprintf(stderr, "[racon::Polisher::initialize] aligned overlap %lu/%lu\r",
fprintf(stderr, "[racon::Polisher::initialize] aligned overlap %zu/%zu\r",
i + 1, overlaps.size());
}
fprintf(stderr, "\n");
Expand Down Expand Up @@ -490,7 +490,7 @@ void Polisher::polish(std::vector<std::unique_ptr<Sequence>>& dst,
}
windows_[i].reset();

fprintf(stderr, "[racon::Polisher::polish] generated consensus for window %lu/%lu\r",
fprintf(stderr, "[racon::Polisher::polish] generated consensus for window %zu/%zu\r",
i + 1, thread_futures.size());
}
fprintf(stderr, "\n");
Expand Down
2 changes: 1 addition & 1 deletion vendor/spoa

0 comments on commit fa371d9

Please sign in to comment.