Skip to content

Commit

Permalink
add file writing for script mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Oct 29, 2024
1 parent 7cdb202 commit 9417e51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prody/dynamics/anmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,9 @@ def runANMD(atoms, num_modes=2, max_rmsd=2., num_steps=2,
pdb = parsePDB(pdb_name_ext, compressed=False)

x = runANMD(pdb, num_modes, max_rmsd, num_steps, tol)

pdb_basename = os.path.basename(pdb_name)
for ens in x:
filename = pdb_basename + '_' + ens.getTitle().replace(' ', '_')
LOGGER.info('writing PDB file {0}'.format(filename))
writePDB(filename, ens)

0 comments on commit 9417e51

Please sign in to comment.