30 lines
807 B
C#
30 lines
807 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BaseCellSimulation.Enzyms.Nucleus
|
|
{
|
|
public class HistoneAcetyltransferase : InternalEnzym
|
|
{
|
|
public HistoneAcetyltransferase()
|
|
{
|
|
Km = 0.01;
|
|
Vmax = 0.3;
|
|
}
|
|
|
|
public override void ApplyChanges(CellRessources res, double dt)
|
|
{
|
|
double dA = Math.Min(rate * dt, res.Res.Protein.AcetylCoA);
|
|
res.Res.Protein.AcetylCoA -= dA;
|
|
res.Res.Nucleus.ChromatinAccessibility = Math.Min(1.0, res.Res.Nucleus.ChromatinAccessibility + dA * 0.1);
|
|
}
|
|
|
|
public override void ComputeRate(Resources res)
|
|
{
|
|
Michaelis_Menten(res.Protein.AcetylCoA);
|
|
}
|
|
}
|
|
}
|