If you feel your experimental data could improve the performance of the default pKa calculator, you can take advantage of the supervised pKa learning method that is built into the pKa calculator. Special structural parts may have an effect on the pKa values calculated by the built-in method, so your correction library based on experimental data of your compound family helps the pKa calculator to increase the prediction accuracy.
The first step of the training process is the input of the collected data into an sdf file. After that, you have to run the training algorithm which creates a correction library from your data. This will be stored on your computer. You can use this correction library via MarvinSketch, cxcalc, Chemical Terms.
Example
The picture below shows the details of the training set (pKa_trainingset.sdf). ID1 is the index
of the atom with the experimental pKa1 value (ID2 would
be the index of the second measured pKa value /pKa2/, etc.).
cxtrain pka -i [library name] [training file]Example
cxtrain pka -i mypka mydata.sdf
I. pKa calculation with training data | II. pKa calculation without training data |
---|
cxcalc
--correctionlibrary
or its short form: -L
).
cxcalc pKa --correctionlibrary
[library name] [input file/string]
Example
$ cxcalc pKa --correctionlibrary
mypka "CSC1=NC2=C(N1)C=NC(O)=N2"
Result
id apKa1 apKa2 bpKa1 bpKa2 atoms
1 11.19 16.01 2.34 -2.59 7,11,9,4
$ cxcalc pKa "CSC1=NC2=C(N1)C=NC(O)=N2"Result
id apKa1 apKa2 bpKa1 bpKa2 atoms
1 8.34 16.01 2.34 -2.59 7,11,9,4
For more options see this page.
evaluate -e "pKa('correctionlibrary:[library name]')" "[input file/string]"
Example
evaluate -e "pKa('correctionlibrary:mypka')" "CSC1=NC2=C(N1)C=NC(O)=N2"
Result;;;-2,59;;;11,19;;2,34;;16,01;
For more details see this page.
pKa ('correctionlibrary:mypKa type:acidic','1')
defines that the plugin use the correction library named mypKa, and it will calculate the strongest acidic pKa of the molecule(s).