abpoa_add_graph_sequence assert(0) on zero-length input → Python process aborts
Hello ! I got following error when I'm trying to use abPOA algorithm.
When any sequence in the input list has length 0, abPOA prints
[abpoa_add_graph_sequence] seq_l: 0 start: 0 end: 0.
and then immediately causes the whole Python interpreter to abort.
From the user side the shell prompt simply disappears; no Python exception is raised and no partial result is returned.
Here is the Minimal reproducible example:
import pyabpoa as pa
seqs = ['', 'ACG', '', '','', 'ATCG'] # first sequence is empty
aligner = pa.msa_aligner()
aligner.msa(seqs, out_cons=False, out_msa=True) # <-- process dies here
Then the console output stops after the debug line above.
Hi, this happens when the first input seq is empty. The latest commit fixed this error. Please re-install pyabpoa from source: https://github.com/yangao07/abPOA/tree/main/python#install-pyabpoa-from-source