Пример #1
0
 private void btnReserved_Click(object sender, EventArgs e)
 {
     pattern = txtPattern.Text;
     string[] result = OperationsOfDNAComputing.seperate(tube, pattern);
     txtReserved.Text = result[0];
     txtRemoved.Text  = result[1];
 }
Пример #2
0
 private void btnReserved_Click(object sender, EventArgs e)
 {
     length = int.Parse(txtLength.Text);
     string[] result = OperationsOfDNAComputing.select(tube, length);
     txtReserved.Text = result[0];
     txtRemoved.Text  = result[1];
 }
Пример #3
0
 private void btnSort_Click(object sender, EventArgs e)
 {
     string[] result = OperationsOfDNAComputing.sort(tube);
     txtShort.Text   = result[0];
     txtLong.Text    = result[1];
     txtRemoved.Text = result[2];
 }
Пример #4
0
 private void btnReserved_Click(object sender, EventArgs e)
 {
     if (txtPattern.Text.Length == 2)
     {
         pattern     = txtPattern.Text;
         txtCut.Text = OperationsOfDNAComputing.cut(tube, pattern);
     }
     else
     {
         MessageBox.Show("The pattern length shoud be exactly 2");
     }
 }
Пример #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            float[] NPer = OperationsOfDNAComputing.Nu_Percentage(sequence);
            lblNuPercent.Text = "A " + NPer[0] + " %" + "\nC " + NPer[1] + " %" +
                                "\nG " + NPer[2] + " %" + "\nC " + NPer[3] + " %";

            int GC; int AT;

            OperationsOfDNAComputing.GC_AT_Content(sequence, out GC, out AT);
            lblGC.Text = "GC " + GC + " nucleotides" + "\nAT " + AT + " nucleotides";

            lblMT.Text = OperationsOfDNAComputing.DNA_Melting_Temp(sequence).ToString();

            int G; int C; int A; int T;

            OperationsOfDNAComputing.G_C_A_T_Content(sequence, out A, out C, out G, out T);
            lblG.Text = "A " + A + " nucleotides" + "\nC " + C + " nucleotides" + "\nG " + G + " nucleotides" +
                        "\nT " + T + " nucleotides";

            lblMW.Text = OperationsOfDNAComputing.DNA_MW(sequence).ToString();
        }
Пример #6
0
 private void btnAppT_Click(object sender, EventArgs e)
 {
     pattern      = txtPattern.Text;
     txtAppT.Text = OperationsOfDNAComputing.appendTail(tube, pattern);
 }
Пример #7
0
 private void button1_Click(object sender, EventArgs e)
 {
     txtReverse.Text = OperationsOfDNAComputing.Reversion(sequence);
 }
Пример #8
0
 private void btnSub_Click(object sender, EventArgs e)
 {
     pattern1    = txtPattern1.Text;
     pattern2    = txtPattern2.Text;
     txtSub.Text = OperationsOfDNAComputing.substitute(tube, pattern1, pattern2);
 }
Пример #9
0
 private void button1_Click(object sender, EventArgs e)
 {
     txtMerge.Text = OperationsOfDNAComputing.merge(tube1, tube2);
 }
 private void button1_Click(object sender, EventArgs e)
 {
     txtComplement.Text = OperationsOfDNAComputing.DNA_complementry(sequence);
 }