Commit 61127ce0 by peastman

Merge pull request #124 from peastman/unused

Removed some unused code
parents 14e64d7d 59e3c3cc
...@@ -390,7 +390,6 @@ class PDBFixer(object): ...@@ -390,7 +390,6 @@ class PDBFixer(object):
# Create the new residue and add existing heavy atoms. # Create the new residue and add existing heavy atoms.
newResidue = newTopology.addResidue(residue.name, newChain, residue.id) newResidue = newTopology.addResidue(residue.name, newChain, residue.id)
addResiduesAfter = (residue == chainResidues[-1] and (chain.index, indexInChain+1) in self.missingResidues)
for atom in residue.atoms(): for atom in residue.atoms():
if not heavyAtomsOnly or (atom.element is not None and atom.element != hydrogen): if not heavyAtomsOnly or (atom.element is not None and atom.element != hydrogen):
if atom.name == 'OXT' and (chain.index, indexInChain+1) in self.missingResidues: if atom.name == 'OXT' and (chain.index, indexInChain+1) in self.missingResidues:
...@@ -737,11 +736,6 @@ class PDBFixer(object): ...@@ -737,11 +736,6 @@ class PDBFixer(object):
>>> fixer.addMissingHydrogens(7.0) >>> fixer.addMissingHydrogens(7.0)
""" """
# First find residues based on our table of standard substitutions.
index_to_old_name = dict((r.index, r.name) for r in self.topology.residues())
index_to_new_residues = {}
# Retrieve all residues that match the specified chain_id. # Retrieve all residues that match the specified chain_id.
# NOTE: Multiple chains may have the same chainid, but must have unique resSeq entries. # NOTE: Multiple chains may have the same chainid, but must have unique resSeq entries.
resSeq_to_residue = dict() # resSeq_to_residue[resid] is the residue in the requested chain corresponding to residue identifier 'resid' resSeq_to_residue = dict() # resSeq_to_residue[resid] is the residue in the requested chain corresponding to residue identifier 'resid'
...@@ -900,7 +894,6 @@ class PDBFixer(object): ...@@ -900,7 +894,6 @@ class PDBFixer(object):
# Create a System for energy minimizing it. # Create a System for energy minimizing it.
res = list(newTopology.residues())
forcefield = self._createForceField(newTopology, False) forcefield = self._createForceField(newTopology, False)
system = forcefield.createSystem(newTopology) system = forcefield.createSystem(newTopology)
......
...@@ -13,10 +13,8 @@ from .pdbfixer import PDBFixer, proteinResidues, dnaResidues, rnaResidues, _gues ...@@ -13,10 +13,8 @@ from .pdbfixer import PDBFixer, proteinResidues, dnaResidues, rnaResidues, _gues
from . import uiserver from . import uiserver
try: try:
from urllib.request import urlopen
from io import StringIO from io import StringIO
except: except:
from urllib2 import urlopen
from cStringIO import StringIO from cStringIO import StringIO
def loadHtmlFile(name): def loadHtmlFile(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment