FAIR data, reproducible analyses and AI

Methods and training in bioinformatics — BIO390 Introduction to Bioinformatics

Geert van Geest

SIB Swiss Institute of Bioinformatics

2026-12-01

About me

  • Geert van Geest
  • Training project manager SIB Swiss Institute of Bioinformatics
  • Co-leading the ELIXIR Training Platform
  • Developer and maintainer of glittr.org
  • 2020-2025 trainer and bioinformatician at the Interfaculty Bioinformatics Unit, University of Bern
  • Have been teaching courses on omics data analysis, reproducibility and FAIR research

Today

  1. Shared data: the foundation of bioinformatics, and the FAIR principles
  2. FAIR data and AI: why machine-actionable data matters more than ever
  3. Reproducible analyses: from scripts to workflows

— break —

  1. AI in the bioinformatician’s daily work: LLMs, agents and MCP; opportunities and risks
  2. Skills and training: what does a bioinformatician need?

Learning outcomes

After this lecture you can:

  • Explain the FAIR principles and give examples of how SIB/ELIXIR resources implement them
  • Argue why FAIR, well-annotated data is a prerequisite for reusing data and building useful AI models
  • Describe the main building blocks of a reproducible analysis (code, environment, workflow, data)
  • Explain what an LLM, an agent and an MCP server are, and how they connect to databases
  • Assess opportunities and risks of using AI to write code and interpret results
  • Reflect on the skills you need as a (future) bioinformatician

Questions!

  • Scan the QR code

  • OR: go to vevox.app and use the code: 183-757-288

Shared data: the foundation of bioinformatics

Bioinformatics thrives on shared data

  • Almost every analysis starts with someone else’s data:
    • reference genomes and annotations
    • protein sequences and functions
    • structures, expression, interactions, pathways
  • Your own experiment only becomes meaningful in context of what is already known
  • Shared data are the product of decades of curation by experts
  • Major scientific effort goes into building and maintaining databases and software

A Swiss story: Swiss-Prot and Expasy

  • 1986: Amos Bairoch starts Swiss-Prot in Geneva: a manually curated protein knowledgebase
  • 1993: Expasy goes online, one of the first web servers in the life sciences
  • 1998: SIB is founded
  • 2002: Swiss-Prot + TrEMBL + PIR → UniProt
  • Today: still expert-curated, with evidence for every annotation

SIB Swiss Institute of Bioinformatics

  • Non-profit, national organisation for biological & biomedical data science
  • ~900 experts in 28 partner institutions
  • Three pillars:
    • coordination of Swiss bioinformatics
    • open databases & software
    • centre of excellence: expertise & services

Some SIB resources:

  • UniProtKB/Swiss-Prot
  • Expasy (portal)
  • SWISS-MODEL (structures)
  • STRING (interactions)
  • Bgee (expression)
  • OMA (orthology)
  • Rhea, SwissLipids
  • Cellosaurus (cell lines)

ELIXIR: a European infrastructure for life science data

“ELIXIR’s mission is to build a sustainable European infrastructure for biological information.”

  • Intergovernmental organisation, since 2013
  • Nodes in 20+ countries + EMBL-EBI; SIB is the Swiss node
  • Selects Core Data Resources with long-term value
  • Played an important role in the foundation of the FAIR principles

When data sharing makes a difference

  • January 2020: the first SARS-CoV-2 genome is shared publicly within days of sequencing
  • Within days, groups designed diagnostic PCR tests and mRNA vaccine candidates
  • Thousands of genomes followed, shared via INSDC (ENA/GenBank/DDBJ) and GISAID
  • In Switzerland: e.g. wastewater surveillance of variants (V-pipe, SIB/ETH)

Tip

Data are most valuable when others can find and use them — quickly, and with confidence.

But sharing alone is not enough

“I put my data in the supplementary material, so it’s shared.”

  • Can anyone find it? (Is it indexed? Does it have an identifier?)
  • Can they get it? (Under which conditions? Will the link still work in 10 years?)
  • Can someone else or a computer understand it? (Formats, vocabularies, gene names?)
  • Are they allowed and able to reuse it? (License, provenance, methods?)

