p3d.parser.Parser

Here are the examples of the python api p3d.parser.Parser taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: p3d Source File: protein.py
Function: init_parser
    def init_parser(self):
        info = {}

        info['aliases'] = {
            'backbone': 'bkb',
            'residue id': 'resid',
            'residue name': 'resname',
            'atom type': 'atype',
        }

        info['functions'] = {}
        info['functions']['within {radius: float} of {centre: set}'] = self.collectSphereAtoms
        info['functions']['first residue of chain {chain: value of chain}'] = self.firstResidueOfChain
        info['functions']['last residue of chain {chain: value of chain}'] = self.lastResidueOfChain

        info['caseSensitive'] = set(['chain'])

        self.parser = p3d.parser.Parser(self.hash, info)
        return