IMP  2.3.1
The Integrative Modeling Platform
mol2.h File Reference

Functions to read mol2s. More...

#include <IMP/atom/atom_config.h>
#include "Hierarchy.h"
#include "atom_macros.h"
#include "internal/mol2.h"
#include <IMP/kernel/Model.h>
#include <IMP/kernel/Particle.h>
#include <IMP/base/file.h>
+ Include dependency graph for mol2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IMP::atom::AllMol2Selector
 Read all atoms. More...
 
class  IMP::atom::Mol2Selector
 A base class for choosing which Mol2 atoms to read. More...
 
class  IMP::atom::NonHydrogenMol2Selector
 Defines a selector that will pick only non-hydrogen atoms. More...
 

Namespaces

 IMP
 Synonym for IMP::kernel.
 
 IMP::atom
 Functionality for loading, creating, manipulating and scoring atomic structures.
 

Mol2 IO

IMP can also read and write Mol2 files. As with read_pdb(), selector objects are used to determine which atoms are read.

The read function produces a hierarchy containing the molecule. The write hierarchy writes all the Residue types in the hierarchy to the file.

Hierarchy IMP::atom::read_mol2 (base::TextInput mol2_file, kernel::Model *model, Mol2Selector *mol2sel=nullptr)
 Create a hierarchy from a Mol2 file. More...
 
void IMP::atom::write_mol2 (Hierarchy rhd, base::TextOutput file_name)
 Write a ligand hierarchy as a mol2 file. More...
 

Detailed Description

Functions to read mol2s.

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file mol2.h.