Exemple #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="process"></param>
 /// <returns></returns>
 public static EcellProcess PingPongBiBiFlux2Expression(EcellProcess process)
 {
     EcellProcess newProcess = new EcellProcess(process.ModelID, process.Key, process.Type, ProcessConstants.ExpressionFluxProcess, new List<EcellData>());
     newProcess.ReferenceList = process.ReferenceList;
     newProcess.SetEcellValue("KcF", process.GetEcellValue("KcF"));
     newProcess.SetEcellValue("KcR", process.GetEcellValue("KcR"));
     newProcess.SetEcellValue("Keq", process.GetEcellValue("Keq"));
     newProcess.SetEcellValue("KmS0", process.GetEcellValue("KmS0"));
     newProcess.SetEcellValue("KmS1", process.GetEcellValue("KmS1"));
     newProcess.SetEcellValue("KmP0", process.GetEcellValue("KmP0"));
     newProcess.SetEcellValue("KmP1", process.GetEcellValue("KmP1"));
     newProcess.SetEcellValue("KiS0", process.GetEcellValue("KiS0"));
     newProcess.SetEcellValue("KiP1", process.GetEcellValue("KiP1"));
     newProcess.Expression = "( KcF * KcR * C0.Value * ( S0.MolarConc * S1.MolarConc - P0.MolarConc * P1.MolarConc / Keq ) ) / ( KcR * KmS1 * S0.MolarConc + KcR * KmS0 * S1.MolarConc + KmP1 * P0.MolarConc * KcF / Keq + KmP0 * P1.MolarConc * KcF / Keq + KcR * S0.MolarConc * S1.MolarConc + KmP1 * S0.MolarConc * P0.MolarConc * KcF / Keq / KiS0 + P0.MolarConc * P1.MolarConc * KcF / Keq + KcR * KmS0 * S1.MolarConc * P1.MolarConc / KiP1 )";
     newProcess.Layout = process.Layout;
     return newProcess;
 }
Exemple #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="process"></param>
 /// <returns></returns>
 public static EcellProcess MichaelisUniUniFlux2Expression(EcellProcess process)
 {
     EcellProcess newProcess = new EcellProcess(process.ModelID, process.Key, process.Type, ProcessConstants.ExpressionFluxProcess, new List<EcellData>());
     newProcess.ReferenceList = process.ReferenceList;
     newProcess.SetEcellValue("KmS", process.GetEcellValue("KmS"));
     newProcess.SetEcellValue("KmP", process.GetEcellValue("KmP"));
     newProcess.SetEcellValue("KcF", process.GetEcellValue("KcF"));
     newProcess.SetEcellValue("KcR", process.GetEcellValue("KcR"));
     newProcess.Expression = "( ( KcF * KmP * S0.MolerConc - KcR * KmS * P0.MolerConc ) * C0.Value ) / ( KmS * P0.MolerConc + KmP * S0.MolerConc + KmS * KmP )";
     newProcess.Layout = process.Layout;
     return newProcess;
 }
Exemple #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="process"></param>
 /// <returns></returns>
 public static EcellProcess DecayFlux2Expression(EcellProcess process)
 {
     EcellProcess newProcess = new EcellProcess(process.ModelID, process.Key, process.Type, ProcessConstants.ExpressionFluxProcess, new List<EcellData>());
     newProcess.ReferenceList = process.ReferenceList;
     newProcess.SetEcellValue("T", process.GetEcellValue("T"));
     newProcess.Expression = "( log ( 2 ) ) / ( T ) * S0.Value";
     newProcess.Layout = process.Layout;
     return newProcess;
 }
Exemple #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="process"></param>
 /// <returns></returns>
 public static EcellProcess MassAction2Expression(EcellProcess process)
 {
     EcellProcess newProcess = new EcellProcess(process.ModelID, process.Key, process.Type, ProcessConstants.ExpressionFluxProcess, new List<EcellData>());
     newProcess.ReferenceList = process.ReferenceList;
     newProcess.SetEcellValue("k", process.GetEcellValue("k"));
     newProcess.Expression = "k * S0.Value";
     newProcess.Layout = process.Layout;
     return newProcess;
 }
Exemple #5
0
        public void TestRemoveValue()
        {
            EcellProcess process = new EcellProcess("Model", "/:P0", "Process", "ConstantFluxProcess", new List<EcellData>());
            string str = "((\"S1\", \"Variable:/:S1\", 1, 0), (\"S2\", \"Variable:/:S2\", 1, 1))";
            List<EcellReference> expected = EcellReference.ConvertFromString(str);
            process.ReferenceList = expected;
            Assert.AreEqual(expected, process.ReferenceList, "ReferenceList is not expected value.");

            process.RemoveEcellValue(EcellProcess.VARIABLEREFERENCELIST);
            Assert.IsNull(process.GetEcellValue(EcellProcess.VARIABLEREFERENCELIST), "GetEcellValue method returned unexpected result.");

            process.RemoveEcellValue(EcellProcess.VARIABLEREFERENCELIST);
            Assert.IsNull(process.GetEcellValue(EcellProcess.VARIABLEREFERENCELIST), "GetEcellValue method returned unexpected result.");
        }