-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Description
Hi Joe,
I was wondering if I could get some pointers on input file? Tutorial files work fine but could get 1AKI from openmm tutorials to work.
I am using openmm/pdbfixer for the ligand prep. (version 8.2.0 and 1.11)
from openmm.app import *
from openmm import *
from openmm.unit import *
from sys import stdout
from openmm.app import PDBFile
from pdbfixer import PDBFixer
fixer = PDBFixer(filename='1AKI_clean.pdb')
fixer.findMissingResidues()
fixer.findNonstandardResidues()
fixer.replaceNonstandardResidues()
fixer.removeHeterogens(True)
fixer.findMissingAtoms()
fixer.addMissingAtoms()
fixer.addMissingHydrogens(7.0)
fixer.addSolvent(Vec3(5, 5, 5)*nanometer, positiveIon='Na+', ionicStrength=0.1*molar)
PDBFile.writeFile(fixer.topology, fixer.positions, open('output.pdb', 'w'))
pdb = PDBFile("output.pdb")However I get this error
ERROR: LoadError: KeyError: key "H2" not found
Stacktrace:
[1] getindex
@ ./dict.jl:477 [inlined]
[2] System(coord_file::String, force_field::MolecularForceField{Float64, Quantity{Float64, π πβ»ΒΉ, Unitful.FreeUnits{(g, molβ»ΒΉ), π πβ»ΒΉ, nothing}}, Quantity{Float64, π, Unitful.FreeUnits{(nm,), π, nothing}}, Quantity{Float64, πΒ² π πβ»ΒΉ πβ»Β², Unitful.FreeUnits{(kJ, molβ»ΒΉ), πΒ² π πβ»ΒΉ πβ»Β², nothing}}, Quantity{Float64, π πβ»ΒΉ πβ»Β², Unitful.FreeUnits{(kJ, nmβ»Β², molβ»ΒΉ), π πβ»ΒΉ πβ»Β², nothing}}}; boundary::Nothing, velocities::Nothing, loggers::Tuple{}, units::Bool, array_type::Type{Array}, dist_cutoff::Quantity{Float64, π, Unitful.FreeUnits{(nm,), π, nothing}}, dist_neighbors::Quantity{Float64, π, Unitful.FreeUnits{(nm,), π, nothing}}, center_coords::Bool, neighbor_finder_type::Nothing, data::Nothing, implicit_solvent::Nothing, kappa::Quantity{Float64, πβ»ΒΉ, Unitful.FreeUnits{(nmβ»ΒΉ,), πβ»ΒΉ, nothing}}, rename_terminal_res::Bool)
@ Molly ~/.julia/packages/Molly/86RTP/src/setup.jl:574
[3] top-level scopewhen trying to use the "output.csv"
using Molly
data_dir = joinpath(dirname(pathof(Molly)), "..", "data")
ff = MolecularForceField(
joinpath(data_dir, "force_fields", "ff99SBildn.xml"),
joinpath(data_dir, "force_fields", "tip3p_standard.xml"),
joinpath(data_dir, "force_fields", "his.xml"),
)
sys = System(
"output.pdb",
ff; rename_terminal_res=false
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels