Search in sources :

Example 6 with HMM_IRRKinetics

use of cbit.vcell.model.HMM_IRRKinetics in project vcell by virtualcell.

the class SBPAXKineticsExtractor method setVMForwardParamAsExpression.

private static void setVMForwardParamAsExpression(ReactionStep reaction, SBOParam kCat, Kinetics kinetics) throws ExpressionException, PropertyVetoException {
    if (kCat != null) {
        KineticsParameter Vmax = ((HMM_IRRKinetics) kinetics).getVmaxParameter();
        String unitF = SBOParam.formatUnit(kCat.getUnit());
        VCUnitDefinition kCatUnit = reaction.getModel().getUnitSystem().getInstance(unitF);
        Double numberKCat = 0.0;
        if (kCat.hasNumber()) {
            numberKCat = kCat.getNumber();
        }
        Expression KCatExpression = new Expression(numberKCat);
        KineticsParameter Kcat = kinetics.addUserDefinedKineticsParameter("Kcat", KCatExpression, kCatUnit);
        String enzymeName = "";
        ReactionParticipant[] participants = reaction.getReactionParticipants();
        for (int i = 0; i < participants.length; i++) {
            ReactionParticipant rp = participants[i];
            if (rp instanceof Catalyst) {
                enzymeName = rp.getName();
            }
        }
        SpeciesContext enzyme = reaction.getModel().getSpeciesContext(enzymeName);
        Vmax.setExpression(Expression.mult(new Expression(Kcat, reaction.getNameScope()), new Expression(enzyme, reaction.getNameScope())));
    }
}
Also used : VCUnitDefinition(cbit.vcell.units.VCUnitDefinition) KineticsParameter(cbit.vcell.model.Kinetics.KineticsParameter) Expression(cbit.vcell.parser.Expression) HMM_IRRKinetics(cbit.vcell.model.HMM_IRRKinetics) SpeciesContext(cbit.vcell.model.SpeciesContext) ReactionParticipant(cbit.vcell.model.ReactionParticipant) Catalyst(cbit.vcell.model.Catalyst)

Example 7 with HMM_IRRKinetics

use of cbit.vcell.model.HMM_IRRKinetics in project vcell by virtualcell.

the class SBPAXKineticsExtractor method setMichaelisForwardParam.

private static void setMichaelisForwardParam(ReactionStep reaction, SBOParam kMichaelis, Kinetics kinetics) throws ExpressionException, PropertyVetoException {
    if (kMichaelis != null) {
        KineticsParameter fwdParam = ((HMM_IRRKinetics) kinetics).getKmParameter();
        kinetics.setParameterValue(fwdParam, new Expression(kMichaelis.getNumber()));
        String unitF = SBOParam.formatUnit(kMichaelis.getUnit());
        VCUnitDefinition fwdUnit = reaction.getModel().getUnitSystem().getInstance(unitF);
        fwdParam.setUnitDefinition(fwdUnit);
    }
}
Also used : VCUnitDefinition(cbit.vcell.units.VCUnitDefinition) KineticsParameter(cbit.vcell.model.Kinetics.KineticsParameter) Expression(cbit.vcell.parser.Expression) HMM_IRRKinetics(cbit.vcell.model.HMM_IRRKinetics)

Aggregations

HMM_IRRKinetics (cbit.vcell.model.HMM_IRRKinetics)7 KineticsParameter (cbit.vcell.model.Kinetics.KineticsParameter)5 Expression (cbit.vcell.parser.Expression)5 VCUnitDefinition (cbit.vcell.units.VCUnitDefinition)5 HMM_REVKinetics (cbit.vcell.model.HMM_REVKinetics)3 Kinetics (cbit.vcell.model.Kinetics)3 MassActionKinetics (cbit.vcell.model.MassActionKinetics)3 Catalyst (cbit.vcell.model.Catalyst)2 GHKKinetics (cbit.vcell.model.GHKKinetics)2 GeneralCurrentKinetics (cbit.vcell.model.GeneralCurrentKinetics)2 GeneralCurrentLumpedKinetics (cbit.vcell.model.GeneralCurrentLumpedKinetics)2 GeneralKinetics (cbit.vcell.model.GeneralKinetics)2 GeneralLumpedKinetics (cbit.vcell.model.GeneralLumpedKinetics)2 GeneralPermeabilityKinetics (cbit.vcell.model.GeneralPermeabilityKinetics)2 Macroscopic_IRRKinetics (cbit.vcell.model.Macroscopic_IRRKinetics)2 ReactionParticipant (cbit.vcell.model.ReactionParticipant)2 Constant (cbit.vcell.math.Constant)1 FilamentRegionVariable (cbit.vcell.math.FilamentRegionVariable)1 FilamentVariable (cbit.vcell.math.FilamentVariable)1 Function (cbit.vcell.math.Function)1