From e3eb7aba298bdf4baeb1856b09ec6bb9fb941d28 Mon Sep 17 00:00:00 2001 From: ChristopherBottomsOMRF <161774596+ChristopherBottomsOMRF@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:34:14 -0500 Subject: [PATCH] Update mmcif_parsing.py SCOPData is no longer provided in the most recent versions of Bio.Data, but PDBData provides the same function. --- src/alphafold/data/mmcif_parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alphafold/data/mmcif_parsing.py b/src/alphafold/data/mmcif_parsing.py index 1837516..baa52b2 100755 --- a/src/alphafold/data/mmcif_parsing.py +++ b/src/alphafold/data/mmcif_parsing.py @@ -20,7 +20,7 @@ from absl import logging from Bio import PDB -from Bio.Data import SCOPData +from Bio.Data import PDBData # Type aliases: ChainId = str @@ -256,7 +256,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