Saturday, September 16, 2023

DNA Sequencer

 This is John Doe's DNA:

John Doe,T,A,C,G,C,T,A,T,T

These are other animals:

Arctic Fox,T,A,C,C,T,A,C,T,T,A,C,G,A,T,G,T,G,T,A,G,C,A,C,A,T,C,T,G,G,A,T,G,C,T,C,C,T,T,C,T,A,C,G,C,G,G,T,A,A,T,A,T,C,C,T,G,T,G,G,A,T,G,G,A,C,G,G,A,G,C,T,A,C,C,G,C,T,T,T,C,T,T,G,C,G,G,A,G,G,T,G,A,T,C,A,C,C,T,G,A,C,T


Glow Worm,T,A,C,C,T,A,C,T,T,A,C,G,A,A,C,A,C,T

Eastern Diamondback Rattlesnake,T,A,C,G,C,C,T,A,G,G,C,G,G,T,A,A,T,C

Domestic Cat,T,A,C,G,G,G,T,A,G,C,T,A,G,C,C,A,T,T


Great Dane,T,A,C,T,T,G,T,C,A,T,G,G,C,T,C,T,C,G,T,A,G,C,T,T,T,C,T,A,A,T,G,A,A,C,C,G,T,T,C,T,A,T,T,G,A,A,C,A,G,T,T,A,G,A,T,G,G,A,G,C,T,C,C,C,T,C,A,A,T,C,C,C,T,T,A,C,C,A,A,G,T,C,C,T,C,T,C,A,A,G,C,G,C,C,A,C,\

A,C,C,A,C,T

Alaskan Malmute,T,A,C,C,T,G,T,C,G,A,G,G,A,C,C,C,T,C,A,G,A,C,C,T,G,A,G,T,T,A,G,C,A,C,G,G,T,A,G,G,T,G,T,C,T,G,G,C,G,T,G,C,C,G,G,A,T,G,C,G,C,A,T,A,T,G,T,T,C,T,T,T,G,C,T,C,T,C,A,A,G,A,C,C,G,A,A,G,T,C,C,C,G,G\

,C,T,A,G,G,A,T,C

Golden Retriever,T,A,C,A,C,C,T,G,T,A,A,C,G,T,T,A,G,T,A,G,T,C,G,A,G,T,A,C,C,A,C,T,T,T,A,A,T,G,C,A,C,A,T,C,T,T,C,C,A,A,C,G,A,C,G,A,C,G,T,A,G,T,C,G,A,T,T,A,G,A,A,G,A,G,C,C,T,A,C,G,G,A,A,C,C,C,G,C,G,G,G,G,T,\

T,C,G,A,A,T,A,T,T


The fund-a is simpler organisms need not necessarily have more complex DNA.

Now cell division happens in two types. Meiosis and Mitosis. Mitosis is normal division and Meiosis results in haploid cells with half the number of Strands.

The thing is DNA transcription happens with the involvement of messenger RNAs.

I have a partly written code for this which did not completely work.

Here is some sample:

string Sequencer::Convert(const string trinucleotide){
  if((trinucleotide=="AUU")||(trinucleotide=="AUC")||(trinucleotide=="AUA"))
    return ("Isoleucine");
  else if((trinucleotide=="CUU")||(trinucleotide=="CUC")||(trinucleotide=="CUA")||
          (trinucleotide=="CUG")|| (trinucleotide=="UUA")||(trinucleotide=="UUG"))
    return ("Leucine");
  else if((trinucleotide=="GUU")||(trinucleotide=="GUC")||
          (trinucleotide=="GUA")||(trinucleotide=="GUG"))
    return ("Valine");
  else if((trinucleotide=="UUU")||(trinucleotide=="UUC"))
    return ("Phenylalanine");
  else if((trinucleotide=="AUG"))
    return ("Methionine (START)");
  else if((trinucleotide=="UGU")||(trinucleotide=="UGC"))
    return ("Cysteine");
  else if((trinucleotide=="GCU")||(trinucleotide=="GCC")||
          (trinucleotide=="GCA")||(trinucleotide=="GCG"))
    return ("Alanine");
  else if((trinucleotide=="GGU")||(trinucleotide=="GGC")||
          (trinucleotide=="GGA")||(trinucleotide=="GGG"))
    return ("Glycine");
  else if((trinucleotide=="CCU")||(trinucleotide=="CCC")||
          (trinucleotide=="CCA")||(trinucleotide=="CCG"))
    return ("Proline");
  else if((trinucleotide=="ACU")||(trinucleotide=="ACC")||
          (trinucleotide=="ACA")||(trinucleotide=="ACG"))
    return ("Threonine");
  else if((trinucleotide=="UCU")||(trinucleotide=="UCC")||
          (trinucleotide=="UCA")||(trinucleotide=="UCG")||
          (trinucleotide=="AGU")||(trinucleotide=="AGC"))
    return ("Serine");
  else if((trinucleotide=="UAU")||(trinucleotide=="UAC"))
    return ("Tyrosine");
  else if((trinucleotide=="UGG"))
    return ("Tryptophan");
  else if((trinucleotide=="CAA")||(trinucleotide=="CAG"))
    return ("Glutamine");
  else if((trinucleotide=="AAU")||(trinucleotide=="AAC"))
    return ("Asparagine");
  else if((trinucleotide=="CAU")||(trinucleotide=="CAC"))
    return ("Histidine");
  else if((trinucleotide=="GAA")||(trinucleotide=="GAG"))
    return ("Glutamic acid");
  else if((trinucleotide=="GAU")||(trinucleotide=="GAC"))
    return ("Aspartic acid");
  else if((trinucleotide=="AAA")||(trinucleotide=="AAG"))
    return ("Lysine");
  else if((trinucleotide=="CGU")||(trinucleotide=="CGC")||(trinucleotide=="CGA")||
          (trinucleotide=="CGG")||(trinucleotide=="AGA")||(trinucleotide=="AGG"))
    return ("Arginine");
  else if((trinucleotide=="UAA")||(trinucleotide=="UAG")||(trinucleotide=="UGA"))
    return ("Stop");
else
    cout << "returning unknown" << endl;
  return ("Unknown");
}

Also the sequencing either happens completely or not at all. There is nothing like half the DNA is copied and other half of the sequence isn't as I thought might happen earlier.

No comments:

Post a Comment