TCRdock icon indicating copy to clipboard operation
TCRdock copied to clipboard

`BiopythonDeprecationWarning` in `tcrdock/sequtil.py`

Open kamurani opened this issue 10 months ago • 2 comments

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.

kamurani avatar Apr 12 '24 04:04 kamurani

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.

mdehoon avatar Apr 12 '24 06:04 mdehoon

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?

kamurani avatar Apr 14 '24 23:04 kamurani