Bioinformatics: where does a protein live?
Find where marker proteins live in two databases, check a cell line, and knit your first R Markdown report. Builds on A tour of the cell, Seeing cells: microscopy and Taking cells apart and perturbing them.
Part A: in the browser
UniProt is the reference database of proteins; Human Protein Atlas (HPA) shows real immunofluorescence images of each protein in cultured human cells.
A1. Calnexin in UniProt
Open UniProt entry P27824 (human calnexin). P27824 is its accession; CANX is its gene symbol. Click Subcellular Location in the menu on the left.
T1 Where in the cell is calnexin, and how does it sit in the membrane?
Endoplasmic reticulum membrane, as a single-pass type I membrane protein (one transmembrane helix, the large N-terminal part in the ER lumen).
A2. Organelle markers in HPA
For each gene, open the page and click SUBCELLULAR in the row of section names. Read Main location. The protein is green; nucleus blue, microtubules red, ER yellow.
T2 Give the HPA main location of TOMM20, GOLGA2 and LMNB1.
TOMM20: Mitochondria. GOLGA2: Golgi apparatus. LMNB1: Nuclear membrane.
A3. Catalase: two databases disagree
Catalase is the classic peroxisome marker (cell-methods lecture). UniProt P04040 says peroxisome matrix. Now open CAT in HPA, SUBCELLULAR.
T3 [VG] HPA gives a different main location. Which, and which statement best explains the difference?
- Catalase leaves peroxisomes in cultured cells.
- Peroxisomes are small dots near the resolution limit of light microscopy, so in an image they look like any other small vesicle.
- UniProt’s peroxisome location is only a prediction.
HPA says Vesicles. b is right: peroxisomes (0.1–1 µm) appear as small dots, and the image alone cannot tell which kind of dot it is. UniProt’s location comes from experiments, so c is wrong. A co-stain with another peroxisome marker would decide.
A4. Which cells make insulin?
Open INS in HPA and click SINGLE CELL. This shows mRNA in each cell type, measured by single-cell RNA sequencing.
T4 Which cell type expresses INS?
Pancreatic islet cells (cell type enriched; essentially absent elsewhere).
A5. Is the culture what you think it is?
Cellosaurus registers every cell line under a stable accession. Open HeLa, CVCL_0030 and find the virus under Transformant. Then open HEp-2, CVCL_1906 and read Problematic cell line (lecture).
T5 HEp-2 was thought to come from a laryngeal cancer. Which cell line is it really?
HeLa: HEp-2 is a contaminated HeLa derivative, so it carries HPV18 like HeLa.
Part B: in R
Download the template bioinfo-protein-atlas.Rmd into a new folder. You need the packages rmarkdown and ggplot2. All code that fetches and cleans the data is given; you fill three blanks marked ___.
R Markdown in five minutes
An .Rmd file mixes text and R code. Knitting runs all code from top to bottom and writes one HTML report with text, tables and plots.
YAML header between the
---lines: title, author, output. Put your name inauthor:.Code chunks start with
```{r name}and end with```.Inline R in text, such as
`r round(ratio)`, is replaced by its value.Knit in RStudio with the Knit button, or in a terminal:
Rscript -e 'rmarkdown::render("bioinfo-protein-atlas.Rmd")'
Knitting starts from an empty R session: objects made in the console do not exist.
B1. Knit it untouched
You get an HTML with red Error messages. Each points at a ___ that is not filled yet; errors further down follow from the first one.
B2. Fill the blanks, knitting after each
- Blank 1: calnexin’s accession from A1, in quotes. You then see a table of 13 proteins with their length and mass.
- Blank 2:
which.maxfinds the heaviest; change___so the next line finds the lightest. The sentence below the chunk now shows a number. - Blank 3: the column that holds the compartment. The plot appears, with coloured dots and a legend.
T6 In your plot, which protein is the lightest, and which compartment is it coloured as?
Histone H4, Nucleus (11.4 kDa). The heaviest is titin, 3816 kDa.
T7 How many times heavier than the lightest is the heaviest protein (the inline R number in your report)?
About 336 (titin 3816 kDa / histone H4 11.4 kDa). This is why the x axis is logarithmic: on a linear axis all other proteins would be squeezed near zero.
If UniProt is down, set use_snapshot <- TRUE in the setup chunk and knit again. The report then reads the course’s saved copy (put it in a data/ folder next to the .Rmd, or the report downloads it). Data: UniProtKB release 2026_04 (CC BY 4.0), retrieved 2026-11-18.
Hand in
- The knitted HTML (not the
.Rmd), with your name in the header. - No red error messages left.
- The plot has coloured dots and a legend; the sentence shows a number, not
NA.