Skip to content

Commit 9334efb

Browse files
committed
fix exit when first input seq is empty
1 parent 6f681ff commit 9334efb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/abpoa_graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ void abpoa_update_node_n_span_reads(abpoa_graph_t *abg, int src_id, int sink_id,
571571
}
572572

573573
void abpoa_add_graph_sequence(abpoa_graph_t *abg, abpoa_para_t *abpt, uint8_t *seq, int *weight, int seq_l, int *qpos_to_node_id, int start, int end, uint8_t add_read_id, uint8_t add_read_weight, int read_id, int read_ids_n, int tot_read_n) {
574+
if (seq_l <= 0) return;
574575
if (start >= seq_l || end <= start) err_fatal(__func__, "seq_l: %d\tstart: %d\tend: %d.", seq_l, start, end);
575576
if (end > seq_l) end = seq_l;
576577

0 commit comments

Comments
 (0)