P
PBIO Master Portal PJATK 2026/27
Study & Tasks Guide 📚 Launch Workbook 🚀

Basics of Bioinformatics (PBIO)

Your comprehensive interactive study companion for PJATK Distance Learning. Master molecular biology, sequence formats, alignment algorithms, database querying with Python, and all 35 Exercise 1 practical tasks.

📺 Full Course YouTube Playlist (3 Videos) ↗ 📋 Course Rules & Syllabus ↗
3 Videos
8 + 8 Lectures & Labs
35+3 Core Tasks
s32484 Student ID

📄 Slide Deck Viewer

Viewing Lecture 1 Slides (PBIO lecture 1.pdf)
↗ Pop Out

📋 Course Organization & Grading Milestones

Key requirements presented by Prof. Adam Kuzdraliński
Full Intro Guide ↗
Teaching Staff
Prof. Adam Kuzdraliński
Labs: Dr. T. Opałka & Dr. A. Wonowska
Lab Reports
Mandatory for Every Class
8 practical labs total
Midterm Test
After Topic 4
Covers topics 1 through 4
Team Project & Exam
Teams of 2–4 Students
Final exam held on campus

Lecture 1 · Synchronized Timeline

Click any timestamp to jump the video directly to that concept
02:04:25

⚡ Interactive Bio Lab & In-Browser Python Simulator

Experiment with biological sequences in real time. Calculate thermodynamic GC content, visualize Watson-Crick duplex pairing, simulate in-silico Central Dogma transcription and translation, master biological vs Python 0-based coordinate slicing, query live UniProt REST APIs, and simulate data science pipelines.

Hands-on Sandbox

🧬 Live Sequence Workbench

Reactive DNA / RNA / Protein analysis engine
Lecture 1 & 3 Core
Presets:
0
Sequence Length (bp)
0.0%
GC Content
0.0°C
Est. Melting Temp (Tm)
0 Da
Mol. Weight
Thermodynamic Stability Gauge: Awaiting sequence
0% (AT-rich) 50% (Standard) 100% (High-GC Thermophile)

📐 Biological (1-based) vs. Python (0-based) Slicing Sandbox

Eliminate off-by-one errors visually (Lecture 3 Slide 14)
Exam Crucial

Drag the sliders below to slice a biological feature. Notice how biological coordinates are 1-based and closed $[start, end]$, whereas Python slicing is 0-based and half-open seq[start-1 : end]!

1
30
Biological Notation
[1, 30]
Fully closed · Length: 30 bp
Python Slice Syntax
seq[0 : 30]
0-based half-open · Length: 30 bp
Extracted Subsequence:
-

🌐 Live UniProtKB REST API Fetcher

Real-time HTTP retrieval from rest.uniprot.org
Live REST

Test programmatic REST API queries right in your browser. Enter any valid UniProt accession number or click a preset to query live JSON metadata and functional annotations:

Ready to query rest.uniprot.org

📊 Python Data Science & Matplotlib Simulator

Lecture 3 Slides 38–41: Sequence distributions & tables
Canvas Engine

Select a data pipeline scenario to execute in-browser:

Adjust Histogram Bins: 15 bins
# Python Pipeline Output Console
>>> Running scenario 1: Protein length distribution
>>> Loaded 250 reviewed human protein sequences
>>> Mean length: 482 aa | Median length: 395 aa (Right-skewed distribution)
>>> Rendered publication histogram to Canvas.

🔬 Complete Exercise 1 Solutions & Rationale

All 35 core questions + 3 bonus tasks explained with biological logic
Full Markdown Guide ↗
Section 1: Matter — Molecules, Polymers & Cells ▼

Tasks 1.1–1.5 Breakdown:

  • Small Molecules vs Macromolecules: Water ($H_2O$) and ions are small molecules; Nucleic acids (DNA/RNA) and proteins are linear polymers. Lipids form large aggregates (bilayers) but are not linear covalent polymers.
  • DNA Building Block: dAMP (2′-deoxyadenosine monophosphate). Features a phosphate group, 2′-deoxyribose sugar, and adenine base.
  • Cellular Structure: Bacteria lack nuclei (prokaryotes); eukaryotic cells house DNA in a membrane-bound nucleus and have mitochondria.
Section 2: Data — FASTA Records & Sequence Identity ▼

