Skip to content

Commit

Permalink
r555: fixed an assertion failure
Browse files Browse the repository at this point in the history
Resolved #78
  • Loading branch information
lh3 committed Oct 21, 2022
1 parent 8619249 commit 8286c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gchain1.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static int32_t bridge_gwfa(bridge_aux_t *aux, int32_t kmer_size, int32_t gdp_max

static void bridge_lchains(mg_gchains_t *gc, bridge_aux_t *aux, int32_t kmer_size, int32_t gdp_max_ed, const mg_lchain_t *l0, const mg_lchain_t *l1, const mg128_t *a)
{
if (!l1->inner_pre) { // bridging two segments
if (l1->v != l0->v) { // bridging two segments
int32_t ed = -1;
if (aux->n_seg > 1 || !bridge_gwfa(aux, kmer_size, gdp_max_ed, l0, l1, &ed))
bridge_shortk(aux, l0, l1);
Expand All @@ -388,7 +388,6 @@ static void bridge_lchains(mg_gchains_t *gc, bridge_aux_t *aux, int32_t kmer_siz
} else { // on one segment
int32_t k;
mg_llchain_t *t = &aux->llc[aux->n_llc - 1];
assert(l0->v == l1->v);
for (k = 0; k < l1->cnt; ++k) { // FIXME: this part is made redundant by resolve_overlap()
const mg128_t *ak = &a[l1->off + k];
if ((int32_t)ak->x > l0->re && (int32_t)ak->y > l0->qe)
Expand Down
2 changes: 1 addition & 1 deletion minigraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdint.h>
#include "gfa.h"

#define MG_VERSION "0.19-r551"
#define MG_VERSION "0.19-r555-dirty"

#define MG_M_SPLICE 0x10
#define MG_M_SR 0x20
Expand Down

0 comments on commit 8286c8e

Please sign in to comment.