44 mp1t.show_graphviz(open(
"hierarchy.dot",
"w"))
47 mp1t.show_with_altgraph()
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
Hierarchy get_residue(Hierarchy mhd, unsigned int index)
Get the residue with the specified index.
void read_pdb(TextInput input, int model, Hierarchy h)
Class for storing model, its restraints, constraints, and particles.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
Gather all the molecular particles of a certain level in the hierarchy.
void destroy(Hierarchy d)
Delete the Hierarchy.
Basic functionality that is expected to be used by a wide variety of IMP users.
Hierarchy create_simplified_along_backbone(Chain input, const IntRanges &residue_segments, bool keep_detailed=false)
IMP::core::RigidBody create_rigid_body(Hierarchy h)
Class to handle individual model particles.
Store info for a chain of a protein.
Functionality for loading, creating, manipulating and scoring atomic structures.