1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
|
#
# * This library is free software; you can redistribute it and/or
# * modify it under the terms of the GNU Lesser General Public
# * License as published by the Free Software Foundation; either
# * version 2.1 of the License, or (at your option) any later version.
# *
# * This library is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# * Lesser General Public License for more details.
#
#propka3.0, revision 182 2011-08-09
#-------------------------------------------------------------------------------------------------------
#-- --
#-- PROPKA: A PROTEIN PKA PREDICTOR --
#-- --
#-- VERSION 3.0, 01/01/2011, COPENHAGEN --
#-- BY MATS H.M. OLSSON AND CHRESTEN R. SONDERGARD --
#-- --
#-------------------------------------------------------------------------------------------------------
#
#
#-------------------------------------------------------------------------------------------------------
# References:
#
# Very Fast Empirical Prediction and Rationalization of Protein pKa Values
# Hui Li, Andrew D. Robertson and Jan H. Jensen
# PROTEINS: Structure, Function, and Bioinformatics 61:704-721 (2005)
#
# Very Fast Prediction and Rationalization of pKa Values for Protein-Ligand Complexes
# Delphine C. Bas, David M. Rogers and Jan H. Jensen
# PROTEINS: Structure, Function, and Bioinformatics 73:765-783 (2008)
#
# PROPKA3: Consistent Treatment of Internal and Surface Residues in Empirical pKa predictions
# Mats H.M. Olsson, Chresten R. Sondergard, Michal Rostkowski, and Jan H. Jensen
# Journal of Chemical Theory and Computation, 7, 525-537 (2011)
#-------------------------------------------------------------------------------------------------------
from .lib import pka_print
def resName2Type(resName=None):
"""
definition of which parameter-group each residues belongs to
"""
resType = {'C- ': "COO",
'ASP': "COO",
'GLU': "COO",
'HIS': "HIS",
'CYS': "CYS",
'TYR': "TYR",
'LYS': "LYS",
'ARG': "ARG",
'N+ ': "N+ ",
'SER': "ROH",
'THR': "ROH",
'ASN': "AMD",
'GLN': "AMD",
'TRP': "TRP"}
if resName in resType:
return resType[resName]
else:
return resType
def getQs(resName=None):
"""
Returns a dictionary with residue charges
"""
Q = {'COO': -1.0,
'ASP': -1.0,
'GLU': -1.0,
'C- ': -1.0,
'TYR': -1.0,
'CYS': -1.0,
'HIS': 1.0,
'LYS': 1.0,
'ARG': 1.0,
'N+ ': 1.0}
if resName in Q:
return Q[resName]
else:
return Q
def pKa_mod(resName=None):
"""
returns a dictionary with model/water pKa values
"""
pKa_mod = {'C- ': 3.20,
'ASP': 3.80,
'GLU': 4.50,
'HIS': 6.50,
'CYS': 9.00,
'TYR': 10.00,
'LYS': 10.50,
'ARG': 12.50,
'N+ ': 8.00}
if resName == None:
return pKa_mod
elif resName in pKa_mod:
return pKa_mod[resName]
else:
# generic value for 'uninteresting' residues, e.g. ASN, GLN
return 20.00
def getInteraction():
"""
matrix for propka interactions; Note that only the LOWER part of the matrix is used!
'N' non-iterative interaction
'I' iterative interaction
'-' no interaction
"""
# COO CYS TYR HIS N+ LYS ARG
side_chain = {'COO': ["I", "I", "N", "N", "N", "N", "N"],
'CYS': ["I", "I", "N", "I", "N", "N", "N"],
'TYR': ["N", "N", "I", "I", "I", "I", "N"],
'HIS': ["I", "I", "I", "I", "N", "N", "N"],
'N+ ': ["N", "N", "I", "N", "I", "N", "N"],
'LYS': ["N", "N", "I", "N", "N", "I", "N"],
'ARG': ["N", "N", "N", "N", "N", "N", "I"],
'ROH': ["N", "N", "N", "-", "-", "-", "-"],
'AMD': ["N", "N", "N", "N", "-", "-", "-"],
'TRP': ["N", "N", "N", "-", "-", "-", "-"]}
return side_chain
# ------- Coulomb parameters --------- #
def getCoulombParameters(label=None):
"""
storage of Coulomb default parameters
"""
CoulombParameters = {}
CoulombParameters['Linear'] = {'cutoff': [4.0, 7.0],
'max_dpka': 2.40,
'scaled': True,
}
CoulombParameters['Coulomb'] = {'cutoff': [4.0, 10.0],
'diel': 80.00,
'scaled': True,
}
if label in CoulombParameters:
return CoulombParameters[label]
else:
return CoulombParameters
# ------- Desolvation parameters --------- #
def getDesolvationParameters(label=None):
"""
storage of desolvation default parameters
"""
DesolvationParameters = {}
DesolvationParameters['propka2'] = {'allowance': 400.00,
'prefactor': -0.01,
'local': -0.07,
'radii': getLocalRadii(),
}
DesolvationParameters['ContactModel'] = {'allowance': 400.00,
'prefactor': -0.01,
'local': -0.07,
'radii': getLocalRadii(),
}
DesolvationParameters['VolumeModel'] = {'allowance': 0.00,
'prefactor': -13.50,
'surface': 0.25,
'volume': getVanDerWaalsVolumes(),
}
DesolvationParameters['ScaledVolumeModel'] = {'allowance': 0.00,
'prefactor': -13.50,
'surface': 0.00,
'volume': getVanDerWaalsVolumes(),
}
if label in DesolvationParameters:
return DesolvationParameters[label]
else:
return DesolvationParameters
def getVanDerWaalsVolumes():
"""
storing relative Van der Waals volumes for volume desolvation models
"""
# relative tabulated
VanDerWaalsVolume = {'C': 1.40, # 20.58 all 'C' and 'CA' atoms
'C4': 2.64, # 38.79 hydrodphobic carbon atoms + unidentified atoms
'N': 1.06, # 15.60 all nitrogen atoms
'O': 1.00, # 14.71 all oxygen atoms
'S': 1.66, # 24.43 all sulphur atoms
}
return VanDerWaalsVolume
def getLocalRadii():
"""
local radii used in the 'propka2' and 'contact' desolvation models
"""
local_radius = {'ASP': 4.5,
'GLU': 4.5,
'HIS': 4.5,
'CYS': 3.5,
'TYR': 3.5,
'LYS': 4.5,
'ARG': 5.0,
'C- ': 4.5,
'N+ ': 4.5}
return local_radius
# ------- hydrogen-bond parameters --------- #
def getHydrogenBondParameters(type=None):
"""
definitions of default back-bone or side-chain interaction parameters
IMPORTANT: parameters with assigned to 'None' are given by the reverse
(e.g. CYS-COO is given by COO-CYS) generated at the end.
"""
if type == "back-bone":
# --- old 'propka1' back-bone parameter set ---
# parameters determining the interaction with back-bone NH or CO groups
parameters = {"COO": [-1.20, [2.00, 3.50]],
"CYS": [-2.40, [3.50, 4.50]],
"TYR": [-1.20, [3.50, 4.50]],
"HIS": [ 1.20, [2.00, 3.50]],
"N+ ": [ 1.20, [2.00, 3.50]],
"LYS": [ 1.20, [2.00, 3.50]],
"ARG": [ 1.20, [2.00, 3.50]]}
elif type == "side-chain":
# --- old 'propka1' side-chain parameter set ---
# parameters determining the interaction with side-chain NH or CO groups
# IMPORTANT: parameters with assigned to 'None' are given by the reverse
# (e.g. CYS-COO is given by COO-CYS) generated at the end.
parameters = {}
parameters["COO"] = {"COO": [-0.80, [ 2.50, 3.50]],
"CYS": [-0.80, [ 3.00, 4.00]],
"TYR": [-0.80, [ 3.00, 4.00]],
"HIS": [-0.80, [ 2.00, 3.00]],
"N+ ": [-1.20, [ 3.00, 4.50]],
"LYS": [-0.80, [ 3.00, 4.00]],
"ARG": [-0.80, [ 2.00, 4.00]],
"ROH": [-0.80, [ 3.00, 4.00]],
"AMD": [-0.80, [ 2.00, 3.00]],
"TRP": [-0.80, [ 2.00, 3.00]]}
parameters["CYS"] = {"COO": None,
"CYS": [-1.60, [ 3.00, 5.00]],
"TYR": [-0.80, [ 3.50, 4.50]],
"HIS": [-1.60, [ 3.00, 4.00]],
"N+ ": [-2.40, [ 3.00, 4.50]],
"LYS": [-1.60, [ 3.00, 4.00]],
"ARG": [-1.60, [ 2.50, 4.00]],
"ROH": [-1.60, [ 3.50, 4.50]],
"AMD": [-1.60, [ 2.50, 3.50]],
"TRP": [-1.60, [ 2.50, 3.50]]}
parameters["TYR"] = {"COO": None,
"CYS": None,
"TYR": [ 0.80, [ 3.50, 4.50]],
"HIS": [-0.80, [ 2.00, 3.00]],
"N+ ": [-1.20, [ 3.00, 4.50]],
"LYS": [-0.80, [ 3.00, 4.00]],
"ARG": [-0.80, [ 2.50, 4.00]],
"ROH": [-0.80, [ 3.50, 4.50]],
"AMD": [-0.80, [ 2.50, 3.50]],
"TRP": [-0.80, [ 2.50, 3.50]]}
parameters["HIS"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": [ 0.00, [ 0.00, 0.00]],
"N+ ": [ 0.00, [ 0.00, 0.00]],
"LYS": [ 0.00, [ 0.00, 0.00]],
"ARG": [ 0.00, [ 0.00, 0.00]],
"ROH": [ 0.00, [ 0.00, 0.00]],
"AMD": [ 0.80, [ 2.00, 3.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["N+ "] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": [ 0.00, [ 0.00, 0.00]],
"LYS": [ 0.00, [ 0.00, 0.00]],
"ARG": [ 0.00, [ 0.00, 0.00]],
"ROH": [ 0.00, [ 0.00, 0.00]],
"AMD": [ 0.00, [ 0.00, 0.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["LYS"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": None,
"LYS": [ 0.00, [ 0.00, 0.00]],
"ARG": [ 0.00, [ 0.00, 0.00]],
"ROH": [ 0.00, [ 0.00, 0.00]],
"AMD": [ 0.00, [ 0.00, 0.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["ARG"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": None,
"LYS": None,
"ARG": [ 0.00, [ 0.00, 0.00]],
"ROH": [ 0.00, [ 0.00, 0.00]],
"AMD": [ 0.00, [ 0.00, 0.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["ROH"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": None,
"LYS": None,
"ARG": None,
"ROH": [ 0.00, [ 0.00, 0.00]],
"AMD": [ 0.00, [ 0.00, 0.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["AMD"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": None,
"LYS": None,
"ARG": None,
"ROH": None,
"AMD": [ 0.00, [ 0.00, 0.00]],
"TRP": [ 0.00, [ 0.00, 0.00]]}
parameters["TRP"] = {"COO": None,
"CYS": None,
"TYR": None,
"HIS": None,
"N+ ": None,
"LYS": None,
"ARG": None,
"ROH": None,
"AMD": None,
"TRP": [ 0.00, [ 0.00, 0.00]]}
# updating side-chain parameter matrix to full matrix
keys = list(parameters.keys())
for key1 in keys:
for key2 in keys:
if key2 not in parameters[key1]:
parameters[key1][key2] == [ 0.00, [ 0.00, 0.00]]
elif parameters[key1][key2] == None:
parameters[key1][key2] = parameters[key2][key1]
else:
pka_print("cannot determine what type of hydrogen-bonding interactions you want type=\"%s\" ['back-bone', 'side-chain']" % (label))
sys.exit(9)
return parameters
|