User 21b7e0228c
03-11-2006 15:15:15
Hi - This profound insight was happily hanging somewhere down the axon of my tired neuron for some time, but today I had a sudden and almost religious revelation of how weird the stuff is: Why do we need a MajorMicrospeciesPlugin? Why can't getMajorMicrospecies be used in connection to a pKaPlugin?
I tried to write some code where one could choose whether to enumerate all µspecies, or stick to the most stable one, or forget it and stick to the read molecule... After defining a pKaPlugin pkaplug, I said well, if (enumerate_ms) {do the loop over all of them with pkplug.get MsMolecule(running_index)} else if (use_major_ms) {damn the loop and do pkplug.getMajorMicrospecies()} - fatal error! The pKaPlugin has no getMajorMicrospecies! If one defines a MajorMicrospeciesPlugin instead, then one looses the access to the getSingleMsDistribution and for some reason, getSortedMSDistribution() does not work! It told me "chemaxon.marvin.plugin.PluginException: Microspecies distribution calculation is not available in chemaxon.marvin.calculations.MajorMicrospeciesPlugin"
Well, of course there is an easy workarond with the pKaPlugin, it's enough to loop over the getSingleMsDistributions and pick the largest but... we have TWO plugins instead of one and we still need a workaround! Is plugin unemployment such a burning issue in the EU that we need to create artificial jobs for them?
I tried to write some code where one could choose whether to enumerate all µspecies, or stick to the most stable one, or forget it and stick to the read molecule... After defining a pKaPlugin pkaplug, I said well, if (enumerate_ms) {do the loop over all of them with pkplug.get MsMolecule(running_index)} else if (use_major_ms) {damn the loop and do pkplug.getMajorMicrospecies()} - fatal error! The pKaPlugin has no getMajorMicrospecies! If one defines a MajorMicrospeciesPlugin instead, then one looses the access to the getSingleMsDistribution and for some reason, getSortedMSDistribution() does not work! It told me "chemaxon.marvin.plugin.PluginException: Microspecies distribution calculation is not available in chemaxon.marvin.calculations.MajorMicrospeciesPlugin"
Well, of course there is an easy workarond with the pKaPlugin, it's enough to loop over the getSingleMsDistributions and pick the largest but... we have TWO plugins instead of one and we still need a workaround! Is plugin unemployment such a burning issue in the EU that we need to create artificial jobs for them?