IMP
2.0.1
The Integrative Modeling Platform
|
See IMP.rmf Overview for more information.
Classes | |
class | LoadLink |
class | SaveLink |
class | SaveOptimizerState |
Typedefs | |
typedef base::Object * | AssociationType |
typedef base::Pointer< LoadLink > | LoadLinkAssociationType |
typedef IMP::base::Vector < IMP::base::Pointer< LoadLink > > | LoadLinks |
typedef base::Pointer< SaveLink > | SaveLinkAssociationType |
typedef IMP::base::Vector < IMP::base::Pointer< SaveLink > > | SaveLinks |
Functions | |
template<class T > | |
T * | get_association (RMF::NodeConstHandle nh) |
std::string | get_data_path (std::string file_name) |
Return the full path to installed data. More... | |
std::string | get_example_path (std::string file_name) |
Return the path to installed example data for this module. More... | |
bool | get_has_linker (RMF::FileConstHandle nh, unsigned int id) |
LoadLinkAssociationType | get_load_linker (RMF::FileConstHandle nh, unsigned int id) |
SaveLinkAssociationType | get_save_linker (RMF::FileConstHandle nh, unsigned int id) |
void | load_frame (RMF::FileConstHandle file, int frame) |
void | save_frame (RMF::FileHandle file, int frame, std::string name="frame") |
void | set_association (RMF::NodeConstHandle nh, base::Object *o, bool overwrite=false) |
void | set_linker (RMF::FileConstHandle nh, unsigned int id, SaveLinkAssociationType l) |
void | set_linker (RMF::FileConstHandle nh, unsigned int id, LoadLinkAssociationType l) |
Associations | |
RMF supports tracking associations between an RMF file an native objects. In the | |
RMF::NodeConstHandle | get_node_from_association (RMF::FileConstHandle nh, base::Object *oi) |
RMF::NodeHandle | get_node_from_association (RMF::FileHandle nh, base::Object *oi) |
bool | get_has_associated_node (RMF::FileConstHandle nh, base::Object *oi) |
Hierarchy I/O | |
Hierarchy I/O writes IMP::atom::Hierarchy information along with the information contained in the following decorators
| |
void | add_hierarchies (RMF::FileHandle fh, const atom::Hierarchies &hs) |
void | add_hierarchies (RMF::NodeHandle fh, const atom::Hierarchies &hs) |
void | add_hierarchy (RMF::FileHandle fh, atom::Hierarchy hs) |
atom::Hierarchies | create_hierarchies (RMF::FileConstHandle fh, Model *m) |
void | link_hierarchies (RMF::FileConstHandle fh, const atom::Hierarchies &hs) |
void | set_save_forces (RMF::FileHandle fh, bool tf) |
Geometry I/O | |
The geometry I/O support currently handles geometry composed of Other types can be supported when requested. Be aware, many more complex geometry types are automatically decomposed into the above types and so, more or less, supported. | |
void | add_geometries (RMF::FileHandle file, const display::GeometriesTemp &r) |
void | add_geometries (RMF::NodeHandle parent, const display::GeometriesTemp &r) |
void | add_static_geometries (RMF::FileHandle parent, const display::GeometriesTemp &r) |
display::Geometries | create_geometries (RMF::FileConstHandle parent) |
void | link_geometries (RMF::FileConstHandle parent, const display::GeometriesTemp &r) |
Particle I/O | |
Arbitrary (non IMP::atom::Hierarchy) particles can be written to the file and read back from them. All non-IMP::Object attributes are supported. Note that currently particles must be added so that any particles that are stored in a given particles attributes are added to the file first. The data is stored in a category named IMP. | |
void | add_particles (RMF::FileHandle fh, const ParticlesTemp &hs) |
void | add_particles (RMF::NodeHandle fh, const ParticlesTemp &hs) |
void | add_particle (RMF::FileHandle fh, Particle *hs) |
ParticlesTemp | create_particles (RMF::FileConstHandle fh, Model *m) |
void | link_particles (RMF::FileConstHandle fh, const ParticlesTemp &hs) |
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 | add_restraints (RMF::FileHandle fh, const RestraintsTemp &hs) |
void | add_restraints (RMF::NodeHandle fh, const RestraintsTemp &hs) |
void | add_restraint (RMF::FileHandle fh, Restraint *hs) |
Restraints | create_restraints (RMF::FileConstHandle fh, Model *m) |
void | link_restraints (RMF::FileConstHandle fh, const Restraints &hs) |
void | set_maximum_number_of_terms (RMF::FileHandle fh, unsigned int num) |
typedef IMP::base::Vector<IMP::base::Pointer< LoadLink > > IMP::rmf::LoadLinks |
typedef IMP::base::Vector<IMP::base::Pointer< SaveLink > > IMP::rmf::SaveLinks |
void IMP::rmf::add_geometries | ( | RMF::FileHandle | file, |
const display::GeometriesTemp & | r | ||
) |
Add the geometry to the file
void IMP::rmf::add_geometries | ( | RMF::NodeHandle | parent, |
const display::GeometriesTemp & | r | ||
) |
Add them to a given parent node.
void IMP::rmf::add_hierarchies | ( | RMF::FileHandle | fh, |
const atom::Hierarchies & | hs | ||
) |
Add objects to the file.
void IMP::rmf::add_hierarchies | ( | RMF::NodeHandle | fh, |
const atom::Hierarchies & | hs | ||
) |
Add objects to the file under the specified node.
void IMP::rmf::add_hierarchy | ( | RMF::FileHandle | fh, |
atom::Hierarchy | hs | ||
) |
Add a single Hierarchy object to the RMF file.
void IMP::rmf::add_particle | ( | RMF::FileHandle | fh, |
Particle * | hs | ||
) |
Add a single Particle object to the RMF file.
void IMP::rmf::add_particles | ( | RMF::FileHandle | fh, |
const ParticlesTemp & | hs | ||
) |
Add objects to the file.
void IMP::rmf::add_particles | ( | RMF::NodeHandle | fh, |
const ParticlesTemp & | hs | ||
) |
Add objects to the file under the specified node.
void IMP::rmf::add_restraint | ( | RMF::FileHandle | fh, |
Restraint * | hs | ||
) |
Add a single Restraint object to the RMF file.
void IMP::rmf::add_restraints | ( | RMF::FileHandle | fh, |
const RestraintsTemp & | hs | ||
) |
Add objects to the file.
void IMP::rmf::add_restraints | ( | RMF::NodeHandle | fh, |
const RestraintsTemp & | hs | ||
) |
Add objects to the file under the specified node.
void IMP::rmf::add_static_geometries | ( | RMF::FileHandle | parent, |
const display::GeometriesTemp & | r | ||
) |
Add the following geometry, assuming they do not move between frames. This can be space saving compared to resaving the constant position each frame.
display::Geometries IMP::rmf::create_geometries | ( | RMF::FileConstHandle | parent | ) |
Create geometry objects for the geometry nodes found in the file.
atom::Hierarchies IMP::rmf::create_hierarchies | ( | RMF::FileConstHandle | fh, |
Model * | m | ||
) |
Create Hierarchy objects from the RMF file.
ParticlesTemp IMP::rmf::create_particles | ( | RMF::FileConstHandle | fh, |
Model * | m | ||
) |
Create Particle objects from the RMF file.
Restraints IMP::rmf::create_restraints | ( | RMF::FileConstHandle | fh, |
Model * | m | ||
) |
Create Restraint objects from the RMF file.
std::string IMP::rmf::get_data_path | ( | std::string | file_name | ) |
Each module has its own data directory, so be sure to use the version of this function in the correct module. To read the data file "data_library" that was placed in the data
directory of module "mymodule", do something like
This will ensure that the code works when IMP
is installed or used via the tools/imppy.sh
script.
std::string IMP::rmf::get_example_path | ( | std::string | file_name | ) |
Each module has its own example directory, so be sure to use the version of this function in the correct module. For example to read the file example_protein.pdb
located in the examples
directory of the IMP::atom module, do
This will ensure that the code works when IMP
is installed or used via the tools/imppy.sh
script.
void IMP::rmf::link_geometries | ( | RMF::FileConstHandle | parent, |
const display::GeometriesTemp & | r | ||
) |
Link the passed geometry objects to corresponding ones in the file. They must be in the same order, we don't search around for matches.
void IMP::rmf::link_hierarchies | ( | RMF::FileConstHandle | fh, |
const atom::Hierarchies & | hs | ||
) |
Link Hierarchy objects with the RMF file, possibly overwriting an existing link for loading from the file. This does not alter the object, but will affect the behaviour of functions like load_frame() and save_frame(). See Linking hierarchies for more information and intricacies
void IMP::rmf::link_particles | ( | RMF::FileConstHandle | fh, |
const ParticlesTemp & | hs | ||
) |
Link Particle objects with the RMF file, possibly overwriting an existing link for loading from the file. This does not alter the object, but will affect the behaviour of functions like load_frame() and save_frame().
void IMP::rmf::link_restraints | ( | RMF::FileConstHandle | fh, |
const Restraints & | hs | ||
) |
Link Restraint objects with the RMF file, possibly overwriting an existing link for loading from the file. This does not alter the object, but will affect the behaviour of functions like load_frame() and save_frame().
void IMP::rmf::load_frame | ( | RMF::FileConstHandle | file, |
int | frame | ||
) |
Load the specified frame into the state of the associated IMP::base::Objects with the RMF file.
The current frame is left as the passed frame number.
void IMP::rmf::save_frame | ( | RMF::FileHandle | file, |
int | frame, | ||
std::string | name = "frame" |
||
) |
Save the current state of the objects linked to the RMF file as the frameth frame.
The current frame is left as the passed frame number.
void IMP::rmf::set_maximum_number_of_terms | ( | RMF::FileHandle | fh, |
unsigned int | num | ||
) |
Certain restraint are made from a really large number of terms (eg IMP::core::DopePairScore based ones). Tracking and displaying all those terms can be very time consuming. If the number of terms is larger than the maximum, the terms are not displayed. By default this is
void IMP::rmf::set_save_forces | ( | RMF::FileHandle | fh, |
bool | tf | ||
) |
Set whether the forces (and torques) are saved to the file.