Key Principles:

  • FASTA Format: Line 1 starts with > followed by identifier and optional description. Subsequent lines hold the raw sequence.
  • Sequence Identity Formula: $$\text{Identity} = \frac{\text{Matching positions}}{\text{Total positions compared}} \times 100\%$$
  • Sample A vs Sample B (12 bases): Positions 4 (C vs T) and 10 (C vs T) differ. Matches = 10 / 12 = 83.3%.
  • Uncertain Base 'N': Means an ambiguous nucleotide. It represents genuine uncertainty in sequencing and cannot be eliminated by recalculation.
Section 3: BLAST — Sequence Similarity Search ▼

Querying Sequence P42212:

  • Identified Protein: Green Fluorescent Protein (GFP) from jellyfish Aequorea victoria.
  • Accession: P42212.1 (Swiss-Prot reviewed).
  • E-value interpretation: E-value = 0.0 (statistically indistinguishable from zero, meaning probability of random chance match is negligible).
  • Query Cover vs Identity: Two sequences can share 100% identity over a tiny 20-amino acid domain, but have 10% query coverage overall. Always verify both metrics!
Section 4: DNA — Complementarity & Reverse Complement ▼

Watson-Crick Base Pairing Rules:

  • $\text{A} \leftrightarrow \text{T}$ (2 hydrogen bonds), $\text{C} \leftrightarrow \text{G}$ (3 hydrogen bonds).
  • Writing Reverse Complements: If input strand is $5'\text{-ATGCCG-}3'$, Watson-Crick complement is $3'\text{-TACGGC-}5'$. By convention, write $5' \to 3'$: $5'\text{-CGGCAT-}3'$.
  • Double Stranded Stability: Sequences with higher GC content require higher temperatures to denature due to triple hydrogen bonding.
Section 5: Expression — Central Dogma & Codon Counting ▼

Information Flow & Codon Logic:

  • $\text{DNA} \to \text{mRNA} \to \text{Polypeptide}$.
  • The Stop Codon Trap: An mRNA with 5'-AUG-UUU-UAA-3' has 3 codons, but translates into 2 amino acids (`Met-Phe`), because UAA triggers termination and does not add a residue.
  • Degeneracy: 64 possible triplet codons encode only 20 standard amino acids + 3 stop signals. Multiple codons specify the same amino acid.
Section 6: Inheritance — Chromosomes & Mendelian Crosses ▼

Chromosome Counts & Punnett Risks:

  • Human somatic cells: 46 chromosomes (23 homologous pairs: 22 autosomes + 1 sex chromosome pair).
  • Gametes (sperm/egg): 23 chromosomes (haploid). Red blood cells contain 0 nuclear DNA.
  • Mendelian Cross ($Aa \times aa$): Offspring risk of recessive phenotype ($aa$) is 50% ($0.5$).
Section 7 & 8: Medicine, Genealogy & Richard III Case ▼

Critical Real-World Genetics:

  • Oxytocin Receptor (OXTR `rs53576`): Popular media labeled it "the empathy gene," but scientific meta-analyses showed associations are statistically weak or null. Complex traits are polygenic.
  • CCR5-Δ32: 32-bp deletion causing frameshift; homozygous carriers lack surface CCR5 receptor, conferring resistance to common HIV-1 strains.
  • King Richard III Mystery: mtDNA matched modern maternal descendants over 500 years; Y-chromosome STRs did not match due to a historical non-paternity event in the male lineage.

🚀 Launch Exercise 1 Workbook

Session Ready

The interactive PBIO client-side workbook application runs directly in your browser. All answers, progress indicators, and hint logs are stored locally.

📦 Session Data & Fast Restores

Restore previous progress

If your browser session refreshes, you can load any of your completed .pbio session backups in the workbook:

  • 💾 PBIO_01/PBIO_01_EN_s32484_1.pbio (Original full submission)
  • 💾 PBIO_01/assets/PBIO_01_EN_s32484_2.pbio (Checkpoint 2)
  • 💾 PBIO_01/assets/PBIO_01_EN_s32484_3.pbio (Checkpoint 3)
  • 💾 PBIO_01/assets/PBIO_01_EN_s32484_4.pbio (Checkpoint 4)

🔬 Complete Exercise 2 Solutions & Rationale

Verified practical solutions, biological mechanisms, and code implementations
Exercise 2 Tasks 1–10
01 Task 1 · Complementary & Reverse Complement DNA in Python
▼

Code Implementation:

