start simulation from specific frame from dcd file?
Posted: Mon Mar 18, 2019 11:59 am
Hi,
I am trying to start simulation from a specific frame from dcd file, something similar for pdb file would be:
where `pdb.getPositions(frame=start_frame)` specifies the positions for starting configuration.
However, sometimes pdb file could be quite large and uses lots of memory and I would like to start simulation from the corresponding dcd file which is much smaller. But it seems that `DCDFile` class does not have "getPositions()" method (according to https://simtk.org/api_docs/openmm/api4_ ... DFile.html). I wonder if it is possible to do that for dcd file as well?
Thank you!
I am trying to start simulation from a specific frame from dcd file, something similar for pdb file would be:
Code: Select all
pdb = PDBFile(start_pdb)
modeller = Modeller(pdb.topology, pdb.getPositions(frame=start_frame))
However, sometimes pdb file could be quite large and uses lots of memory and I would like to start simulation from the corresponding dcd file which is much smaller. But it seems that `DCDFile` class does not have "getPositions()" method (according to https://simtk.org/api_docs/openmm/api4_ ... DFile.html). I wonder if it is possible to do that for dcd file as well?
Thank you!