FAIR principles

  • Findable
  • Accessible
  • Interoperable
  • Reusable


For humans and machines

FAIR in a bit more detail

Key idea Example
F Globally unique, persistent identifier; rich metadata; indexed DOI, UniProt accession P04637
A Retrievable by identifier via a standard protocol; metadata stays available HTTPS, REST API, authentication if needed
I Shared formats, vocabularies and ontologies FASTA, mmCIF, Gene Ontology, ChEBI
R Clear license, provenance, community standards CC BY 4.0, evidence codes, MIAME

FAIR ≠ open

  • FAIR is about how data can be found and used — not whether everyone can download them
  • “As open as possible, as closed as necessary”
  • Sensitive human data can be FAIR:
    • Metadata public and findable
    • Access controlled, e.g. via a data access committee
    • e.g. European Genome-phenome Archive (EGA), BioMedIT / Swiss Personalized Health Network (SPHN)

A UniProt entry: P04637 (p53)

FAIR in practice: a UniProt entry

  • F: stable accession P04637 (TP53), indexed and searchable
  • A: web page, REST API, FTP, SPARQL
  • I: annotations use GO, ECO, ChEBI; links to 100+ other databases
  • R: CC BY 4.0 license, evidence and source for every annotation, versioned releases
# human-readable
https://www.uniprot.org/uniprotkb/P04637

# machine-readable
curl "https://rest.uniprot.org/uniprotkb/P04637.json"

curl "https://rest.uniprot.org/uniprotkb/P04637.fasta"

Interoperability: speaking the same language

  • Ontologies: controlled, structured vocabularies
    • Gene Ontology, Uberon (anatomy), ChEBI (chemicals), Cell Ontology, ECO (evidence)
  • Identifiers that resolve: identifiers.org, bioregistry.io
  • Standards for formats and metadata: find them on FAIRsharing.org
  • Linked data: SIB resources expose SPARQL endpoints that can be queried together (federated queries)

Example: when interoperability fails

  • Excel converts gene symbols to dates:
    • SEPT2 → 2-Sep
    • MARCH1 → 1-Mar
  • ~20% of papers with Excel gene lists contained such errors
  • 2020: HGNC renamed the genes: SEPTIN2, MARCHF1

a % of papers with affected gene lists, per journal; b affected files per year

Machine-actionable: querying knowledge graphs

PREFIX up: <http://purl.uniprot.org/core/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>

SELECT ?protein ?name
WHERE {
  ?protein a up:Protein ;
           up:reviewed true ;
           up:organism taxon:9606 ;
           up:recommendedName/up:fullName ?name .
}
LIMIT 10
  • Run it at sparql.uniprot.org
  • Similar endpoints for Bgee, OMA, Rhea, SwissLipids, Cellosaurus…
  • …and now with a natural language interface: chat.expasy.org translates questions into SPARQL

Ask Expasy: plain language → SPARQL

FAIR data and AI

AI runs on data

  • AlphaFold (Nobel Prize 2024) was trained on the Protein Data Bank
    • since 1971, >200,000 curated structures
    • predictions shared FAIRly in AlphaFold DB
  • Protein language models (e.g. ESM) are trained on UniProt

p53 (TP53) in AlphaFold DB:

Tip

Decades of open, curated, standardised data made these breakthroughs possible.

Why AI needs FAIR data

FAIR Why it matters for AI
Findable You can only train on data you can find — at scale
Accessible Programmatic access (APIs) instead of manual downloads
Interoperable Combining datasets requires shared formats, identifiers and ontologies
Reusable Licenses, provenance and quality annotations decide what is allowed and trustworthy to use

Question

Shared ≠ reusable: a decade-scale audit

  • 2,896 human microbiome studies (2012–2025), checked by hand
  • Only 37% pointed to sequence data that could actually be accessed
  • Only 5.9% deposited per-sample disease, age and sex
  • → 85.5% of ~720,000 samples cannot be reused for meta-analysis without contacting the authors
  • No improvement over the decade; high-impact journals: more data deposited, not better annotated

Important

Available ≠ reusable. The metadata, with standards (MIxS) and ontologies (e.g. MONDO for disease), make data AI-ready.

