diff --git a/prody/dynamics/anmd.py b/prody/dynamics/anmd.py index 0d87ceec9..83fb1470c 100755 --- a/prody/dynamics/anmd.py +++ b/prody/dynamics/anmd.py @@ -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)