Skip to content

Commit

Permalink
v2.3.6 - Fix BioPython deprecated SCOPData import & Fix NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Dec 28, 2023
1 parent 2febbbd commit 9c3ec6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions alphafold/data/mmcif_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

from absl import logging
from Bio import PDB
from Bio.Data import SCOPData
try:
from Bio.Data import PDBData
except ImportError:
from Bio.Data import SCOPData as PDBData

# Type aliases:
ChainId = str
Expand Down Expand Up @@ -258,7 +261,7 @@ def parse(*,
author_chain = mmcif_to_author_chain_id[chain_id]
seq = []
for monomer in seq_info:
code = SCOPData.protein_letters_3to1.get(monomer.id, 'X')
code = PDBData.protein_letters_3to1.get(monomer.id, 'X')
seq.append(code if len(code) == 1 else 'X')
seq = ''.join(seq)
author_chain_to_sequence[author_chain] = seq
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='alphafold-colabfold',
version='2.3.5',
version='2.3.6',
long_description_content_type='text/markdown',
description='An implementation of the inference pipeline of AlphaFold v2.3.1. '
'This is a completely new model that was entered as AlphaFold2 in CASP14 '
Expand Down

0 comments on commit 9c3ec6e

Please sign in to comment.