Ejemplo n.º 1
0
        public void ChangeSequence(int len)
        {
            if (len < 0)
            {
                throw new ArgumentException("Could not change sequence: illegal sequence length");
            }
            this.WipeCell();

            this.dna = FrameshiftUtil.GenerateDNASequence(len);
            this.rna = Polymerase.Transcribe(this.dna);
            this.pro = this.rib.Translate(this.rna);
        }
Ejemplo n.º 2
0
        public NormalCell(int sequenceLength)
        {
            if (sequenceLength < 0)
            {
                throw new ArgumentException("Illegal sequence length");
            }

            List <AACodon> stops = new List <AACodon>
            {
                AACodon.UGA,
                AACodon.UAA,
                AACodon.UAG
            };

            this.rib = new Ribosome(AACodon.AUG, stops, new AAFactory(), 3);
            this.dna = FrameshiftUtil.GenerateDNASequence(sequenceLength);
            this.rna = Polymerase.Transcribe(this.dna);
            this.pro = this.rib.Translate(this.rna);
        }