Reproducible analyses

Reproducibility/reusability in bioinformatics

  • Tier 1: Being able to find and access data
  • Tier 2: Reproducing analyses
  • Tier 3: Reusing analyses
  • If 85.5% of public human microbiome samples cannot be reused without contacting the authors, what about their analyses?
  • Computational analyses should be the easiest to reproduce — same data, same code, same result?

Reusable analyses: reproducibility vs reusability

  • Reproducibility: results should be achieved again with a high degree of reliability when the analysis is replicated
  • Reusability: the extent to which existing digital objects can be used for other purposes than their initial purpose

Tip

Reproducible analyses let others verify your work. Reusable analyses let others build on it.

Why can a reusable analysis be difficult?

  • Short term goal: get your results ASAP
  • Mid term goal: publish
  • Long term goal: re-use and stand on the shoulders of giants!

We humans are particulaly bad at committing ourselves to long-term goals - so we focus on the short term only ..

Tip

Most important collaborator: yourself in 6 months

Five pillars of reproducible research

The toolbox

Pillar Tools
Literate programming Quarto, Jupyter, R Markdown
Version control & sharing git, GitHub/GitLab
Compute environment conda/Bioconda, renv, containers (Docker, Apptainer), BioContainers
Persistent data sharing Zenodo (DOI), ENA, PRIDE, …
Documentation README, CITATION.cff, comments, metadata

Workflow managers

  • Chain tools into a pipeline that runs end-to-end
  • Handle software environments, parallelisation, HPC/cloud
  • Resume after failure; record what ran
  • Examples: Nextflow, Snakemake, Galaxy (graphical)

%%{init: {"flowchart": {"padding": 30, "rankSpacing": 18}}}%%
flowchart TD
  A[FASTQ] --> B[QC]
  B --> C[Alignment]
  C --> D[Quantification]
  D --> E[Differential expression]
  E --> F[Report]

Reproducible workflows accelerate science

  • nf-core: community-curated Nextflow pipelines — reviewed, tested, versioned, documented
    • one RNA-seq pipeline, thousands of users, constantly improved
  • Galaxy: reproducible analyses without programming, with a large training network
  • ELIXIR WorkflowHub: register and cite workflows (with DOIs, RO-Crate metadata)
  • ELIXIR bio.tools: registry of >30,000 tools with standardised (EDAM) descriptions
  • Don’t reinvent the wheel: reuse, contribute, cite

Look for a workflow before you write one

nf-co.re/pipelines: 160 community pipelines; rnaseq alone has >1,400 GitHub stars

workflowhub.eu: registry for workflows of any type (Nextflow, Snakemake, Galaxy, CWL…)

FAIR also applies to software and analysis

  • Research software and analysis scripts are research output, just like data
  • FAIR4RS principles: identifiers for software versions, rich metadata, standard formats, license
  • In practice:
    • Code on GitHub/GitLab with a license
    • Releases archived on Zenodo with a DOI
    • Registered in bio.tools / WorkflowHub

Question

Break

AI in the bioinformatician’s daily work

Question

How AI is changing our work

  • Writing code: autocompletion, chat assistants, coding agents that edit and run whole projects
  • Exploring data: “plot the PCA and colour by batch” in natural language
  • Querying databases: natural language → SPARQL/SQL/API calls (e.g. chat.expasy.org)
  • Interpreting results: summarising gene lists, literature, pathways
  • Learning: explaining code, error messages, concepts

To use these tools responsibly, you need to know what they are: an LLM, an agent, and an MCP server.

What is a large language model (LLM)?

  • A neural network trained to predict the next token (≈ word piece) given the text so far
  • Trained on enormous amounts of text: books, web pages, code, scientific papers
  • Generates text by repeatedly sampling the next token
  • Examples: GPT, Claude, Gemini, Mistral, Llama, Qwen

“The tumour suppressor TP53 encodes the protein …”

next token probability
p53 0.81
that 0.07
known 0.05
… …

Illustrative numbers

An LLM is ..

Good at

  • Language: summarising, explaining, translating
  • Code in well-known languages and libraries
  • Stable, long-lived standards (“What does HTTP 404 mean?”)

