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
3
Example 1
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