Central Dogma of The Cell
Central Dogma of The Cell
String
It can have any number of letters in any order from the α set.
A, C, G, T are nucleotides.
Therefore, DNA is the nucleotide sequence.
Example:
DNA_seqeuence_1 = 5`ACCGTGATC3` (9 length)
DNA_seqeuence_2 = 5`ACTTCTC3` (7 length)
Write Complementary DNA Sequence for below sequence.
ATGATTGACATTGAGGATCCAT,
• Opposite/complementary strand follows the base-pair rule:
A-T,C-G and vice-versa.
• The primary strand’s starting position is 5`and ends at 3`.
• 3`is the complement of 5`
• DNA sequences are always written from 5`to3`.
• 5`ATGATTGACATTGAGGATCCAT 3`
• 3`TACTAACTGTAACTCCTAGGTA 5`
Computational tasks or Algorithmic work
3’TACTGAAGTCATGACTGACGTA5’
Python code for Complementary DNA
sequence
MATLAB code for Complementary DNA
sequence
% Main script
dna_sequence = 'AAGCT';
complement = complement_dna(dna_sequence);
fprintf('Complement: %s\n', complement);
% Function definition
function complement = complement_dna(dna_sequence)
% Initialize the mapping for complement
complement_map = containers.Map({'A', 'T', 'C', 'G'}, {'T', 'A', 'G', 'C'});
% Initialize the complement sequence
complement = '';
% Iterate over each nucleotide in the sequence and find the complement
for i = 1:length(dna_sequence)
nucleotide = dna_sequence(i);
complement = [complement complement_map(nucleotide)];
end
end
Write a python code for counting DNA nucleotides in a sequence
dna_sequence = "ACCCCGTACGTACGT"
nucleotides = {"A": 0, "C": 0, "G": 0, "T": 0}
nucleotides = {}
for nucleotide in dna_sequence:
if nucleotide not in nucleotides:
nucleotides[nucleotide] = 0
nucleotides[nucleotide] += 1
print(nucleotides)
Write a MATLAB code for counting DNA nucleotides in a
sequence
% Main script
dna_sequence = 'AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGT';
counts = count_nucleotides(dna_sequence);
fprintf('Nucleotide Counts: A=%d, C=%d, G=%d, T=%d\n', counts.A, counts.C, counts.G, counts.T);
% Function definition
function counts = count_nucleotides(dna_sequence)
% Initialize counts as a struct
counts = struct('A', 0, 'C', 0, 'G', 0, 'T', 0);
% Convert the sequence to uppercase to ensure case-insensitivity
dna_sequence = upper(dna_sequence);
% Iterate over each nucleotide in the sequence and count them
for i = 1:length(dna_sequence)
nucleotide = dna_sequence(i);
if isfield(counts, nucleotide)
counts.(nucleotide) = counts.(nucleotide) + 1;
end
end
end
How
Lessonto Read Codons
Overview
In DNA
A-T
G-C
In RNA
A-U
G-U
https://www.youtube.com/watch?v=NDIJexTT9j0
Some Basic Questions:
1. Write the complementary DNA strand for
ATGATTGACATTGAGGATCCAT
2. Write the RNA strand for
ATGATTGACATTGAGGATCCAT
3. Write the codon for TACAGTACCATAATC.