Not good at

  • Being a database: knowledge is compressed, frozen at a cutoff date, and without provenance
  • Fast-moving libraries (“the function for Y in the latest release of X”)
  • Saying “I don’t know” → hallucinations

Important

Treat an LLM as a human–computer interface, not as a trustworthy knowledge base. Research needs provenance: connect it to trusted databases.

What is an agent?

An LLM agent runs tools in a loop to achieve a goal

%%{init: {"flowchart": {"padding": 30}}}%%
flowchart TD
  U["Your question / task"] --> L["LLM decides<br/>next step"]
  L -->|tool call| T["Run a tool:<br/>bash, Python, API, database"]
  T -->|result| L
  L -->|done| A["Answer / changed files"]

  • Tools: run a shell command, read/edit files, search the web, query a database…
  • The LLM sees the results and decides what to do next
  • Plus: planning (to-do lists), memory, summarising long contexts

The harness: same model, different powers

A harness is everything around the model that turns it into an agent: the loop, the tools, the files it can see, the permissions.

Harness Sees Can do
Chat web app (ChatGPT, Claude.ai, Le Chat) Uploaded files Web search, sandboxed code, remote tools
Coding agents (Claude Code, Codex, Copilot, Cursor, OpenCode) Your project, your file system Run any command, edit code, install software
Autonomous / remote agents Files, shared drives Run unattended, scheduled jobs

Warning

More power means more capability and more risk.

How does an agent talk to a database?

  • MCP — Model Context Protocol (2024): an open standard to connect LLM applications to tools and data
  • Think of it as a “USB-C port for AI”: write a server once, use it from any client
  • An MCP server exposes:
    • tools: typed functions the LLM can call, e.g. uniprot_search(query, organism)
    • resources: data to read, e.g. a UniProt entry
    • prompts: reusable templates

An MCP server is just a well-described function

from mcp.server.fastmcp import FastMCP
import requests

mcp = FastMCP(name="Biodata MCP")

@mcp.tool()
def uniprot_search(query: str, organism: str = "Homo sapiens",
                   max_results: int = 5) -> dict:
    """Search reviewed UniProt (Swiss-Prot) entries by gene name,
    function or keyword, e.g. "TP53" or "kinase AND DNA repair"."""
    params = {"query": f"{query} AND organism_name:{organism} AND reviewed:true",
              "format": "json", "size": max_results}
    r = requests.get("https://rest.uniprot.org/uniprotkb/search", params=params)
    return r.json()

mcp.run(transport="streamable-http")
  • The LLM only sees the name, docstring and parameters, not the code
  • It wraps a FAIR API: MCP is only as good as the data behind it

MCP servers for life science data

Server URL What it does
Expasy (SIB) https://chat.expasy.org/mcp/ Writes and runs SPARQL over UniProt, Bgee, OMA, Rhea, …
STRING (SIB & partners) https://mcp.string-db.org/ Protein–protein interaction networks, enrichment
Registry biocontext.ai/registry Overview of biomedical MCP servers
# e.g. add STRING to a coding agent
claude mcp add stringdb --transport http https://mcp.string-db.org/

Tip

FAIR data → APIs → MCP → agents. The decades of investment in FAIR, machine-actionable resources is what makes this possible.

Question

Opportunities

  • Speed: boilerplate, plotting, file parsing in seconds
  • Lower barrier: wet-lab biologists can do more of their own analysis
  • Better practices for free? AI can write tests, documentation, workflows, containers
  • Translation: R ↔︎ Python, script → Nextflow pipeline
  • Access to FAIR data through natural language

Risks to rigour and understanding

  • Plausible but wrong: code runs, output looks reasonable, analysis is wrong
  • Hallucinations: non-existent functions, parameters, packages, references, gene functions
  • Supply chain: malicious MCP servers or skills can steal credentials, like any pip/npm package
  • Hidden decisions: defaults for normalisation, filtering, statistics you never chose
  • Non-determinism: same prompt, different code; models change over time
  • Privacy: uploading patient data to a cloud service
  • Deskilling: you can’t review what you don’t understand

Human-directed vs. blind trust

Human-directed ✅

