Skip to content

Commit

Permalink
update biotite function
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahalamdari committed Sep 30, 2024
1 parent f696cfc commit d543164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evodiff/conditional_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import biotite.structure
from biotite.structure.io import pdbx, pdb
from biotite.structure.residues import get_residues
from biotite.structure import filter_backbone
from biotite.structure import filter_peptide_backbone
from biotite.structure import get_chains
from biotite.sequence import ProteinSequence
import itertools
Expand Down Expand Up @@ -41,7 +41,7 @@ def load_structure(fpath, chain=None):
with open(fpath) as fin:
pdbf = pdb.PDBFile.read(fin)
structure = pdb.get_structure(pdbf, model=1)
bbmask = filter_backbone(structure)
bbmask = filter_peptide_backbone(structure)
structure = structure[bbmask]
all_chains = get_chains(structure)
if len(all_chains) == 0:
Expand Down

0 comments on commit d543164

Please sign in to comment.