Package Biskit :: Module PDBParserFactory :: Class PDBParserFactory
[hide private]
[frames] | no frames]

Class PDBParserFactory

source code

Provide the right PDBParser for different structure sources.

Static Methods [hide private]
PDBParser (child) getParser(source)
The method is static and should be called directly with the class:

Method Details [hide private]

getParser(source)
Static Method

source code 

The method is static and should be called directly with the class:
  p = ParserFactory.getParser( 'myfile.pdb' )
Parameters:
  • source (str | LocalPath | PDBModel) - structure source (PDB file, PDBModel, pickled model)
Returns: PDBParser (child)
PDBParser; Fetch a Parser for the source

Decorators:
Raises:
  • PDBError - if no compatible parser is found