Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Joyjit Daw committed Oct 9, 2019
2 parents 9df1ce8 + ededb83 commit 2c5672e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.2)
project(racon)
set(racon_version 1.4.7)
set(racon_version 1.4.9)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ Usage of `racon` is as following:
--no-trimming
disables consensus trimming at window ends
-m, --match <int>
default: 5
default: 3
score for matching bases
-x, --mismatch <int>
default: -4
default: -5
score for mismatching bases
-g, --gap <int>
default: -8
default: -4
gap penalty (must be negative)
-t, --threads <int>
default: 1
Expand Down
12 changes: 8 additions & 4 deletions src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Window::~Window() {
void Window::add_layer(const char* sequence, uint32_t sequence_length,
const char* quality, uint32_t quality_length, uint32_t begin, uint32_t end) {

if (sequence_length == 0 || begin == end) {
return;
}

if (quality != nullptr && sequence_length != quality_length) {
fprintf(stderr, "[racon::Window::add_layer] error: "
"unequal quality size!\n");
Expand Down Expand Up @@ -87,14 +91,14 @@ bool Window::generate_consensus(std::shared_ptr<spoa::AlignmentEngine> alignment
spoa::Alignment alignment;
if (positions_[i].first < offset && positions_[i].second >
sequences_.front().second - offset) {
alignment = alignment_engine->align_sequence_with_graph(
sequences_[i].first, sequences_[i].second, graph);
alignment = alignment_engine->align(sequences_[i].first,
sequences_[i].second, graph);
} else {
std::vector<int32_t> mapping;
auto subgraph = graph->subgraph(positions_[i].first,
positions_[i].second, mapping);
alignment = alignment_engine->align_sequence_with_graph(
sequences_[i].first, sequences_[i].second, subgraph);
alignment = alignment_engine->align( sequences_[i].first,
sequences_[i].second, subgraph);
subgraph->update_alignment(alignment, mapping);
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/bioparser

0 comments on commit 2c5672e

Please sign in to comment.