# PBIO Exercise 1 — Notes & Walkthrough

**Student:** s32484  
**Course:** Basics of Bioinformatics (PBIO 2026/2027), PJATK  
**Exercise:** 1 (English) — Practical Activities

Here are my step-by-step notes and answers for all 9 sections of Exercise 1.

---

## Section 1: Molecules and Cells

### 1. Building blocks of molecules (`building`)

- **DNA:** Nucleotides
- **RNA:** Nucleotides
- **Protein:** Amino acids
- *My note:* DNA and RNA are both nucleic acids made of nucleotide chains. Proteins are chains of amino acids linked by peptide bonds.

### 2. DNA location in human cells (`cell-dna`)

- **Answer:** In the nucleus and mitochondria.
- *My note:* Most human DNA is packaged into chromosomes inside the nucleus, but mitochondria also have their own circular genome (mtDNA) inherited from the mother.

### 3. Source organism vs expression host (`species-record`)

- **Answer:** The protein comes from *Aequorea victoria*, and it was produced in *Escherichia coli* cells for the study.
- *My note:* GFP naturally comes from the jellyfish *Aequorea victoria*. In the lab, researchers cloned the gene into *E. coli* bacteria to express and purify the protein easily.

---

## Section 2: Data and Sequence Comparison

### 1. Counting FASTA records (`fasta-records`)

- **Answer:** Two records, each 12 nucleotides long.
- *My note:* Opened `PBIO_DNA_comparison.fasta`. There are two lines starting with `>` (headers for two sequences), and counting the letters under each gives 12 nucleotides each.

### 2. Alignment identity (`alignment-identity`)

- **Answer:** 10/12, or about 83.3%.
- *My note:* Compared the two 12-nt sequences position by position:
  - Sequence 1: `A T G C C G A T T A G C`
  - Sequence 2: `A T G T C G A T T A A C`
  - Differences are at position 4 (C vs T) and position 11 (G vs A). That means 10 out of 12 bases match: $10 / 12 = 0.8333$ (83.3%).

### 3. Documenting sequences for reproducibility (`reference`)

- **Answer:** The record identifier, database name and access date, and the sequence version if one is given.
- *My note:* Databases like NCBI or UniProt update records over time. To reproduce an analysis, someone needs the exact accession number, database, version, and the date it was downloaded.

### 4. Handling uncertain bases like 'N' (`uncertain-base`)

