Skip to content

Commit

Permalink
Cap with glycine in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Aug 26, 2024
1 parent 6391120 commit 870d2df
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pdbfixer/tests/test_charge_and_solvate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@ def test_charge_and_solvate(pdbCode, soluteCharge):
chainLengths = [len([*chain.residues()]) for chain in fixer.topology.chains()]
for chainidx, residx in list(fixer.missingResidues):
if residx == 0:
fixer.missingResidues[chainidx, residx] = []
fixer.missingResidues[chainidx, residx] = ["GLY"]
# fixer.missingResidues[chainidx, residx] = []
# fixer.missingResidues[chainidx, residx] = ["ACE"]
elif residx == chainLengths[chainidx]:
fixer.missingResidues[chainidx, residx] = []
fixer.missingResidues[chainidx, residx] = ["GLY"]
# fixer.missingResidues[chainidx, residx] = []
# fixer.missingResidues[chainidx, residx] = ["NME"]

fixer.findNonstandardResidues()
fixer.replaceNonstandardResidues()
fixer.findMissingAtoms()
fixer.addMissingAtoms()

fixer.addMissingHydrogens(pH=7.4)

fixer.addSolvent(
padding=2.0 * openmm.unit.nanometer,
ionicStrength=0.1 * openmm.unit.molar,
Expand Down

0 comments on commit 870d2df

Please sign in to comment.