Parser#

Constructor#

Parser(filename[, mode])

Base class for structure file parsers.

Attributes#

Parser.get(key, default)

Retrieve a value from the internal data using a given key.

Parser.keys()

List keys available in internal dictionary.

Parser.values()

List values available in internal dictionary.

Parser.items()

List items available in internal dictionary.

Parser.parse_input(lines)

Parse a list of lines from a file and convert the data into a dictionary.

Supported formats#

PDBParser(filename[, mode])

Convert PDB file data into a dictionary representation [Ra4c9f6a816d0-1].

MMCIFParser(filename[, mode])

Convert MMCIF file data into a dictionary representation.