IMP  2.0.0
The Integrative Modeling Platform
restraint_io.h File Reference

Handle read/write of Model data from/to files. More...

#include <IMP/rmf/rmf_config.h>
#include "link_macros.h"
#include <IMP/base/object_macros.h>
#include <IMP/Restraint.h>
#include <IMP/restraint_macros.h>
+ Include dependency graph for restraint_io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IMP
 All IMP::kernel code is brought into the IMP namespace.
 
namespace  IMP::rmf
 See IMP.rmf Overview for more information.
 

Restraint I/O

Restraints are written as am RMF::FEATURE node with subnodes for the decomposed restraints (Restraint::create_current_decompositon()). The Restraints::get_last_score() value is what is saved to the file, so make sure that the restraints have been evaluated before saving a frame.

Any particles returnd by Restraint::get_input_particles() that are also linked in the RMF file will be included in the RMF file as inputs for the Restraint. This allows external software like e.g., Chimera to associate these restrains with a certain set of particles.

void IMP::rmf::add_restraints (RMF::FileHandle fh, const RestraintsTemp &hs)
 
void IMP::rmf::add_restraints (RMF::NodeHandle fh, const RestraintsTemp &hs)
 
void IMP::rmf::add_restraint (RMF::FileHandle fh, Restraint *hs)
 
Restraints IMP::rmf::create_restraints (RMF::FileConstHandle fh, Model *m)
 
void IMP::rmf::link_restraints (RMF::FileConstHandle fh, const Restraints &hs)
 
void IMP::rmf::set_maximum_number_of_terms (RMF::FileHandle fh, unsigned int num)
 

Detailed Description

Copyright 2007-2013 IMP Inventors. All rights reserved.

Definition in file restraint_io.h.