I'm using the wrapped version of smith-waterman from skbio (0.5.4), but i have an unspected error:
_, score, _ = local_pairwise_align_ssw(protein_list[idx1], protein_list[idx2], substitution_matrix = blosum62)
File "/anaconda3/lib/python3.6/site-packages/skbio/alignment/_pairwise.py", line 732, in local_pairwise_align_ssw
validate=False)
File "/anaconda3/lib/python3.6/site-packages/skbio/alignment /_tabular_msa.py", line 785, in __init__
reset_index=minter is None and index is None)
File "/anaconda3/lib/python3.6/site-packages/skbio/alignment /_tabular_msa.py", line 1956, in extend
self._assert_valid_sequences(sequences)
File "/anaconda3/lib/python3.6/site-packages/skbio/alignment /_tabular_msa.py", line 2035, in _assert_valid_sequences
% (length, expected_length))
ValueError: Each sequence's length must match the number of positions in the MSA: 232 != 231
The weird thing is that sometimes the error appears with protein pair 0-10, and others with 0-116. So, i don't believe it's an error from protein fromat.