TCRdock
TCRdock copied to clipboard
`BiopythonDeprecationWarning` in `tcrdock/sequtil.py`
When running the python setup_for_alphafold.py
script, the alignment performed by tcrdock.sequtil.blosum_align
involves the deprecated Bio.SubsMat
module, triggering the following warning at the start of each run:
/home/cam/anaconda3/envs/tcrdock_test/lib/python3.8/site-packages/Bio/SubsMat/__init__.py:126: BiopythonDeprecationWarning: Bio.SubsMat has been deprecated, and we intend to remove it in a future release of Biopython. As an alternative, please consider using Bio.Align.substitution_matrices as a replacement, and contact the Biopython developers if you still need the Bio.SubsMat module.
tcrdock.sequtil.blosum_align uses Bio.pairwise2
, which in itself is deprecated. The solution would be to ask the tcrdock.sequtil.blosum_align maintainers to switch to the newer PairwiseAligner
in Bio.Align
.
Thanks for the heads up @mdehoon , I will update the PR accordingly. I'm guessing I don't see the deprecation warning for pairwise2
because this repo's environment has an older version of Bio
?