Skip to content

Commit

Permalink
Fixed CIF reader; v1.2.8 change 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranavkhade committed Dec 15, 2020
1 parent 77e78b2 commit b3e1495
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 76 deletions.
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

21 changes: 19 additions & 2 deletions packman/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,25 @@ def load_cif(filename):

AllModels =[]
for i in range(0,len(AllAtoms)):
#Discontinued hetatom
AllModels.append( Model(i+1,AllAtoms[i],AllResidues[i],AllChains[i],AllHetAtoms[i],AllHetMols[i]) )
#In case protein part is missing
try:
current_atoms = AllAtoms[i]
current_residues = AllResidues[i]
current_chains = AllChains[i]
except:
current_atoms = [None]
current_residues = [None]
current_chains = [None]

#In case the hetatoms are not present at all
try:
current_hetatms = AllHetAtoms[i]
current_hetmols = AllHetMols[i]
except:
current_hetatms = [None]
current_hetmols = [None]

AllModels.append( Model(i+1, current_atoms, current_residues, current_chains, current_hetatms, current_hetmols) )
for j in AllModels[i].get_chains(): j.set_parent(AllModels[i])


Expand Down
53 changes: 0 additions & 53 deletions requirements.txt

This file was deleted.

0 comments on commit b3e1495

Please sign in to comment.