17.1 Problem

The genetic material of an eucariotic cell is located in its nucleus in the form of a nucleic acid (DNA to be precise). At one point DNA fragments serve as matrices to produce proteins that build our bodies and perform some actions within it (e.g. like hormones or enzymes). Such a transformation takes two steps called transcription and translation.

During the first process, DNA’s double helix is unwind and one of the strands (called template strand) is rewritten to mRNA (hence transcription) according to the table presented below.

 DNA | mRNA
-----+------
 'c' | 'g'
 'g' | 'c',
 'a' | 'u',
 't' | 'a'

Here: a, c, g, t, u are the shortcuts (also written in uppercase) for the nucleic acids’ molecular components (nucleotide bases) called adenine, cytosine, guanine, thymine, and uracil.

This time your task is to read the data from the file: dna_seq_template_strand.txt (to be found in the code snippets for this chapter). The file contains a sequence of nucleotide bases of some gene. Splice its coding parts (aka. exons), which encompass the molecules at positions 2424-2610 and 3397-3542. Transcribe the obtained strand to an mRNA molecule according to the complementarity rule presented in the table above.



CC BY-NC-SA 4.0 Bartlomiej Lukaszuk