def get_complement(dna_seq: str) -> str:
    """Returns the complementary DNA strand (A<->T, C<->G)."""
    trans_table = str.maketrans("ACGTUacgtuNn", "TGCAAaccaaNn")
    return dna_seq.translate(trans_table)

user_sequence = input("Enter DNA sequence: ").strip()
complementary_dna = get_complement(user_sequence)

print("Complementary strand (3'->5'): ", complementary_dna)
print("Reverse complement   (5'->3'): ", complementary_dna[::-1])
Biological Rationale: DNA strands are antiparallel ($5' \to 3'$ and $3' \to 5'$). Direct complementation gives the strand running $3' \to 5'$. Molecular biology conventions require reporting in the $5' \to 3'$ direction, so reversing the complement is necessary for primer design and gene annotation.
02 Task 2 · In-Silico Translation of Viral Nucleic Acid
▼

Translated Amino Acid Sequence (Reading Frame +1):

MYSFVSEEIGTLIVNSVLLFLAFVVFLLVTLAILTALRLCAYCCNIVNVSLVKPSFYVYSRVKNLNSSRVPDLLV
Biological Rationale: Reading frame +1 begins at nucleotide 1 (`AUG` $\to$ Methionine). It produces an uninterrupted 75-amino-acid polypeptide without premature stop codons. Alternative frames (+2 and +3) encounter immediate nonsense stop codons, demonstrating that Frame +1 is the biological coding sequence (CDS).
03 Task 3 · BLAST Identification: Target Organism
▼

Identified Organism & Protein:

Organism: Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2)
Protein: Envelope small membrane protein (E protein)
NCBI Taxonomy ID: 2697049
Biological Significance: The E protein is a transmembrane structural protein involved in viral assembly, budding, and pathogenesis (acting as a viroporin ion channel).
04 Task 4 · Multiple Alignment: Virus 1, Virus 2, Virus 3
▼

Multiple Sequence Alignment (MSA):

Virus_1: MYSFVSEEIGTLIVNSVLLFLAFVVFLLVTLAILTALRLCAYCCNIVNVSLVKPSFYVYSRVKNLNSSRVPDLLV
Virus_2: MYSFVSEEIGTLIVNSVLLFLAFVVFLLVTLAILTALRLCAYCCNIVNVSLVKPSFYVYSRVKNLNSSRVPDLLV
Virus_3: MYSFVSEEIGTLIVNSVLLFLAFVVFLLVTLAILTALRLCAYCCNIVNVSLVKPTFYVYSRVKNLNSSRVPDLLV
                                                               :*******************
Variant Analysis: Virus 1 and Virus 2 are 100% identical. Virus 3 harbors a single missense substitution at position 55: Serine (S) $\to$ Threonine (T) (S55T). Both are polar uncharged residues with hydroxyl (–OH) groups, representing a conservative substitution that preserves structural fold while marking a phylogenetic lineage split.
05 Task 5 · UniProtKB Swiss-Prot vs TrEMBL & GFP P42212
▼
Key Distinction:
  • Swiss-Prot (Reviewed): Manual curation by human experts integrating literature, function, and post-translational modifications.
  • TrEMBL (Unreviewed): Automated computational translations of submitted EMBL/GenBank/DDBJ sequences without human review.
  • The "Reviewed" Fallacy: Reviewed does NOT guarantee wet-lab validation; always inspect the Evidence Code tag!
06 Task 6 · GenBank (Archive) vs RefSeq (Curated Standard)
▼
Accession Format Rules:
  • GenBank: Direct author submissions. Letters + numbers without underscores (e.g. U50222.1). Highly redundant, immutable archives.
  • RefSeq: Curated reference models. Always contains an underscore: NM_ (mRNA), NP_ (Protein), NC_ (Complete chromosome), NG_ (Genomic region). Non-redundant.
07 Task 7 · Ensembl BioMart & Reference Coordinates
▼
Coordinate Rules & Assembly Versioning:
  • Coordinates change across genome builds! GRCh38 (hg38) has different chromosomal start/end positions from GRCh37 (hg19).
  • BioMart uses Filters to narrow candidate entities and Attributes to choose output columns.
08 Task 8 · Structural Bioinformatics: RCSB PDB & AlphaFold
▼
Resolution vs Confidence:
  • PDB Resolution: Measured in Ångströms ($\text{Å}$). Lower is better ($<1.5\,\text{Å}$ atomic resolution; $>3.0\,\text{Å}$ low resolution).
  • AlphaFold pLDDT Score: Confidence metric from 0 to 100. Residues with $\text{pLDDT} < 50$ indicate Intrinsically Disordered Regions (IDRs) that lack rigid structure in solution.