- **Answer:** Recognise N as an unspecified base and explicitly define how to handle such positions in the calculation.
- *My note:* In FASTA / IUPAC code, `N` means any base (sequencing machine wasn't sure). You can't just guess whether it's G/C or A/T; the script must have a clear rule (e.g. ignore or report ambiguity).

---

## Section 3: BLAST and Proteins

### 1. Tool selection (`blast-tool`)

- **Answer:** Because the query is a protein sequence and we are comparing it with proteins.
- *My note:* Our query sequence (`PBIO_protein_01.fasta`) is an amino acid sequence, and we want to search a protein database, so we use `blastp` (protein-protein). `blastn` would be for DNA/RNA nucleotides.

### 2. Identifying record P42212 (`blast-record`)

- **Answer:** Green fluorescent protein (GFP), 238 amino acids long.
- *My note:* Checked the reference card / UniProt record `P42212`: it corresponds to Green Fluorescent Protein with 238 amino acids.

### 3. Source organism in P42212 (`blast-species`)

- **Answer:** *Aequorea victoria*
- *My note:* Listed in the UniProt record as the organism from which GFP originates (crystal jellyfish).

### 4. Comparing BLAST hits: coverage vs identity (`blast-coverage`)

- **Answer:** B provides information about the whole query with high identity. A describes only a short fragment. Neither result alone proves the species of the sample.
- *My note:* Hit A has 100% identity over only 30% of the sequence (could just be a short conserved domain). Hit B covers 100% of the query with 85% identity, giving a much better picture of the entire protein. Also, sequence similarity alone doesn't guarantee the exact species because related organisms often share homologous genes.

---

## Section 4: Letters and Directions

### 1. DNA bases (`dna-alphabet`)

- **Answer:** A, T, C, G
- *My note:* Standard DNA alphabet: Adenine, Thymine, Cytosine, Guanine. (Uracil 'U' is in RNA instead of T).

### 2. Base pairing rules (`base-pairs`)

- **A pairs with:** T
- **T pairs with:** A
- **C pairs with:** G
- **G pairs with:** C
- *My note:* Watson-Crick rules: A with T (2 hydrogen bonds), C with G (3 hydrogen bonds).

### 3. Writing the reverse complement (`reverse-complement`)

- **Answer:** 5′-TTGCAT-3′
- *My note:* Working it out step by step:
  1. Original strand: `5'-ATGCAA-3'`
  2. Complementary strand (antiparallel): `3'-TACGTT-5'`
  3. Reading it in standard 5' to 3' direction: `5'-TTGCAT-3'`

---

## Section 5: From DNA to Protein (Gene Expression)

### 1. Transcribing DNA to RNA (`rna-sequence`)

- **Answer:** 5′-AUGUUCUUAUAA-3′
- *My note:* Coding DNA strand: `5'-ATGTTCTTATAA-3'`. The mRNA has the exact same sequence and direction, just with `U` replacing `T`.

### 2. Translating codons and stop codons (`stop-length`)

- **Answer:** M-F-L: three amino acids.
- *My note:* Reading the mRNA in triplets using the codon table:
  - `AUG` $\to$ Methionine (M)
  - `UUC` $\to$ Phenylalanine (F)
  - `UUA` $\to$ Leucine (L)
  - `UAA` $\to$ Stop codon!
  - The stop codon terminates translation and does *not* add an amino acid. So the final peptide is 3 amino acids long (M-F-L).

### 3. Synonymous mutations (`code-sequence`)

- **Answer:** The mRNA sequence, but not the encoded amino acid or the rules of the genetic code.
- *My note:* The second codon changed from `UUC` to `UUU`. Checking the genetic code table, both `UUC` and `UUU` code for Phenylalanine (Phe / F). The RNA sequence changed, but the protein didn't (silent mutation), and the universal code rules stay the same.

### 4. Expression vocabulary (`flow-terms`)

- **Transcription:** Synthesis of RNA from a DNA template
- **Translation:** Synthesis of protein on a ribosome
- **Codon:** Three nucleotides specifying an amino acid or stop
- **Stop codon:** Signals the end of translation

---

## Section 6: Inheritance

### 1. Chromosome counts in human cells (`chromosome-number`)

- **Answer:** Sperm cell: 23; body cell: 46.
- *My note:* Gametes (sperm and egg) are haploid ($n = 23$) from meiosis. Normal diploid somatic body cells have 23 pairs, so 46 chromosomes total.

### 2. Dominant vs recessive alleles (`dominance`)

- **Answer:** One copy of “A” in “Aa” is enough to produce a functional enzyme and visible pigment, just as in “AA”.
- *My note:* Having one working copy of the gene ('A') produces enough enzyme to make the purple pigment, so the heterozygote looks purple just like the homozygous 'AA'.

### 3. Punnett square for Aa × aa (`inheritance-cross`)

- **Box 1:** `Aa`
- **Box 2:** `Aa`
- **Box 3:** `aa`
- **Box 4:** `aa`
- *My note:* Parent 1 gives either `A` or `a` (50/50). Parent 2 only gives `a`. So half the boxes are `Aa` and half are `aa`.

### 4. Probability for the next child (`inheritance-risk`)

- **Answer:** 50%, as in each independent event.
- *My note:* Genetics doesn't have "memory" — previous children don't change the odds of the next conception. Each birth from $Aa \times aa$ has an independent 50% chance of being $aa$.

---

## Section 7: Variants and Traits

### 1. Genotype vs phenotype (`phenotype`)

- **Answer:** A height of 168 cm, measured at age 20.
- *My note:* Phenotype is an observable physical or measurable characteristic (like height). Genotype refers to the underlying DNA alleles.

### 2. Genetic variant notation (`variant-record`)

- **Gene symbol (e.g. *CCR5*):** Gene name
- **rs identifier (e.g. `rs53576`):** Variant database record
- **Δ32 notation:** Deletion of 32 nucleotides
- **Letter pair (e.g. GG):** Individual genotype at that locus

### 3. Interpreting OXTR rs53576 (`oxtr-caution`)

- **Answer:** Their empathy cannot be reliably assessed from this information alone.
- *My note:* The lecture stressed that media claims about rs53576 being the "empathy gene" are exaggerated. Meta-analyses show the effect is tiny or nonexistent. Complex traits like empathy involve many genes plus environment.

### 4. CCR5-Δ32 and HIV protection (`ccr5-caution`)

- **Answer:** They can greatly reduce susceptibility to CCR5-using HIV-1, but do not guarantee complete protection.
- *My note:* Having two copies of $\Delta32$ blocks HIV strains that enter via the CCR5 receptor, but some strains use CXCR4 instead, so it is not 100% absolute protection against all forms of HIV.

---

## Section 8: Ancestry and STRs

### 1. Lineage markers (`lineages`)

- **Mitochondrial DNA (mtDNA):** Maternal lineage
- **Y-chromosome DNA:** Paternal lineage
- **Autosomal DNA:** Ancestry through both parents

### 2. Inheritance of mtDNA (`mt-son`)

- **Answer:** They will receive mtDNA from their mother.
- *My note:* A son gets his mtDNA from his mom, but he won't pass it to his kids. His children will inherit their mtDNA from their own mother.

### 3. Tree branching for mtDNA (`haplogroup-branch`)

- **Answer:** Group-1b, which is also part of Group-1.
- *My note:* In the diagram, Group-1b branches off Group-1 after both mutations w1 and w2 occur. Because it branched from Group-1, it is a subgroup of it.

### 4. Sharing an mtDNA haplogroup (`haplogroup-limit`)

- **Answer:** Their mtDNA indicates shared maternal ancestry, but their shared female ancestor may have lived many generations ago.
- *My note:* mtDNA haplogroups remain stable over dozens or hundreds of generations without recombination. Sharing one means a common maternal ancestor, but she might have lived centuries ago.

### 5. Counting STR repeats (`str-count`)

- **Answer:** 5
- *My note:* Looked at the sequence: `CCT | AGAT AGAT AGAT AGAT AGAT | GTC`. The 4-letter motif `AGAT` repeats 5 times between the flanking sequences.

### 6. Paternity test evaluation (`paternity`)

- **Answer:** Candidate B is incompatible with example 1. Candidate A is not excluded, but further evidence is needed.
- *My note:* A mismatch at an obligate paternal allele rules someone out (Candidate B). Candidate A matches at one locus, meaning he isn't ruled out yet, but in real forensic cases you need around 15–20 STR markers to establish paternity with high probability.

---

## Section 9: Summary and Review

### 1. DNA mutations in coding regions (`review-protein`)

- **Answer:** The effect depends on the particular change. It may or may not alter an amino acid.
- *My note:* Because of wobble/degeneracy in the genetic code, some base changes don't change the amino acid (silent/synonymous), while others do (missense) or create a premature stop codon (nonsense).

### 2. Y-chromosome ancestry limitations (`review-ancestry`)

- **Answer:** It is incorrect: this analysis concerns one paternal line, not all ancestors.
- *My note:* The Y chromosome only tracks the direct father-to-father-to-father line. If you go back just 10 generations, you have over 1,000 ancestors, but the Y chromosome only represents one of those lineages.

### 3. Evaluating sequence search results (`review-data`)

- **Answer:** Check the data type, source record, extent of the alignment and limitations of the analysis.
- *My note:* Before making conclusions from a BLAST hit, check whether the alignment covers the whole sequence (coverage), whether the database entry was reviewed, and whether the hit could be a homologous gene in another species.

---

## Bonus: Optional Extensions

### 1. PDB 1GFL experimental method (`bonus-structure`)

- **Answer:** The structural model was determined using experimental data.
- *My note:* PDB record 1GFL was solved by X-ray crystallography (experimental X-ray diffraction), not a purely theoretical computer simulation.

### 2. DYS456 STR motif (`bonus-ystr`)

- **Answer:** AGAT: a block of four nucleotides.
- *My note:* YHRD notation `[AGAT]N` indicates that the 4-base block `AGAT` is the repeating tetranucleotide unit.

### 3. Comparing population frequencies (`bonus-frequency`)

- **Answer:** Sample A has a higher percentage of men with R1a, while sample B has a larger number of them.
- *My note:* Simple math check:
  - Sample A: 40% of 100 = 40 men.
  - Sample B: 20% of 1,000 = 200 men.
  - Higher percentage in A (40% > 20%), but higher absolute count in B (200 > 40).
