Package schrodinger :: Package structutils :: Module io :: Class MultiFileReader
[hide private]
[frames] | no frames]

Class MultiFileReader


Reads structures from multiple files.
Uses StructureReader

Options:
  files - list of files to read
 
  ignore_errors -   Whether to skip bad SD structures 
                    (default False)
  
  skip_receptors -  Whether to skip the first structures of PV files
                    (default False)

  allow_smiles -    Whether to allow input SMILES files. Iiterators will
                    return SmilesStructure objects for SMILES files.
                    (default False)


Usage:
  reader = MultiFileReader(input_files)
  for st in reader:
      <process the structure>


Prints warnings if any structure from SD file was skipped.

Raises Exception if structure from other formatted file count not be read.

Instance Methods [hide private]
 
__init__(self, files, ignore_errors=False, skip_receptors=False, allow_smiles=False)
 
_nextFile(self)
 
_endOfFile(self)
 
__iter__(self)
 
next(self)
Return the next Structure object