📋 Exercise 2 Key Reference Sheet

Essential facts for tests and lab credit
Universal Taxon Identifier Taxonomy

Human: organism_id:9606 · SARS-CoV-2: taxid:2697049 · Jellyfish Aequorea victoria: taxid:6100. Always filter by TaxID to prevent text ambiguity errors.

RefSeq Prefixes NCBI

NM_ = Curated mRNA · NP_ = Curated protein · NC_ = Complete chromosome · XM_ / XP_ = Model computationally predicted.

NCBI GEO Identifiers Expression

GSE = Series study · GSM = Individual biological sample · GPL = Platform technology (microarray or sequencing machine).

1-to-Many Splicing Multiplicity Data Engineering

1 Gene locus $\to$ Multiple alternative transcript variants $\to$ Multiple distinct protein isoforms. Joining gene IDs to protein IDs multiplies rows!

🗄️ Primary Biological Databases Map

From Lecture 2: Where to find each biological data type
Lecture 2 Slide 9
UniProtKB (Universal Protein Resource) Proteins

Two main sections: Swiss-Prot (reviewed by professional biocurators) and TrEMBL (unreviewed computational translations). Use organism_id:9606 for human.

NCBI GenBank vs RefSeq Sequences

GenBank: Archival repository of researcher-submitted sequences. Immutable, high diversity.
RefSeq: Curated, non-redundant reference genomes and standards.

RCSB PDB & AlphaFold Database 3D Structures

Atomic coordinates $(x,y,z)$. PDB contains experimentally solved structures (X-ray, Cryo-EM, NMR). AlphaFold DB contains deep learning predicted structures accompanied by pLDDT confidence scores.

NCBI GEO (Gene Expression Omnibus) Expression

Functional genomics repository. Organised into GSE (Series study), GSM (individual sample), and GPL (platform assay).

🐍 Python API Scripting & Automation

Demonstrated in Lecture 2 Slides 20–25
REST API

Query UniProtKB programmatically for reviewed human proteins and parse into a Pandas DataFrame:

import urllib.request
import pandas as pd
import io

# UniProtKB REST search endpoint for human reviewed proteins
url = (
    "https://rest.uniprot.org/uniprotkb/search?"
    "query=organism_id:9606+AND+reviewed:true&"
    "format=tsv&"
    "fields=accession,id,protein_name,gene_names,length&"
    "size=100"
)

headers = {"User-Agent": "PBIO_Study_Hub/1.0 (s32484@pjwstk.edu.pl)"}
req = urllib.request.Request(url, headers=headers)

with urllib.request.urlopen(req) as response:
    if response.getcode() == 200:
        tsv_data = response.read().decode("utf-8")
        df = pd.read_csv(io.StringIO(tsv_data), sep="\t")
        print(f"Downloaded {len(df)} records:")
        print(df[["Entry", "Length", "Gene Names"]].head())
💡 API Best Practice: Always include an informative User-Agent with your contact email so database administrators can notify you instead of blocking your IP during high-throughput queries.

📖 Comprehensive Bioinformatics Glossary

Search over 20 essential terms and concepts from Lectures 1 & 2
FASTA File Format

Standard text format for nucleotide or peptide sequences. Line 1 begins with > and contains the identifier; subsequent lines contain single-letter sequence codes.

E-value (Expect Value) BLAST Metric

The number of random alignments with a score $\ge S$ expected by chance in a database search. Values approaching 0.0 denote non-random, biologically significant matches.

Query Coverage Alignment

The percentage of the input query sequence covered by the alignment hit. A 100% identity hit with only 15% query cover may indicate an isolated structural motif rather than true gene homology.

pLDDT Score AlphaFold DB

Predicted Local Distance Difference Test (0–100). Measures structural confidence per residue. $>90$ is very high; $<50$ frequently correlates with naturally intrinsically disordered regions (IDRs).

STR (Short Tandem Repeat) Forensics

Tandemly repeated 2–6 base pair motifs (microsatellites). The number of repeats varies between individuals, forming the basis for forensic DNA profiling (CODIS markers).

Mitochondrial DNA (mtDNA) Genealogy