“I used Claude Code and Codex for the translation. This was human-directed, not autonomous code generation. I decided what to port, in what order, and what the Rust code should look like. It was hundreds of small prompts…”

— Ladybird browser, ladybird.org/posts/adopting-rust

Blind trust ❌

“I didn’t write a single line of code […] I just had a vision for the technical architecture, and AI made it a reality”

→ database credentials exposed to every visitor (Wiz, 2026)

→ an agent with too many permissions deleted a production database (The Guardian, 2026)

Spot the problem

# RNA-seq read counts: genes x samples
counts <- read.csv("counts.csv", row.names = 1)
counts <- counts[rowSums(counts) > 10, ]   # remove lowly expressed genes

ctrl <- grepl("ctrl", colnames(counts))
trt  <- grepl("trt",  colnames(counts))

pvals <- apply(counts, 1, function(x) t.test(x[trt], x[ctrl])$p.value)
de_genes <- names(pvals)[pvals < 0.05]
cat("Found", length(de_genes), "differentially expressed genes\n")
  • Runs without errors, gives a nice number of “DE genes”…
  • …but: no library size normalisation, a t-test on raw counts with few replicates, and no multiple testing correction

Working with agents: do’s and don’ts

Do

  • Commit before every change, so you can git diff and revert
  • Give it a target: tests that must pass, known answers
  • Keep prompts small and scoped
  • Give it context: the actual error, the relevant docs
  • Prefer tools returning live data (MCP, APIs) over recalled “knowledge”

Don’t

  • Skip reading the code and running the tests
  • Let it take irreversible actions unsupervised (deleting data, modifying scripts)
  • Grant broad permissions you don’t understand
  • Treat it as a knowledge oracle: cross-check biological claims in UniProt, Ensembl, PubMed

AI and reproducibility

  • A prompt is not a reproducible method — the code is the research artefact
  • Commit AI-generated code to git like any other code; review the diff
  • Run inside the same environments and workflows as before
  • Test on data where you know the answer (positive/negative controls)
  • Document where and how AI was used (journals and funders increasingly ask)
  • You remain accountable for every line

FAIR + reproducibility & trustworthy use of AI

  • AI agents work best with well-documented APIs, standard formats and ontologies → FAIR
  • AI-written code is easier to trust inside version control, tests, containers and workflows → reproducibility
  • Curated knowledge bases give AI ground truth to check against → fewer hallucinations

Tip

The practices from the first half of this lecture are what make AI useful in the second half.

Skills and training

What does a bioinformatician need?

Still essential

  • Biology: asking the right question
  • Statistics and study design
  • Programming & data management (FAIR)
  • Critical thinking: is this plausible?
  • Communication & collaboration

Increasingly important

  • Reviewing code and results you didn’t write
  • Breaking problems into clear steps
  • Software habits: git, tests, environments
  • Knowing the limits of models and data
  • Responsible use: privacy, licenses, ethics

Learning in the age of AI

  • AI can be an excellent tutor: explain code, error messages, concepts
  • But learning requires effort: if AI does the thinking, you don’t learn
  • Use AI to understand faster, not to skip understanding
  • Rule of thumb: could you explain and defend this code to someone else?

Training: SIB and ELIXIR

SIB Training

ELIXIR & community

  • TeSS: ELIXIR training portal
  • RDMkit: research data management guidance
  • Galaxy Training Network
  • The Carpentries

Training materials should be FAIR too

  • Openly licensed, versioned, with a DOI
  • Described with metadata (Bioschemas) → findable via TeSS
  • Reusable by other trainers: adapt, improve, contribute back

glittr.org (SIB): 846 Git repositories with training material, searchable by topic

Question

Take-home messages

  1. Bioinformatics stands on shared, curated data (SIB, ELIXIR)
  2. FAIR: for humans and machines; FAIR ≠ open
  3. FAIR, well-annotated data is a prerequisite for AI
  4. Reproducible: code, environment, workflow, data, docs
  5. LLM predicts text · agent runs tools in a loop · MCP connects it to data
  6. AI speeds up coding, but you remain responsible
  7. Invest in fundamentals: they let you use AI well

Thank you!