propka.output
Output
Output routines.
Functions
|
Get the order of a bond between two atoms. |
|
Returns string with the charge profile section of the results. |
|
Returns string with determinant section of results. |
Create the Determinant header. |
|
|
Returns string with the folding profile section of the results. |
Create the header. |
|
Create the 'references' part of output file. |
|
Create the summary header. |
|
|
Returns string with summary section of the results. |
Draw the line-Johnny Cash would have been proud-or actually Aerosmith! |
|
Create the 'warning' part of the output file. |
|
|
Print out an interaction map named 'name' of the groups in 'list' based on the function 'interaction' |
|
Open file or file-like stream for writing. |
Print header section of output. |
|
|
Prints out pKa section of results. |
|
Prints all resulting output from determinants and down. |
|
Write out MOL2 file for atoms. |
|
Write out PDB file for atoms. |
|
Write PDB conformation to a file. |
|
Write the pKa-file based on the given protein. |
- propka.output.get_bond_order(atom1, atom2)[source]
Get the order of a bond between two atoms.
- Parameters:
atom1 – first atom in bond
atom2 – second atom in bond
- Returns:
string with bond type
- propka.output.get_charge_profile_section(protein: MolecularContainer, conformation: str = 'AVR')[source]
Returns string with the charge profile section of the results.
- Parameters:
protein – protein object
conformation – specific conformation
_ – options object
- Returns:
string
- propka.output.get_determinant_section(protein: MolecularContainer, conformation: str, parameters: Parameters)[source]
Returns string with determinant section of results.
- Parameters:
protein – protein object
conformation – specific conformation
parameters – parameters
- Returns:
string
- propka.output.get_folding_profile_section(protein: MolecularContainer, conformation: str = 'AVR', direction: str = 'folding', reference: str = 'neutral', window: Tuple[float, float, float] = (0.0, 14.0, 1.0))[source]
Returns string with the folding profile section of the results.
- Parameters:
protein – protein object
conformation – specific conformation
direction – ‘folding’ or other
reference – reference state
window – pH window [min, max, step]
- Returns:
string
- propka.output.get_references_header()[source]
Create the ‘references’ part of output file.
- Returns:
string
- propka.output.get_summary_section(protein: MolecularContainer, conformation: str, parameters: Parameters)[source]
Returns string with summary section of the results.
- Parameters:
protein – protein object
conformation – specific conformation
parameters – parameters
- Returns:
string
- propka.output.get_the_line()[source]
Draw the line-Johnny Cash would have been proud-or actually Aerosmith!
NOTE - Johnny Cash walked the line.
- Returns:
string
- propka.output.get_warning_header()[source]
Create the ‘warning’ part of the output file.
TODO - this function is essentially a no-op.
- Returns:
string
- propka.output.make_interaction_map(name, list_, interaction)[source]
Print out an interaction map named ‘name’ of the groups in ‘list’ based on the function ‘interaction’
- Parameters:
list – list of groups
interaction – some sort of function
- Returns:
string
- propka.output.open_file_for_writing(input_file: IO[str] | PathLike | str) IO[str] [source]
Open file or file-like stream for writing.
TODO - convert this to a context manager.
- Parameters:
input_file – path to file or file-like object. If file-like object,
mode. (then will attempt to get file) –
- propka.output.print_pka_section(protein: MolecularContainer, conformation: str, parameters: Parameters)[source]
Prints out pKa section of results.
- Parameters:
protein – protein object
conformation – specific conformation
parameters – parameters
- propka.output.print_result(protein: MolecularContainer, conformation: str, parameters: Parameters)[source]
Prints all resulting output from determinants and down.
- Parameters:
protein – protein object
conformation – specific conformation
parameters – parameters
- propka.output.write_mol2_for_atoms(atoms, filename)[source]
Write out MOL2 file for atoms.
- Parameters:
atoms – list of atoms
filename – name of file
- propka.output.write_pdb_for_atoms(atoms: List[Atom], filename: PathLike | str, make_conect_section=False)[source]
Write out PDB file for atoms.
- Parameters:
atoms – list of atoms
filename – name of file
make_conect_section – generate a CONECT PDB section
- propka.output.write_pdb_for_conformation(conformation: ConformationContainer, filename: PathLike | str)[source]
Write PDB conformation to a file.
- Parameters:
conformation – conformation container
filename – filename for output
- propka.output.write_pka(protein: MolecularContainer, parameters: Parameters, filename: PathLike | str | None = None, conformation: str = '1A', reference: str = 'neutral', *, verbose: bool = True)[source]
Write the pKa-file based on the given protein.
- Parameters:
protein – protein object
filename – output file name
conformation – specific conformation
reference – reference state
verbose – Boolean flag for verbosity