Description Usage Arguments Value See Also Examples
View source: R/hendersonHasselbalch.R
This function calculates the ionic charge of a residue at a specific pH when given the pKa. pH = pKa + log([A-] / [HA]) Known, charged residues are accepted as well as the protein termini and general property to allow customized calculations. The output is a ratio comparing acid to conjugate base for acidic residues or a ratio comparing conjugate base to acid for basic residues.
1 | hendersonHasselbalch(pKa, pH = 7, residue)
|
pKa |
numeric value. The point where A- = HA. |
pH |
numeric value. The pH of the environment. 7.0 by default |
residue |
individual character or character string. accepted values are the exact aa c("C", "D", "E", "H", "K", "R", "Y"), termini c("COOH","COO","NH2","NH3"), or a general property c("acid", "base", "negative", "positive"). |
a numeric value giving the ratio of charged to uncharged residues.
pKaData
for residue pKa values and citations. See
other charge functions for use.
Other charge functions:
chargeCalculationGlobal()
,
chargeCalculationLocal()
,
netCharge()
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 | #Calculating Lysine charge using the EMBOSS pKa data
EMBOSS_pKa <- pKaData[, 1:2]
EMBOSS_pKa
Lys_pKa <- EMBOSS_pKa[EMBOSS_pKa$AA == "K", ]
Lys_pKa$EMBOSS #This is Lysines pKa
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 7.0,
residue = "K")
#residue = supports general properties as well
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 7.0,
residue = "base")
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 7.0,
residue = "positive")
#CALCULATIONS ARE DEPENDENT ON RESIDUE PROPERTY!
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 7.0,
residue = "acid") #Inaccurate Description
#You can also calculate charge at different pHs
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 5.5,
residue = "K")
hendersonHasselbalch(
pKa = as.numeric(Lys_pKa$EMBOSS),
pH = 8,
residue = "K")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.