pestifer.logparsers.pdb2pqrlogparser module¶
PDB2PQR log parsing utility
- class pestifer.logparsers.pdb2pqrlogparser.PDB2PQRLogParser(basename='pdb2pqr-logparser')[source]¶
Bases:
LogParserA class for parsing PDB2PQR log files. This class is a subclass of
LogParserand provides methods for reading, updating, and dumping PDB2PQR log data.- Parameters:
basename (str) – The base name for the log parser. This is used to name the output log file.
- finalize()[source]¶
Finalize the PDB2PQR log parser by saving the metadata to a YAML file. This method writes the metadata to a YAML file with the base name of the log parser.
- process_section(bytes: str)[source]¶
Process a section of the PDB2PQR log file. This method identifies the type of section and processes it accordingly.
- process_summary(bytes: str)[source]¶
Process the summary section of the PDB2PQR log file. This method extracts information from the summary section and updates the metadata attribute with relevant data.
- Parameters:
bytes (bytes) – The bytes representing the summary section to be processed. This can be a string or bytes object containing the summary data.
- section_separator = '--------------------------------------------------------------------------------'¶
The separator used to identify sections in the PDB2PQR log file.