IMP  2.4.0
The Integrative Modeling Platform
Classes | Functions
IMP.EMageFit.imp_general.io Namespace Reference

Utility functions to handle IO. More...

Detailed Description

Utility functions to handle IO.

Classes

class  ReferenceFrameToText
 Transform a IMP reference frame into parseable output. More...
 
class  Transformation3DToText
 Parseable output for a IMP Transformation3D. More...
 

Functions

def get_particles_from_points
 Simply creates IMP particles from a set of 2D points model - is the model to store the particles. More...
 
def imp_info
 Returns text with the time and information about the modules employed imp_modules is the set of modules whose infos are requested. More...
 
def read_reference_frames
 Read the reference frames contained in a solutions file from sampling n is the maximum number of ref frames to read. More...
 
def read_transforms
 Read a file of alg.Transformation3D. More...
 
def show_model_info
 Prints information about the representation Prints the number of components (hierarchies), its children, and information about the chains and rigid bodies. More...
 
def write_hierarchy_to_chimera
 Writes a hierarchy contained in h to the file fn. More...
 
def write_particles_as_text
 Writes a set of particles with coordinates to a file. More...
 
def write_particles_to_chimera
 Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR. More...
 
def write_pdb_for_reference_frames
 Read the PDB files, apply reference frames to them, and write a pdb. More...
 
def write_points_to_chimera
 Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR. More...
 
def write_transforms
 Write a file with the Transformation3Ds contained in Ts. More...
 
def write_vectors_in_multifit2_format
 writes a text files in the format required for point alignment in multifit2 More...
 
def write_vectors_to_chimera
 Writes vectors as points in chimera. More...
 
def write_xyzrs_to_chimera
 Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR. More...
 

Function Documentation

def IMP.EMageFit.imp_general.io.get_particles_from_points (   points,
  model 
)

Simply creates IMP particles from a set of 2D points model - is the model to store the particles.

Definition at line 29 of file io.py.

def IMP.EMageFit.imp_general.io.imp_info (   imp_modules = None)

Returns text with the time and information about the modules employed imp_modules is the set of modules whose infos are requested.

Definition at line 303 of file io.py.

def IMP.EMageFit.imp_general.io.read_reference_frames (   fn,
  n = 10 
)

Read the reference frames contained in a solutions file from sampling n is the maximum number of ref frames to read.

NOTE: Currently the function returns only the reference frames and discards the score, the first element of a row

Definition at line 236 of file io.py.

def IMP.EMageFit.imp_general.io.read_transforms (   fn,
  n = False 
)

Read a file of alg.Transformation3D.

The it is assumed that the transformations are the only thing contained in a line

Definition at line 208 of file io.py.

def IMP.EMageFit.imp_general.io.show_model_info (   model,
  assembly,
  components_rbs 
)

Prints information about the representation Prints the number of components (hierarchies), its children, and information about the chains and rigid bodies.

Definition at line 265 of file io.py.

def IMP.EMageFit.imp_general.io.write_hierarchy_to_chimera (   h,
  fn 
)

Writes a hierarchy contained in h to the file fn.

Definition at line 81 of file io.py.

def IMP.EMageFit.imp_general.io.write_particles_as_text (   leaves,
  fn_output 
)

Writes a set of particles with coordinates to a file.

Definition at line 68 of file io.py.

def IMP.EMageFit.imp_general.io.write_particles_to_chimera (   ps,
  fn,
  name = 'particles' 
)

Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR.

Definition at line 89 of file io.py.

def IMP.EMageFit.imp_general.io.write_pdb_for_reference_frames (   fn_pdbs,
  refs_texts,
  fn_output 
)

Read the PDB files, apply reference frames to them, and write a pdb.

Definition at line 252 of file io.py.

def IMP.EMageFit.imp_general.io.write_points_to_chimera (   points,
  radius,
  fn,
  name = 'points' 
)

Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR.

Definition at line 108 of file io.py.

def IMP.EMageFit.imp_general.io.write_transforms (   Ts,
  fn 
)

Write a file with the Transformation3Ds contained in Ts.

Definition at line 225 of file io.py.

def IMP.EMageFit.imp_general.io.write_vectors_in_multifit2_format (   vs,
  fn_output 
)

writes a text files in the format required for point alignment in multifit2

Definition at line 139 of file io.py.

def IMP.EMageFit.imp_general.io.write_vectors_to_chimera (   vs,
  radius,
  fn,
  name = 'vectors' 
)

Writes vectors as points in chimera.

Definition at line 123 of file io.py.

def IMP.EMageFit.imp_general.io.write_xyzrs_to_chimera (   xyzrs,
  fn 
)

Writes a bunch o particles to the file fn It is assumed that the particles can be decorated with XYZR.

Definition at line 100 of file io.py.