Samikshaa,
I always enjoy seeing Mathematica used for biology topics. Thank you for posting your work.
I do believe that the output of your code is, however, biologically incorrect.
Compare the list of amino acids from your first input cell to the list of amino acids returned by the built-in command BioSequenceTranslate:
ResourceFunction[
ResourceObject[<|"Name" -> "DNAtoAminoAcid",
"ShortName" -> "DNAtoAminoAcid",
"UUID" -> "67954e72-53c2-4527-a7c0-68dd2ba1497e",
"ResourceType" -> "Function", "Version" -> "1.0.0",
"Description" -> "Convert a given strand of DNA to a list of \
amino acids",
"RepositoryLocation" -> URL[
"https://www.wolframcloud.com/obj/resourcesystem/api/1.0"],
"SymbolName" -> "FunctionRepository`$\
093e0005691b471995f708959efa4269`DNAtoAminoAcid",
"FunctionLocation" -> CloudObject[
"https://www.wolframcloud.com/obj/e7ed59a3-2a4e-4af8-b48c-\
a1d06c90942e"]|>, \
{ResourceSystemBase -> "https://www.wolframcloud.com/obj/\
resourcesystem/api/1.0"}]][\
"GTATACTGGTCATAGCATTGACTGGTCCATGTACTTACCGCT"]
Out[10]= {Entity["Chemical", "LMethionine"],
Entity["Chemical", "LThreonine"], Entity["Chemical", "LSerine"],
Entity["Chemical", "LIsoleucine"], Entity["Chemical", "LValine"],
Entity["Chemical", "LThreonine"],
Entity["Chemical", "LAsparticAcid"],
Entity["Chemical", "LGlutamine"], Entity["Chemical", "LValine"],
Entity["Chemical", "LHistidine"],
Entity["Chemical", "LGlutamicAcid"],
Entity["Chemical", "LTryptophan"], Entity["Chemical", "LArginine"]}
In[11]:= BioSequenceTranslate[
BioSequence["DNA",
"GTATACTGGTCATAGCATTGACTGGTCCATGTACTTACCGCT"]]["SequenceString"]
Out[11]= "VYWS.H.LVHVLTA"
Compare Out[10] to Out[11], they are different.
The codon "GTA" codes for valine, not methionine.
Is this what you intended?