Circular genome (~16.6 kb in humans) housed in mitochondria. Inherited strictly maternally without meiotic recombination, enabling genealogical tracing across hundreds of years (e.g. Richard III).

GFF3 Format Annotation

General Feature Format v3. A standard 9-column tab-delimited file describing genomic features (genes, exons, CDS) using 1-based inclusive coordinates.

Ensembl BioMart Data Mining

Web and programmatic query interface for mining genomic attributes without SQL. Allows users to specify Filters (e.g., Chromosome 21) and Attributes (e.g., Gene ID, Ensembl Transcript ID).

UniRef (UniRef100, 90, 50) Non-Redundant

UniProt Reference Clusters. Groups sequence fragments sharing $\ge 100\%$, $90\%$, or $50\%$ identity into single representative entries, accelerating computational searches.

🎯 Interactive PBIO Mastery Quiz

Test your understanding of core concepts from Lectures 1, 2 & 3 before exams
Score: 0 / 15
1. You run a BLASTp search against UniProtKB. The top hit shows 100% Identity, an E-value of 0.005, but only 12% Query Coverage. What is the most scientifically sound conclusion?
2. An mRNA sequence is 5'-AUG-UGG-GAA-UAA-3'. How many amino acids will be in the peptide chain synthesized by the ribosome?
3. In UniProtKB, what does the status "Reviewed" (Swiss-Prot) guarantee about an entry?
4. You want to download all human protein records from UniProtKB. Why should you filter by organism_id:9606 rather than searching the text word "human"?
5. In King Richard III's genealogical identification, why did mtDNA match living relatives while Y-chromosome STRs did not?
6. Which accession number format represents a curated reference mRNA model from the NCBI RefSeq database?
7. When you query Ensembl BioMart for gene chromosomal coordinates, why do coordinates differ between GRCh37 (hg19) and GRCh38 (hg38)?
8. An AlphaFold structure prediction has a region with a pLDDT score < 50 (colored orange/red). What does this score indicate?
9. You merge a table of 100 Gene IDs with an NCBI transcript table and end up with 430 rows. What biological phenomenon caused this row multiplication?
10. In NCBI Gene Expression Omnibus (GEO), what entity does an accession prefixed with GSM represent?
11. You run pip install biopython in your terminal. How must you import Biopython modules in your Python script?
12. A GenBank annotation states that a catalytic domain spans biological coordinates $[10 \dots 25]$ (inclusive). How do you slice this exact domain in Python?
13. What is the fundamental difference between SeqIO.parse() and SeqIO.read() in Biopython?
14. Why is TSV (Tab-Separated Values) preferred over CSV (Comma-Separated Values) for biological data exchange?
15. Why is the median preferred over the arithmetic mean when reporting representative protein sequence lengths?

🎙️ Audio Deep Dive Studio

Dr. Alex & Sam explain PBIO Lectures 1 & 2
Web Speech API

Episode 1 · Foundations of Bioinformatics & Exercise 1 Gotchas

Listen to the dramatized conversation between senior bioinformatician Dr. Alex and CS student Sam breaking down DNA structure, stop codons, and BLAST query coverage.

Ready to stream audio narration via browser speech synthesis

📄 Script Transcript Preview

🤖 Generate Authentic Audio in NotebookLM

Google's dual-host AI Deep Dive podcast engine
Open NotebookLM ↗

NotebookLM generates conversational, podcast-style audio discussions between two AI hosts. We have prepared specialized, prompt-engineered source briefing packs in your workspace:

Lecture 1 Podcast Source Pack View File ↗

Includes DNA chemistry, reverse complement rules, stop codon traps, Richard III genealogy, and BLAST query coverage vs identity.

Lecture 2 Podcast Source Pack View File ↗

Includes Archives vs Curated databases, the "Reviewed" fallacy, row multiplication in 1-to-many joins, organism_id:9606, and Term Projects.

Lecture 3 Podcast Source Pack View File ↗

Includes Biopython SeqIO, coordinate slicing (0-based vs 1-based), memory-safe gzip streaming, REST API pagination, and project pipeline design.

Quick Generation Steps:

  1. Go to notebooklm.google.com and click Create new notebook.
  2. Click Add Sources $\to$ select Paste text.
  3. Click the copy button above, paste the text into NotebookLM, and save.
  4. Under Notebook Guide (top right), click Generate next to Audio Overview.
  5. In ~2 minutes, your AI audio podcast will be ready to stream or download!