Re: [IMP-users] how to integrate RMF with IMP.restrainer?
To: Help and discussion for users of IMP <>
Subject: Re: [IMP-users] how to integrate RMF with IMP.restrainer?
From: Jan Kosinski <>
Date: Tue, 25 Jun 2013 19:02:38 +0200
Reply-to: Help and discussion for users of IMP <>
Thanks!
To answer your question about IMP version:
I use dev versions pulled from git repo on last Friday or so.
For imp:
$ git describe develop
2.0.0-518-gd3125ab
git rev-list HEAD --pretty | head
commit d3125ab77d22949e1b83b2f100d2936c7d70b088
Author: Daniel Russel "><>
Date: Thu Jun 20 17:05:56 2013 -0700
For RMF:
$ git rev-list HEAD --pretty | head
commit c444224ffb262a86b33edb2eaa4432971f7b0ba7
Author: Daniel Russel "><>
Date: Tue Jun 4 22:19:33 2013 -0700
On Jun 25, 2013, at 9:15 AM, Jan Kosinski <">>
wrote:
Dear all,
What are the methods to log the simulation frames to RMF
format instead of old Chimera style?
I have managed to integrate RMF with IMP.restrainer but
not everything works. It seems to work with restraints
like ExcludedVolume, Distance or EM but not Y2H or
PullDown - virtually all that internally are translated to
connectivity restraint make a script crashing. For example
if I modify the
restrainer/nup84_complex_in_bead_representation.py to:
import IMP
import IMP.restrainer
###=======================================================================###
# At this point all data from XML files have been
placed into the model.
# Now it is possible to perform various operations on
the IMP model.
###=======================================================================###
# Save the initial state in Chimera format
# restrainer.log.write('initial.py')
# Perform optimization
restrainer.optimize()
# Save the optimized state in Chimera format
# restrainer.log.write('optimized.py')
(note added lines and old-style Chimera stuff commented
out)
I get the following error:
Traceback (most recent call last):
File "nup84_complex_in_bead_representation.py", line
50, in <module>
IMP.rmf.save_frame(rmf, 0)
File
"/home/user/software/imp_dev/lib/IMP/rmf/__init__.py",
line 875, in save_frame
return _IMP_rmf.save_frame(*args)
_IMP_base.IOException: UsageError: "Cannot write sentry
value to an RMF file." processing decorator of type
Score
WARNING No frames were saved to file
"RestraintSaveLink0" even though objects were added.
If however I change <Y2H> node to <Distance>
in input/nup84_restraint.xml everything runs correctly and
I can enjoy a working RMF file.
Would you have any suggestions how to make RMF logging
working properly?
BTW. I am using the current dev version of IMP and RMF.