Skip to content

Assertion fails when aligning empty sequence #369

@thomastzhou

Description

@thomastzhou

Error: When aligning an empty sequence, an assertion fails and the metagraph process crashes. This is problematic for metagraph server_query processes, as aligning with client.align("") to a public graph API will crash the underlying server process.

The following assertion error is given:

Assertion failed: (config_.get_row(query_.front())[query_.front()] == partial_sum_[1]), function ExactSeeder, file aligner_seeder_methods.cpp, line 33.
[1]    7984 abort      ./metagraph align --json -i t100.dbg test_align.fq

Steps to reproduce with CLI:

  1. Generate a FastQ file representing an empty sequence
@TestSeq

  1. ./metagraph align --json -i <graph> <fastq_file>

Steps to reproduce with python API:

  1. ./metagraph server_query -i <graph> -a <anno> --port 5555
  2. In python:
from metagraph.client import *

graph = GraphClientJson('127.0.0.1', 5555, api_path='')
graph.align("")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions