Fix complicated string formatting.
PEP8 be damned! https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds Addresses https://github.com/jensengroup/propka-3.1/pull/40#discussion_r432302025
This commit is contained in:
125
propka/output.py
125
propka/output.py
@@ -319,40 +319,26 @@ def get_propka_header():
|
|||||||
string
|
string
|
||||||
"""
|
"""
|
||||||
today = date.today()
|
today = date.today()
|
||||||
str_ = "propka3.1 {0:>93s}\n".format(today)
|
str_ = "propka3.1 {0!s:>93s}\n".format(today)
|
||||||
str_ += ("---------------------------------------------------------------"
|
str_ += """
|
||||||
"----------------------------------------\n")
|
-------------------------------------------------------------------------------
|
||||||
str_ += ("-- "
|
-- --
|
||||||
" --\n")
|
-- PROPKA: A PROTEIN PKA PREDICTOR --
|
||||||
str_ += ("-- PROPKA: A PROTEIN PKA "
|
-- --
|
||||||
"PREDICTOR --\n")
|
-- VERSION 1.0, 04/25/2004, IOWA CITY --
|
||||||
str_ += ("-- "
|
-- BY HUI LI --
|
||||||
" --\n")
|
-- --
|
||||||
str_ += ("-- VERSION 1.0, 04/25/2004, "
|
-- VERSION 2.0, 11/05/2007, IOWA CITY/COPENHAGEN --
|
||||||
"IOWA CITY --\n")
|
-- BY DELPHINE C. BAS AND DAVID M. ROGERS --
|
||||||
str_ += ("-- BY HUI LI "
|
-- --
|
||||||
" --\n")
|
-- VERSION 3.0, 01/06/2011, COPENHAGEN --
|
||||||
str_ += ("-- "
|
-- BY MATS H.M. OLSSON AND CHRESTEN R. SONDERGARD --
|
||||||
" --\n")
|
-- --
|
||||||
str_ += ("-- VERSION 2.0, 11/05/2007, IOWA "
|
-- VERSION 3.1, 07/01/2011, COPENHAGEN --
|
||||||
"CITY/COPENHAGEN --\n")
|
-- BY CHRESTEN R. SONDERGARD AND MATS H.M. OLSSON --
|
||||||
str_ += ("-- BY DELPHINE C. BAS AND DAVID "
|
-- --
|
||||||
"M. ROGERS --\n")
|
-------------------------------------------------------------------------------
|
||||||
str_ += ("-- "
|
"""
|
||||||
" --\n")
|
|
||||||
str_ += ("-- VERSION 3.0, 01/06/2011, "
|
|
||||||
"COPENHAGEN --\n")
|
|
||||||
str_ += ("-- BY MATS H.M. OLSSON AND CHRESTEN "
|
|
||||||
"R. SONDERGARD --\n")
|
|
||||||
str_ += ("-- "
|
|
||||||
" --\n")
|
|
||||||
str_ += ("-- VERSION 3.1, 07/01/2011, "
|
|
||||||
"COPENHAGEN --\n")
|
|
||||||
str_ += ("-- BY CHRESTEN R. SONDERGARD AND "
|
|
||||||
"MATS H.M. OLSSON --\n")
|
|
||||||
str_ += ("---------------------------------------------------------------"
|
|
||||||
"----------------------------------------\n")
|
|
||||||
str_ += ("\n")
|
|
||||||
return str_
|
return str_
|
||||||
|
|
||||||
|
|
||||||
@@ -362,39 +348,29 @@ def get_references_header():
|
|||||||
Returns:
|
Returns:
|
||||||
string
|
string
|
||||||
"""
|
"""
|
||||||
str_ = ""
|
str_ = """
|
||||||
str_ += ("---------------------------------------------------------------"
|
-------------------------------------------------------------------------------
|
||||||
"----------------------------------------\n")
|
References:
|
||||||
str_ += (" References:\n")
|
|
||||||
str_ += ("\n")
|
Very Fast Empirical Prediction and Rationalization of Protein pKa Values.
|
||||||
str_ += (" Very Fast Empirical Prediction and Rationalization of "
|
Hui Li, Andrew D. Robertson and Jan H. Jensen. PROTEINS: Structure, Function,
|
||||||
"Protein pKa Values\n")
|
and Bioinformatics. 61:704-721 (2005)
|
||||||
str_ += (" Hui Li, Andrew D. Robertson and Jan H. Jensen\n")
|
|
||||||
str_ += (" PROTEINS: Structure, Function, and Bioinformatics 61:704-721"
|
Very Fast Prediction and Rationalization of pKa Values for Protein-Ligand
|
||||||
" (2005)\n")
|
Complexes. Delphine C. Bas, David M. Rogers and Jan H. Jensen. PROTEINS:
|
||||||
str_ += (" \n")
|
Structure, Function, and Bioinformatics 73:765-783 (2008)
|
||||||
str_ += (" Very Fast Prediction and Rationalization of pKa Values for "
|
|
||||||
"Protein-Ligand Complexes\n")
|
PROPKA3: Consistent Treatment of Internal and Surface Residues in Empirical
|
||||||
str_ += (" Delphine C. Bas, David M. Rogers and Jan H. Jensen\n")
|
pKa predictions. Mats H.M. Olsson, Chresten R. Sondergard, Michal Rostkowski,
|
||||||
str_ += (" PROTEINS: Structure, Function, and Bioinformatics 73:765-"
|
and Jan H. Jensen. Journal of Chemical Theory and Computation, 7(2):525-537
|
||||||
"783 (2008)\n")
|
(2011)
|
||||||
str_ += (" \n")
|
|
||||||
str_ += (" PROPKA3: Consistent Treatment of Internal and Surface "
|
Improved Treatment of Ligands and Coupling Effects in Empirical Calculation
|
||||||
"Residues in Empirical pKa predictions\n")
|
and Rationalization of pKa Values. Chresten R. Sondergaard, Mats H.M. Olsson,
|
||||||
str_ += (" Mats H.M. Olsson, Chresten R. Sondergard, Michal Rostkowski, "
|
Michal Rostkowski, and Jan H. Jensen. Journal of Chemical Theory and
|
||||||
"and Jan H. Jensen\n")
|
Computation, (2011)
|
||||||
str_ += (" Journal of Chemical Theory and Computation, 7(2):525-537 "
|
-------------------------------------------------------------------------------
|
||||||
"(2011)\n")
|
"""
|
||||||
str_ += (" \n")
|
|
||||||
str_ += (" Improved Treatment of Ligands and Coupling Effects in "
|
|
||||||
"Empirical Calculation\n")
|
|
||||||
str_ += (" and Rationalization of pKa Values\n")
|
|
||||||
str_ += (" Chresten R. Sondergaard, Mats H.M. Olsson, Michal "
|
|
||||||
"Rostkowski, and Jan H. Jensen\n")
|
|
||||||
str_ += (" Journal of Chemical Theory and Computation, (2011)\n")
|
|
||||||
str_ += (" \n")
|
|
||||||
str_ += ("--------------------------------------------------------------"
|
|
||||||
"-----------------------------------------\n")
|
|
||||||
return str_
|
return str_
|
||||||
|
|
||||||
|
|
||||||
@@ -416,15 +392,12 @@ def get_determinants_header():
|
|||||||
Returns:
|
Returns:
|
||||||
string
|
string
|
||||||
"""
|
"""
|
||||||
str_ = ""
|
str_ = """
|
||||||
str_ += ("--------- ----- ------ --------------------- "
|
--------- ----- ------ --------------------- -------------- -------------- --------------
|
||||||
"-------------- -------------- --------------\n")
|
DESOLVATION EFFECTS SIDECHAIN BACKBONE COULOMBIC
|
||||||
str_ += (" DESOLVATION EFFECTS "
|
RESIDUE pKa BURIED REGULAR RE HYDROGEN BOND HYDROGEN BOND INTERACTION
|
||||||
"SIDECHAIN BACKBONE COULOMBIC \n")
|
--------- ----- ------ --------- --------- -------------- -------------- --------------
|
||||||
str_ += (" RESIDUE pKa BURIED REGULAR RE "
|
"""
|
||||||
"HYDROGEN BOND HYDROGEN BOND INTERACTION \n")
|
|
||||||
str_ += ("--------- ----- ------ --------- --------- "
|
|
||||||
"-------------- -------------- --------------\n")
|
|
||||||
return str_
|
return str_
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user