// The complete bioinformatics platform

Your sequencing data, analysed by expert pipelines. No installs. No code. No limits.

Seven expert pipelines for microbiomes, RNA-seq and bacterial, fungal, insect and human genomes run on our compute cluster, straight from your browser. Upload your reads; get publication-ready figures, a methods section with references and regulator-grade reports. Then understand every result with Virgil, a 79-chapter handbook and a game you can play.

7expert pipelines
79handbook chapters 100+game levels in 16 topics
0lines of code to write
  • Nothing to install: it all runs in your browser
  • Our cluster does the heavy lifting, with priority queues
  • Private, EU-hosted, GDPR-compliant
  • Virgil, a live talking guide, on every page
Real outputFungFlow · genome mapnot a mock-up
Circular map of a 142,162 bp fungal mitochondrial genome with 58 genes, drawn by FungFlow
The mitochondrial genome of a wood-decay fungus, assembled and annotated by FungFlow from long reads: 142,162 bp, 58 genes, every one placed on its strand.
Genome142 kb
Genes58
Protein-coding33
Code written0
01 // Start with your data

What do you have?

Pick the data you have. Each tool opens with an example study, so you can see the results before you upload anything.

Want every method and setting? Compare the seven tools in detail.

02 // How it works

From raw data to answers in four steps

No servers to set up and no scripts to debug. You bring the data; the platform does the rest.

  1. 01

    Upload

    Drag in reads, genomes or tables. Big files go up in pieces, so a dropped connection loses nothing.

  2. 02

    Analyse

    One click starts a validated pipeline on our cluster. Close the tab: it keeps running, and you follow it live.

  3. 03

    Understand

    Every figure is explained. Ask Virgil about Fig. 3, or open the handbook chapter behind each step.

  4. 04

    Report

    Download figures, tables, a methods section with references, or an EFSA-structured strain dossier.

03 // Learn while you work

The only platform that teaches you the science behind your results

Other tools hand you a plot. We make sure you can explain it to your supervisor, your client or a regulator.

Handbook79 chapters

From the biology of cells to expert statistics: every method on the site, explained with worked examples and peer-reviewed references.

New: Biology of cells Read the handbook
Learning Lab100+ levels

A game with a robot guide: 16 topics from DNA basics to the tools' own methods, with rubies, certificates and a serious mode.

Free to start Play the Learning Lab
Live on every page Meet Virgil, your talking guide. Wherever you are on the site, Virgil is beside you. Ask him out loud or type: he finds your way through the tools, explains your results in plain words and answers from our handbook, with references. Talk or typeEnglish · DanskReads your results with youAnswers with sources
04 // Who it is for

Built for the people who need answers, not pipelines

Companies & regulatory

Strain safety dossiers mapped to EFSA's 2024 requirements, genome QC and reports you can hand to a regulator or a client, with every tool and database version.

Industry packages

Researchers & labs

Figures, statistics and a methods section with references, ready for your paper or thesis. Rent the tool you need by the hour, or share one plan in your group.

Rent a tool

Students & curious minds

Learn bioinformatics properly: read the handbook, play the Learning Lab and ask Virgil anything along the way.

Start playing
05 // Why Bioinformaniac

The analysis you need, done properly

No setup, defensible methods, our servers, private files, everything downloadable, and you learn as you go.

No setup at all

No software to install, no servers or  environments to manage. Open the page and start.

Methods you can defend

Established tools (, ANCOM-BC, , , …) with sensible defaults, plus a written methods section with references.

Runs on our machines

Heavy jobs are queued and run on our servers. Close the tab: the job keeps going, and the results wait in your account.

Private by default

Your files live in your own space. Nobody else sees them, and you can download or delete everything at any time.

Everything downloadable

Figures, tables, genomes, reports, or a whole results folder as one .zip.

Learn as you go

Each step explains what it does. The 79-chapter handbook covers every method and the statistics behind it, and the Learning Lab turns it into a game.

06 // Plans

Start free. Rent by the hour. Grow into a plan.

Guests and free accounts pay nothing; rent any tool by the hour, or choose a monthly plan for your lab.

Guest

€0
  • Every example study
  • The first handbook chapters
  • Learning Lab: General topic

Free account

€0
  • MicroRes on your own tables
  • Biology of cells and the first chapters
  • 10 AI credits a month
  • No credit card

Rent a tool

from 49 kr/h
  • Any tool, 1 hour to 7 days
  • Highest priority on our cluster
  • Clean reports, handbook, game and Virgil
  • Extend with one click

Plans

from €39/mo
  • Researcher, Lab and Course
  • Monthly CPU-hours and storage
  • Industry packages by invoice
  • Learning Lab alone: 49 kr/mo
See the details
07 // Questions

Good to know

Coding, privacy, papers, storage and how long a genome takes.

Do I need to know how to code?

No. Everything runs from the browser. Each step explains its settings in plain words, and the defaults follow current practice.

Is my data private?

Yes. Your uploads and results sit in a folder only your account can open. You can download everything or delete your account and all its files from the Account page.

Can I use the results in a paper?

Yes. MicroRes, RNA-realm, FungFlow, Humaniac and Insectra write a methods section that names every tool, version and setting, with references. Please cite the underlying tools as listed.

What happens when my storage is full?

You can use all of it. When it is full, new uploads and runs stop with a clear message; delete old files in My data or ask us for more space.

How long does a genome take?

A bacterial genome usually takes under an hour, a fungal genome a few hours. Jobs run on our servers, so you can close the page and come back.

I have a question that is not here.

Write to us from the Contact page, or from Messages (the envelope at the top) when you are signed in. The answer arrives in the same conversation.

Your data deserves a proper analysis. You deserve to understand it.

Free account, no card. Explore real results today, and learn the science while you are at it.

// Product specs

What each engine does

All six come with your account. Steps marked demo are open to guests.

MR-01

MicroRes

A guided pipeline for microbiome data with two modules, taxonomic analysis and functional metagenomics. Every step writes a methods paragraph with references into your report.

  • InputOne table or many. Several files are merged on shared features, missing ones are 0, and each one-sample file becomes a column named after the file.
  • FiguresInteractive, recolourable, export as PNG, PDF or SVG
  • ReportFull HTML or PDF report, Cytoscape files for networks

Taxonomic analysis 13 steps

  1. Import: counts, metadata, taxonomy, tree and sequences demo
  2. Quality control with a live filter preview demo
  3. Contaminant screening (decontam) demo
  4. Normalise and transform demo
  5. Composition demo
  6. Alpha diversity demo
  7. Beta diversity: PCoA, NMDS, dbRDA, PERMANOVA demo
  8. Phylogeny
  9. Core microbiome
  10. Differential abundance with consensus
  11. Associations
  12. Co-occurrence networks
  13. Biomarkers and prediction

Functional metagenomics 7 steps

  1. Import HUMAnN, PICRUSt2,  or any function table demo
  2. Clean and normalise demo
  3. Profiles and functional diversity demo
  4. Functional beta diversity: PCoA, PCA, NMDS, dbRDA, PERMANOVA, dispersion demo
  5. Differential functions with covariates and random effects
  6. Contributions and functional redundancy
  7. Species to function networks, nestedness and keystone carriers
BF-02

BactFlow

A graphical  workflow for bacterial isolate genomes. Upload reads to your private folder, choose the steps you need and follow each run live.

  • ReadsShort reads, long reads or both (hybrid assembly)
  • LiveTerminal, CPU and memory gauges while a run is going
  • QueueOne pipeline at a time on the server, so each run gets the whole machine

Quality control demo

  • Illumina, Nanopore or PacBio reads
  • Pool barcode folders into one file per sample
  • Length and quality filtering
  • Read statistics and quality plots

Assembly demo results

  • , ,  and PacBio 
  •  polishing for older flow cells (R9.4.1, R10.3; off for R10) and genome circularisation
  •  assembly metrics and contig reports

Post-assembly demo results

  •  annotation,  completeness,  taxonomy
  •  typing, plasmids and viruses with 
  • SNP and structural variant calling against a reference
  • Linear and circular genome maps, gene heatmaps, HTML and PDF report
RR-03

RNA-realm

Bulk RNA-seq analysis following current Bioconductor practice, without writing R. Every step adds a methods paragraph with references.

  • InputFASTQ () or counts from , , , , ,  or any matrix; one file or one per sample
  • SpeciesAny. Human and mouse IDs get symbols, gene types and mitochondrial genes automatically
  • ExportsFiltered counts, normalised matrix, DE tables, enrichment tables, modules, methods text

Data and quality 4 steps

  1. Reads to counts: ,  (selective alignment, GC and sequence bias), 
  2. Import and merge count files demo
  3. Quality control: depth, gene types, mitochondrial and rRNA shares, outliers demo
  4. , TMM or median-of-ratios, VST demo

Analysis 4 steps

  1. PCA, drivers of each component, clustering, batch-removed views demo
  2. Differential expression: , -, Wilcoxon, consensus demo
  3. Pathways: preranked  and ORA demo
  4. Co-expression modules, trait correlations, hub genes demo
FF-04

FungFlow

A guided pipeline for fungal isolate genomes. Upload reads to your private folder, choose the stages and follow the run live; results open in an interactive report.

  • ReadsIllumina paired-end, Nanopore, PacBio HiFi, or hybrid
  • Or start fromAn assembly you already have (FASTA)
  • ReportAssembly and completeness metrics, gene and repeat statistics, CAZymes, clusters, downloads

Reads and assembly demo results

  • , , 
  • k-mer profile with : size, heterozygosity, ploidy
  •  (long reads) or  (short reads);  polishing

Quality demo results

  • ,  (fungi or a narrower lineage)
  • Telomere repeats per contig
  •  contig classes, mitochondrial contigs, ITS with 

Annotation demo results

  •  and 
  • Gene prediction ( or ), tRNAs
  • , CAZymes (),  clusters
HM-05

Humaniac

Human genomics on GRCh38, from reads to an interpreted genome. Six modules run alone or chained, each step its own  job; results open in an interactive report with an IGV genome viewer, and a PDF report with methods and the run log.

  • InputIllumina, Nanopore or PacBio HiFi reads of a genome, exome or panel; or a BAM/CRAM, a VCF or gVCFs of a family
  • ReferenceGRCh38 no-alt analysis set, Ensembl  116, , , , HPO, 
  • DemoThe GIAB Ashkenazi trio (HG002 and parents) over a gene panel, from raw reads

Alignment and small variants demo results

  •  or ,  or , duplicate marking
  •  coverage, genetic sex,  contamination
  • ,   or ;  phasing; GIAB benchmark with 

Structural variants demo results

  •  or ,  or 
  •  or  for disease repeats (HTT, FMR1, C9orf72 …)
  •  for SMN1/2, GBA1 and other paralogous genes

Interpretation, families, cancer demo results

  •  with MANE, , , ; ACMG/AMP evidence; HPO gene ranking; ACMG SF v3.2
  •  pharmacogenomics, , genetic ancestry, runs of homozygosity
  • ,  and  for trios;  for tumour–normal pairs
IN-06

Insectra

Insect genomics: one insect to a chromosome-level, annotated genome, or many insects to the structure and selection of their populations. Five modules, run alone or chained, each step its own  job.

  • ReadsPacBio HiFi or Nanopore R10.4.1, R10.3 or R9.4.1 (assembly), Illumina pairs (k-mers, QV, populations), Hi-C pairs (scaffolding)
  • Or start fromAn assembly (FASTA), or a reference genome and its GFF3 for population studies
  • DemoA fruit-fly genome slice and two fly populations with insecticide-resistance variants (simulated reads)

Reads and assembly demo results

  • , , ;  genome profile
  •  or , ,  Hi-C scaffolding
  •  ( odb12),  QV, telomeres,  contaminant contigs (Wolbachia …)

Mitogenome and genes demo results

  • : circularised, annotated mitogenome (invertebrate code)
  •  and ;  invertebrate gene models
  •  on proteins,  names, GO and KEGG

Population genomics demo results

  •  per individual,  joint calling with invariant sites
  • PCA, , KING kinship; pi, Fst, dxy and Tajima's D in windows ()
  •  effects and protein changes in resistance genes (para/kdr, Ace, Rdl, Cyp6, GSTs)
BM-07 · free preview

Bactomaniac

The bacterial strain safety dossier: is this strain what you think it is, is its genome good enough, does it carry resistance, toxin or virulence genes and could they spread, and is it still the same strain? Four verdicts with their evidence, laid out along the EFSA requirements for whole-genome analysis of microorganisms in the food chain.

  • ReadsIllumina pairs, Nanopore (choose R10.4.1, R10.3 or R9.4.1) or PacBio HiFi, or long and short reads together (hybrid)
  • Or start fromAn assembly (FASTA); add a reference genome (FASTA or ) to check stability
  • ReportHTML, PDF and editable Word: verdicts, genome map, EFSA checklist, methods, run log, input checksums and tool version history
  • ValidatedA reference panel of public genomes with known resistance and toxin genes, scored on every release

Quality and identity

  • , ; , or  with  ( only for R9.4.1 and R10.3); 
  •  completeness and contamination, depth per contig
  •  ANI against every  r232 species representative, type material flagged; 

Safety, in context

  •  genes and point mutations;  virulence; genus toxin panels (e.g. Bacillus cereus Hbl, Nhe, CytK, cereulide)
  •  and  plasmids and prophages; 
  • Every resistance gene placed on its replicon and rated for transfer risk

Stability

  • Comparison with a reference or parent strain: SNPs, indels, structural changes and lost replicons (,  + )
Loading your workspace…
// Validation of pipeline

Does it get known strains right?

We run our pipelines on public genomes with a documented biology: strains that make toxins, strains that are safe, strains that carry resistance on a plasmid. Every answer is scored against a truth that does not come from our own software, against criteria we wrote down before the first result existed.

Loading the validation…

Questions a partner asks

Can I run the validation myself?

Yes. The evidence pack lists every strain by its public  accession and every expected result. Run those genomes through our tools, or through your own, and compare.

Can you validate on our strains or our standard?

Yes. Send us the reference strains or your acceptance criteria through Contact. We run them and give you the same kind of report, with your criteria fixed before we look at the result.

How often is it repeated?

Whenever a release changes the analysis. The date of the last run and the software versions are shown above.

Does a passed validation mean a strain is safe?

No. It shows that the tools find what is known to be there, and nothing that is not. Whether a strain may be released is your decision; this is evidence for it.

// Pricing

Plans and packages

Start free. Researchers pick a plan for compute and storage; companies order strain dossiers and projects by invoice. Prices in euro, excluding VAT (Danish kroner alongside).

Every tool's software is free to use. A plan pays for the compute it runs on: CPU-hours, memory per analysis and storage.

IncludedFreeResearcherLab
Humaniac on your own samples (reads or VCF)Demo reportYesYes
MicroRes, RNA-realm, Insectra on your own dataDemo reportYesYes
BactFlow (free software)On request · pay for the compute usedOn your computeOn your compute
Handbook and Learning LabHandbook: Biology of cells and the first chapters · Game: General bioinformaticsEverythingEverything
CPU-hours per month1060300, shared
CPUs and RAM per analysis4 · 8 GB8 · 16 GB12 · 28 GB
Storage5 GB50 GB500 GB
People115

Questions

What is a CPU-hour?

One processor core working for one hour. A run on 8 cores for 30 minutes uses 4 CPU-hours. Your account page shows how many you have used this month. When they run out, add 50 CPU-hours for €10 or wait until the 1st.

What are AI credits?

Answers from the AI assistant and from Virgil, our talking guide, are paid in credits: a typed answer costs 1 credit and a spoken answer 2. Every plan includes a monthly allowance (Free 10, Learning Lab and Researcher 300, Lab 1,000 per person). Need more? Add 100 credits for 49 kr from your Account page; bought credits never expire. While you rent a tool, the assistant and Virgil are included.

Is BactFlow free?

Yes. BactFlow is free software. What a plan pays for is the computer it runs on: CPU-hours, memory per analysis and storage.

Can I cancel?

Yes, at any time from your account. The plan runs to the end of the period you paid for, then the account becomes Free again. Your data stay while they fit the Free storage.

Where is my data processed?

On our server in the EU. Your files are private to your account and are never used to train models or shared. See the Privacy Policy.

Do you offer course or institution accounts?

Yes. The Course licence covers up to 40 students for 3 months; for a department or core facility, ask for a quote.

// Messages

Messages

Write to the Bioinformaniac team: a question, a problem, or a request for more storage, CPUs or memory. Answers arrive below.

Send a message or request

Received

Your conversations with the team. Reply, mark as read, or delete them from your inbox.
Loading…
Download PDF
Biology of cells

The cell: the unit of life

Every sequence you will ever analyse was copied out of a cell or a virus that depends on one. This part of the handbook is the biology behind the data: what cells are made of, how they store and read their genes, how microbes, fungi, insects and human cells differ, and how viruses and whole communities fit in. This first chapter draws the map.

What every cell has

A cell is a compartment that keeps a controlled chemistry inside and the rest of the world outside. The boundary is the cytoplasmic membrane, a film of lipids two molecules thick, studded with proteins that let nutrients in and waste out. Inside is the cytoplasm, a crowded water solution of proteins, RNA, small molecules and ions. Every cell carries its instructions in a genome of double-stranded DNA, and every cell builds its proteins on ribosomes, the particles that read messenger RNA and join amino acids into chains (Anonymous, 1990).

Those four parts (membrane, cytoplasm, genome, ribosomes) are universal. What makes the whole thing alive is what it does with them: it takes energy and matter from its surroundings (metabolism), makes a copy of itself (reproduction), passes its genome to its offspring with small changes (heredity and variation), and so its descendants change over generations (evolution). Many cells also sense and respond to their environment, move, talk to their neighbours and differentiate into specialised forms, but those are additions, not requirements.

Viruses have a genome, and some are larger than small bacteria, but they have no ribosomes and no metabolism of their own: they reproduce only inside a cell, using its machinery. That is why they get their own chapter (B6) rather than a place in the tree of cells.

Three domains, discovered from one gene

For most of the twentieth century living things were sorted by what they looked like. Microbes were a problem: under the microscope most bacteria are small rods or spheres, and shape says little about descent. In the 1970s Carl Woese compared the sequence of the RNA of the small ribosomal subunit (16S rRNA in prokaryotes, 18S in eukaryotes). That molecule is present in every cell, does the same job everywhere and changes slowly, so it works as a molecular clock across all of life. The comparison split the prokaryotes into two groups as different from each other as either is from plants and animals. Woese and colleagues proposed three domains: Bacteria, Archaea and Eukarya (Anonymous, 1990).

The same gene is the reason amplicon sequencing works (chapter 4): sequence a variable stretch of 16S rRNA from a mixed sample, compare it with a database, and you know which bacteria and archaea are there. The principle of this whole handbook, that a sequence reveals descent, started here.

Genomes from environmental DNA have since redrawn the tree. A tree built from 16 ribosomal proteins of over 3,000 genomes, many assembled from metagenomes of organisms never grown in a laboratory, showed that most of the diversity of life is bacterial, and that a huge branch of bacteria with tiny genomes and reduced metabolism (the candidate phyla radiation) had gone unseen because it cannot be cultured by standard methods (Hug et al., 2016). Much of what is in your own metagenomes will be from such groups.

Where eukaryotes came from

Eukaryotes did not arise as a third, separate line. Their information-processing machinery (the enzymes that copy DNA, transcribe it and translate it) resembles that of archaea, while their membranes and much of their metabolism resemble bacteria. The leading explanation is that the eukaryotic cell began as a partnership: an archaeal host engulfed or merged with an alphaproteobacterium that became the mitochondrion (Sagan, 1967; Roger et al., 2017). Later, one eukaryotic lineage took in a cyanobacterium that became the chloroplast of algae and plants. Both organelles still carry small genomes of their own, with genes that look bacterial.

Metagenomics found the archaeal side of the story. Genomes of Asgard archaea from marine sediments carry many genes once thought unique to eukaryotes (for example for the cytoskeleton and membrane traffic). In 2020 one of them was finally grown in culture after twelve years of enrichment: a tiny cell with long, branching protrusions that lives in close contact with partner microbes, which fits the idea of an intimate partnership at the origin of eukaryotes (Imachi et al., 2020). A phylogenomic analysis of many more Asgard genomes places eukaryotes as a sister group of, or within, the Heimdallarchaeia (Eme et al., 2023). In the language of the tree, we are a branch that grew out of the archaea.

Bacterium (about 2 µm) cell wall / envelope (orange), membrane (dashed) nucleoid: one circular chromosome (green), no nucleus plasmid (small green circle), 70S ribosomes (dots) flagellum (line at right) Eukaryotic cell (10–100 µm, not to scale) nucleus with chromatin and nucleolus (violet) mitochondria (orange), ER and Golgi (grey lines) 80S ribosomes in the cytoplasm
Figure B1.1 · The two plans of cell organisation. A bacterium keeps its DNA in the cytoplasm as a nucleoid; a eukaryote wraps it in a nucleus and divides its cytoplasm into membrane-bound organelles. Archaea look like bacteria under the microscope, but differ in their membranes, walls and molecular machinery.

Prokaryotic and eukaryotic cells

"Prokaryote" is a word for a plan of organisation, not a branch of the tree: bacteria and archaea share it, although they are only distantly related. A prokaryotic cell has no nucleus. Its chromosome, usually a single circular molecule, lies folded in the cytoplasm in a region called the nucleoid, and transcription and translation happen side by side: a ribosome can start translating an mRNA while RNA polymerase is still making it. Many prokaryotes also carry plasmids, smaller DNA circles that replicate on their own and often carry genes for antibiotic resistance, toxins or unusual metabolism (chapter B2).

A eukaryotic cell keeps its DNA in a nucleus bounded by a double membrane with pores. Its genome is divided among several linear chromosomes wrapped around histone proteins. Its cytoplasm is divided into organelles: mitochondria, the endoplasmic reticulum, the Golgi apparatus, lysosomes or vacuoles, peroxisomes and, in plants and algae, chloroplasts. A cytoskeleton of protein filaments gives the cell shape, moves things around inside it and pulls chromosomes apart at division. Because transcription happens in the nucleus and translation in the cytoplasm, the RNA can be processed in between, which is what makes the eukaryotic gene with its introns possible (chapter B5).

FeatureBacteriaArchaeaEukarya
NucleusNoNoYes
Typical size0.5–5 µm0.5–5 µm10–100 µm
Membrane lipidsFatty acids, ester linksIsoprenoids, ether linksFatty acids, ester links; sterols
Cell wallPeptidoglycan (most)No peptidoglycan; S-layer, pseudomureinNone (animals), chitin (fungi), cellulose (plants)
ChromosomeUsually one, circularUsually one, circularSeveral, linear, on histones
Ribosome70S70S (eukaryote-like proteins)80S in cytoplasm; 70S in organelles
RNA polymeraseOne, simpleOne, eukaryote-likeThree (I, II, III)
Introns in protein genesRareRareCommon
Marker gene for amplicons16S rRNA16S rRNA18S rRNA, ITS (fungi)

Size matters more than it seems. A small cell has a large surface for its volume, so nutrients reach every part quickly by diffusion, and bacteria can grow fast. A large eukaryotic cell needs internal transport and compartments to work at all. There are exceptions that test the rules: Thiomargarita magnifica, a sulphur bacterium from a Caribbean mangrove, forms single cells up to about two centimetres long whose DNA is held in membrane-bound compartments, a structure once thought to be purely eukaryotic (Volland et al., 2022). Biology is full of such exceptions; good bioinformatics keeps them in mind rather than assuming every genome follows the textbook.

How much life there is, and where

An estimate of the mass of life on Earth, measured as carbon, puts the total at about 550 gigatonnes. Plants hold about 450 of them; bacteria about 70, more than all animals together (about 2); fungi about 12; archaea about 7; protists about 4; and viruses about 0.2 (Bar-On et al., 2018). Most bacterial and archaeal biomass is in the deep subsurface and in soil, not in oceans or in bodies. Microbes are not a corner of biology: they are most of its diversity and much of its mass, and they run the planet's cycles of carbon, nitrogen and sulphur.

The molecules of a cell

About 70 % of a cell is water. Most of the rest is four kinds of large molecule, built from smaller units:

  • Proteins, chains of amino acids, are the largest fraction of the dry mass of a growing bacterium. They are enzymes, transporters, structural parts, motors and regulators.
  • Nucleic acids: DNA, chains of deoxyribonucleotides, stores the information; RNA, chains of ribonucleotides, carries it (messenger RNA), translates it (ribosomal and transfer RNA) and regulates it. A fast-growing bacterium has far more RNA than DNA, most of it in ribosomes.
  • Lipids make the membranes.
  • Polysaccharides, chains of sugars, build walls (peptidoglycan, chitin, cellulose) and store energy (glycogen, starch).

The proportions change with growth: a cell that grows fast is packed with ribosomes. This is one reason why the amount of RNA from an organism in a metatranscriptome is not a count of its cells.

Information flows from DNA to RNA to protein

The central dogma, as Francis Crick stated it, says that sequence information passes from nucleic acid to nucleic acid and from nucleic acid to protein, but never from protein back to nucleic acid (CRICK, 1970). In practice the normal flow in every cell is: DNA is copied to DNA (replication, chapter B3), DNA is copied into RNA (transcription), and RNA is read into protein (translation, chapter B4). Two of the transfers Crick allowed as special cases turned out to be important: reverse transcription of RNA into DNA, which retroviruses and the retrotransposons of our own genome use, and RNA replication, which RNA viruses use (chapter B6).

Each step is a kind of data a sequencer can read. Genome sequencing reads DNA; RNA-seq reads RNA (after converting it to complementary DNA); proteomics reads proteins by mass spectrometry. The pipelines in this platform sit on these steps: the genome apps on DNA, RNA-realm on RNA, and MicroRes on DNA from whole communities.

For the biology in more depth, read Brock, ch. 1 (sections 1.12 to 1.14 on the molecular basis of life and the tree of life) and ch. 2 (2.1 to 2.2 on cell morphology and size; 2.14 to 2.16 on eukaryotic cells) (Madigan et al.). Chapter 13 of the same book covers microbial evolution and systematics.

Check your understanding

Why was the small-subunit rRNA gene suitable for building a tree of all life?

It is present in every cell, has the same function everywhere and changes slowly, with conserved and variable regions, so sequences from very distant organisms can be aligned and compared.

Archaea look like bacteria under a microscope. Why are they a separate domain?

Their rRNA sequences, membrane lipids (ether-linked isoprenoids), cell walls (no peptidoglycan) and information machinery (eukaryote-like RNA polymerase and transcription factors) differ fundamentally from those of bacteria.

A 16S study of a leaf surface returns 30 % "Cyanobacteria / Chloroplast". What is happening?

Chloroplasts are descended from cyanobacteria and keep a 16S rRNA gene, so plant DNA is amplified and classified as cyanobacterial. These reads come from the plant and are usually removed.

Why can transcription and translation be coupled in a bacterium but not in a human cell?

A bacterium has no nucleus, so ribosomes reach the mRNA while it is being made. In a eukaryote, transcription happens in the nucleus and the RNA is processed and exported before translation in the cytoplasm.

Biology of cells

Inside a bacterium and an archaeon

Bacteria and archaea are small, but they are not simple. Their envelope decides which antibiotics reach them, their chromosome is folded with precision, plasmids and mobile elements move genes between them, and they grow, divide, form spores and build biofilms. Each of these features leaves a trace in a genome that a bioinformatician can read.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Biology of cells

DNA: the molecule, its copying and its packaging

A sequencing file is a list of letters, but the molecule behind it has two strands with a direction, a shape, a chemistry that varies in GC content, and in eukaryotes a packaging that decides which parts can be read. Strands, orientation, repeats, mutation rates and chromosome ends all shape how reads map and how assemblies fail.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Biology of cells

From gene to protein: promoters, operons, the code and its regulation

A gene is a stretch of DNA that a cell can read into a product. This chapter follows that reading in bacteria and archaea, from the promoter where RNA polymerase lands, through the operon and the messenger RNA, to the ribosome and the genetic code, and then shows how cells decide which genes to read. Gene finders, 16S profiling, RNA-seq and CRISPR all rest on these mechanisms.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Biology of cells

The eukaryotic gene: exons, introns, splicing and the human cell

In eukaryotes a gene is not a simple run of codons. It is split into exons and introns, controlled by promoters and enhancers that can sit far away, packed in chromatin that is opened and closed by chemical marks, and read into an RNA that is capped, spliced, cut and given a tail before it ever meets a ribosome. One gene can give many proteins. This is the biology behind spliced alignment, isoforms, regulatory variants and epigenomic data.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Biology of cells

Viruses: genomes, life cycles and the virome

Viruses are the most abundant biological entities on Earth and the most varied genetic systems we know: their genomes can be DNA or RNA, single- or double-stranded, in one piece or many, from under two thousand bases to over two million. They infect every kind of cell, they have left their genes in ours, and bacteria have evolved dozens of ways to fight them. Chapters V1 to V3 show how to analyse a virome; this chapter is the biology underneath.

What a virus is

A virus particle, the virion, is a genome packed in a protein shell, the capsid. Many viruses of animals add a lipid envelope taken from the membrane of the cell they leave, studded with viral proteins that bind the next host cell. Capsids are built from many copies of one or a few proteins, usually in one of two geometries: an icosahedron (a near-sphere of twenty triangular faces) or a helix around the genome. Tailed bacteriophages combine an icosahedral head with a tail that injects the DNA into the cell.

Outside a cell a virus does nothing: it has no metabolism and no ribosomes. Inside, it takes over the cell's machinery to copy its genome and build new virions. Virions are mostly between 20 and 300 nanometres across, too small for a light microscope; but giant viruses of amoebae and algae reach a micrometre, and their genomes, up to about 2.5 million bases, encode translation-related proteins once thought unique to cells. Metagenomic surveys have found giant viruses in environments across the planet, infecting a wide range of single-celled eukaryotes (Schulz et al., 2020). At the other end, circoviruses have genomes of under two thousand bases encoding just two proteins.

The Baltimore classes

Every virus must deliver a messenger RNA that the host's ribosomes can read. David Baltimore classified viruses by how they get there from their genome (Baltimore, 1971), which also tells you which enzymes they must bring and how they evolve:

ClassGenomeRoute to mRNAExamples
IDouble-stranded DNATranscribed like host genesTailed phages (T4, λ), herpesviruses, poxviruses, adenoviruses, giant viruses
IISingle-stranded DNAMade double-stranded, then transcribedφX174, microviruses, circoviruses, parvoviruses, anelloviruses
IIIDouble-stranded RNAViral polymerase transcribes inside the capsidRotavirus, φ6, many fungal viruses
IVPositive-sense single-stranded RNAThe genome is itself an mRNACoronaviruses, poliovirus, norovirus, MS2 phage
VNegative-sense single-stranded RNAViral polymerase copies it into mRNAInfluenza, measles, Ebola, rabies
VISingle-stranded RNA with a DNA stageReverse transcribed to DNA, integrated, transcribedRetroviruses (HIV)
VIIDouble-stranded DNA with an RNA stageTranscribed; replicated through RNA by reverse transcriptionHepatitis B virus, caulimoviruses

RNA viruses copy their genomes with RNA polymerases that lack proofreading, so they mutate about a thousand times faster per base than DNA genomes of cells. An infected person carries a cloud of related variants, a quasispecies; and RNA viruses with a segmented genome, like influenza, can swap whole segments when two strains infect one cell.

A viral infection, step by step

Whatever the virus, an infection goes through the same stages: attachment to a receptor on the cell surface, which decides which cells and species a virus can infect; entry of the genome (injection through the wall by phages; fusion of the envelope with a membrane or uptake by endocytosis for animal viruses); replication of the genome and synthesis of viral proteins, usually in an order with early proteins that take over the cell and late proteins that build the virion; assembly of new virions; and release, by bursting the cell (lysis) or by budding through its membrane.

Bacteriophages follow one of three strategies. Lytic (virulent) phages such as T4 always replicate and burst the cell, releasing tens to hundreds of new phages. Temperate phages such as λ can also choose lysogeny: the phage genome integrates into the bacterial chromosome (or persists as a plasmid) as a prophage, which is copied with the host for generations while its lytic genes are kept silent by a repressor, until stress, such as DNA damage, triggers it to excise and enter the lytic cycle (Howard-Varona et al., 2017). Chronic infections, such as by filamentous phages, release new phages continuously without killing the cell.

Lysogeny matters far beyond the phage. A prophage often carries genes that change its host: the cholera toxin and the Shiga toxins of E. coli O157 are encoded by prophages, and prophages can protect their host against other phages. Many bacterial genomes carry several prophages, and annotation tools mark them because their genes are part of the strain's biology and risk profile.

Naming viruses

Viruses have no common ancestor and no gene shared by all of them, so they cannot be placed in one tree like cells. Comparisons of their few conserved "hallmark" genes, such as those for the main capsid protein and the genome-packaging machinery, nevertheless group most viruses into a few large lineages, now formal realms: Riboviria (RNA viruses and reverse-transcribing viruses), Duplodnaviria (tailed phages and herpesviruses), Varidnaviria (viruses with a double jelly-roll capsid, including giant viruses and adenoviruses) and Monodnaviria (small single-stranded DNA viruses) (Koonin et al., 2020). Since 2022 the old families of tailed phages defined by tail shape have been replaced by groups based on genome comparison within the class Caudoviricetes, and species have binomial names like those of cellular organisms (Turner et al., 2023). Phage genomes are mosaics of modules swapped between lineages, which is one reason classification by genome rather than by shape took so long (Dion et al., 2020). Most viruses found in metagenomes still cannot be placed below the class.

Viruses in our genomes

Retroviruses integrate a DNA copy of their genome into the host chromosome as a step of their life cycle. When this happens in a germ cell, the provirus is inherited. Over millions of years such endogenous retroviruses have accumulated: about 8 % of the human genome consists of their remains, almost all broken by mutation (International Human Genome Sequencing Consortium, 2001; Johnson, 2019). Some have been put to use by their host: the syncytin proteins needed to form the placenta come from the envelope genes of ancient retroviruses (Johnson, 2019). In the same way, prophages, some of them defective and stuck in place, are part of most bacterial genomes. In sequencing data these viral passengers must be told apart from active infections.

How bacteria fight back

With phages outnumbering bacteria in most environments, bacteria have evolved many defences. Restriction–modification systems cut DNA that lacks the cell's own methylation pattern. CRISPR-Cas systems remember past infections as spacers (chapter B4). Abortive infection systems make an infected cell die before the phage can multiply, protecting its neighbours. A systematic search for genes that cluster with known defence genes in bacterial genomes found ten new families of antiphage systems at once (Doron et al., 2018), and the count has since grown past a hundred. A single genome carries only a few, often on mobile elements, which has led to the idea that defence systems are shared among the strains of a species as a "pan-immune system" (Bernheim & Sorek, 2019). Phages in turn carry anti-restriction, anti-CRISPR and other counter-defence proteins.

Viroids and prions

Two kinds of infectious agent are even simpler than viruses. Viroids are circular RNAs of a few hundred bases that encode no protein and infect plants, copied by the host's own RNA polymerase. Prions contain no nucleic acid at all: they are misfolded forms of a normal protein that convert the normal form into more copies of themselves, causing diseases such as scrapie and Creutzfeldt–Jakob disease. Neither can be found by sequencing a virome in the usual way.

The virome

The virome is the collection of all viruses in a sample or an organism. In the human body it includes viruses that infect our own cells (some acute, some persistent like herpesviruses and anelloviruses, which are found in the blood of most people), the endogenous retroviruses in our genome, and, by far the largest part, the phages that infect our bacteria (Liang & Bushman, 2021). The gut virome is dominated by tailed phages and small single-stranded DNA phages, differs strongly from person to person and is stable within a person over time (Shkoporov & Hill, 2019). Because phages kill, transduce and reshape their bacterial hosts, the virome is a hidden layer of control over the bacterial microbiome (chapter B8).

Read Brock, ch. 8 (sections 8.1 to 8.8 on virions, the virus life cycle, phage T4, temperate phages and lysogeny, and animal virus infection) and ch. 10 (10.1 to 10.11 on viral genomes and evolution, DNA and RNA viruses and reverse transcription; 10.12 to 10.16 on the virosphere, antiviral defences of bacteria, the human virome, viroids and prions) (Madigan et al.). For the bioinformatics of viruses, read Frishman and Marz (eds.), ch. 1 on comparative genomics of viruses and ch. 2 on metagenomic exploration of phage diversity (Virus Bioinformatics).

Check your understanding

What do the Baltimore classes classify viruses by?

By the nature of the genome and the route by which it is turned into messenger RNA (for example, a positive-sense RNA genome is itself an mRNA, a negative-sense one must be copied first).

What is the difference between a lytic and a temperate phage?

A lytic phage always multiplies and bursts its host; a temperate phage can instead integrate as a prophage and be inherited with the host until it is induced.

Why do RNA viruses evolve so fast?

Their RNA polymerases do not proofread, so they make many more copying errors per base than cellular DNA polymerases, and they replicate to huge numbers.

Roughly what share of the human genome comes from endogenous retroviruses?

About 8 %, almost all inactivated by mutation.

Key references

  1. Baltimore D. Expression of animal virus genomes. Bacteriological Reviews 35, 235–241 (1971).
  2. Bernheim A, Sorek R. The pan-immune system of bacteria: antiviral defence as a community resource. Nature Reviews Microbiology 18, 113–119 (2019).
  3. Dion MB, Oechslin F, Moineau S. Phage diversity, genomics and phylogeny. Nature Reviews Microbiology 18, 125–138 (2020).
  4. Doron S, Melamed S, Ofir G, et al.. Systematic discovery of antiphage defense systems in the microbial pangenome. Science 359, eaar4120 (2018).
  5. Howard-Varona C, Hargreaves KR, Abedon ST, Sullivan MB. Lysogeny in nature: mechanisms, impact and ecology of temperate phages. The ISME Journal 11, 1511–1520 (2017).
  6. International Human Genome Sequencing Consortium, Whitehead Institute for Biomedical Research, Center for Genome Research:, Lander ES, et al.. Initial sequencing and analysis of the human genome. Nature 409, 860–921 (2001).
  7. Johnson WE. Origins and evolutionary consequences of ancient endogenous retroviruses. Nature Reviews Microbiology 17, 355–370 (2019).
  8. Koonin EV, Dolja VV, Krupovic M, et al.. Global Organization and Proposed Megataxonomy of the Virus World. Microbiology and Molecular Biology Reviews 84, e00061–19 (2020).
  9. Liang G, Bushman FD. The human virome: assembly, composition and host interactions. Nature Reviews Microbiology 19, 514–527 (2021).
  10. Schulz F, Roux S, Paez-Espino D, et al.. Giant virus diversity and host interactions through global metagenomics. Nature 578, 432–436 (2020).
  11. Shkoporov AN, Hill C. Bacteriophages of the Human Gut: The “Known Unknown” of the Microbiome. Cell Host & Microbe 25, 195–209 (2019).
  12. Turner D, Shkoporov AN, Lood C, et al.. Abolishment of morphology-based taxa and change to binomial species names: 2022 taxonomy update of the ICTV bacterial viruses subcommittee. Archives of Virology 168, 74 (2023).
  13. Madigan MT, Bender KS, Buckley DH, Sattley WM, Stahl DA. Brock Biology of Microorganisms, 15th edition (Global Edition). Pearson, 2019. Read: Ch. 8, sections 8.1–8.8; ch. 10, sections 10.1–10.16.
  14. Frishman D, Marz M (eds.). Virus Bioinformatics. CRC Press, 2022. Read: Ch. 1, comparative genomics of viruses; ch. 2, metagenomic exploration of phage diversity.
Biology of cells

Fungi and insects: eukaryotes we sequence, and their partners

Fungi and insects are the two great eukaryotic groups this platform assembles besides humans. Fungal cells grow as threads with chitin walls, and some keep two different nuclei in one cell; insect genomes are large, repetitive and often come with bacteria living inside the insect's cells. Both facts change how a genome is assembled and read.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Biology of cells

Microbial communities: the biology of the microbiome

Microbes rarely live alone. In soil, water, food and bodies they form communities that compete, cooperate, trade metabolites, exchange genes and are hunted by phages. The human gut holds one of the densest such communities known. This chapter is the ecology and physiology behind the count tables of Part II: what a microbiome is, how it is assembled and passed on, what it does, and which biological facts every analysis must respect.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part I · Foundations

Microbial bioinformatics in one picture

Every analysis in this handbook turns DNA sequence into a biological statement. Knowing where each step sits in that chain makes it easier to choose methods, and to notice when a result is coming from the pipeline rather than from the biology.

Two questions, two kinds of data

Most microbial sequencing projects ask one of two questions. The first is who is there and what are they doing in a mixed community: a stool sample, a soil core, a fermenting food. This is the domain of microbiome analysis. It uses either marker-gene (amplicon) sequencing, usually of the 16S rRNA gene for bacteria and archaea or ITS and 18S for fungi and other eukaryotes, or shotgun metagenomics, where all DNA in the sample is sequenced. The second question is what is this organism: the complete genome of a single bacterial isolate, its taxonomy, its genes, its plasmids and how it differs from its relatives. This is isolate genomics.

A third question has become routine in industry and in clinical research: which viruses are present, and is the sample safe. Viral metagenomics asks it of a stool sample, a wastewater sample, a fermentation or a phage preparation, and it needs its own methods, because viruses have no universal marker gene, their genomes are often incomplete in an assembly, and a virus that infects a bacterium can carry toxin or resistance genes into it. Two safety questions cut across all three fields: is a resistance gene present (antimicrobial resistance, AMR) and is it where it can spread.

The fields share tools and ideas, such as quality control of reads, reference databases and the need for careful controls, but their statistics are very different. A microbiome study compares many samples and has to deal with sparse, compositional count tables. A genome project usually deals with a handful of genomes, and the hard part is getting each sequence right.

The chain of steps

For a microbiome study the chain runs: study design and sampling, DNA extraction, library preparation and sequencing, read quality control, feature construction (amplicon sequence variants or taxonomic profiles), taxonomy and function assignment, filtering and contaminant removal, normalisation and transformation, then the ecological and statistical questions: diversity, community differences, differentially abundant features, associations, networks and prediction. Chapters 2 to 13 follow this chain. For a virome the same chain holds, with two additions: a check that each viral genome is complete enough and really present (not just a few reads on one gene), and a link from each virus to its host and lifestyle. For resistance the chain adds a screen of the functional profile or of the assembled genes against a curated list of resistance determinants, followed by a verdict that says how far down it can be trusted: drug class, mechanism, pathway and gene.

For an isolate genome it runs: culture and DNA extraction, sequencing with short reads, long reads or both, read quality control, assembly, polishing, quality assessment, taxonomic placement, annotation, then targeted questions such as typing, plasmids, resistance genes and comparison with reference strains. Chapters 14 to 21 follow that chain.

What "literature-based" means here

Each chapter explains the reasoning behind a step, the main methods and the trade-offs between them, with references to the papers that introduced or tested them. Where the field has not settled on one answer, for example on rarefaction or on which differential abundance test to trust, the chapter says so and describes what careful authors do instead of pretending there is a single correct choice. Boxes marked In practice give concrete recommendations; boxes marked Pitfall describe mistakes that are common in published work.

How the chapters map onto the tools

The handbook and the tools follow the same chains, so you can read a chapter and then run its step. Bioinformaniac has eight tools; each answers one of the questions above.

ToolQuestionWhat is in itChapters
MicroRes · taxonomic moduleWho is there in a mixed community?Steps 01 to 14: import, quality control, contaminants, normalisation, composition, alpha and beta diversity, phylogeny, core microbiome, differential abundance, associations, networks, biomarkers, pangenome.4 to 13
MicroRes · functional moduleWhat can the community do, and does it carry resistance?Steps F1 to F8: import (HUMAnN, PICRUSt2, ), cleaning, profiles, functional beta diversity, differential functions, who carries each function, the species-function atlas, and the antimicrobial resistance screen with a verdict for each sample.10 to 13
MicroRes · viral moduleWhich viruses are present, whom do they infect, are they safe?Steps V1 to V7: import, genome quality and presence, composition, hosts and virus-host links, lifestyle and safety screen (toxin, resistance and lysogeny genes), a study report and a clinical report.V1 to V3
BactFlowWhat is this isolate?Quality control, assembly and post-assembly: typing, plasmids, resistance, comparison.14 to 21
BactomaniacIs this bacterial strain safe to use?A strain safety dossier: identity, resistance with its genomic context, toxins, quality and stability.14 to 21
RNA-realmWhich genes change between conditions?RNA-seq from counts or reads to differential expression, pathways and co-expression, with covariates and a random effect for repeated measures.24 to 29
FungFlow, Humaniac, InsectraWhat is this fungal, human or insect genome?Assembly, annotation and the genome browser, with biosynthetic clusters for fungi.30 to 35

You can read the handbook on its own, but every chapter ends with a short note on where the step lives in the tools.

Two things that make a result reusable: the report and the code

A result that cannot be explained or repeated is not an industrial result. Every tool therefore ends in a report, and MicroRes and RNA-realm write theirs as a story: chapters in a fixed order, the findings first, each figure with a sentence that says what it shows, the cautions next to the findings they qualify, and a methods chapter that lists every setting, every software version and the unique ID of the report. Because the text is produced from the measured results by fixed rules, a number in the report is always a number from your data. The same layout is available as a web page, a PDF and a Markdown file.

Reveal the code is the second half of the promise. Each tool can show, for the analysis you just ran, the exact code or command that produced it, as a script that you can read, run on your own machine and keep with the paper or the dossier. Reading it is also the fastest way to learn what a step really does. Reveal the code is available to administrators and to accounts with full access; in the free release the button is visible but dimmed.

The same care applies to the analysis itself. When your samples are not independent (the same person sampled before and after a treatment, animals in the same cage), say so: MicroRes and RNA-realm let you name the covariates that must be adjusted for and a random effect for the repeated subject, and the report records the choice.

How to use these docs to learn

Each chapter starts with what you will learn, explains the idea before the tool, works through at least one small example with real numbers, lists the common mistakes and ends with questions to test yourself. Book references in the text and in the reference list name the chapter to read next: the docs are a map, the books are the territory. A sensible order for a newcomer is Part I (foundations), then the part for your data type, then Part IV on practice. The statistics are best learned from Xia, Sun & Chen, Statistical Analysis of Microbiome Data with R and Xia & Sun, Bioinformatic and Statistical Analysis of Microbiome Data for microbiomes, Efron & Hastie, Computer Age Statistical Inference for large-scale testing, and James et al., An Introduction to Statistical Learning for machine learning; the sequence side from Ismail, Bioinformatics: A Practical Guide to NGS Data Analysis, Low & Tammi, Practical Bioinformatics for Beginners and Christensen (ed.), Introduction to Bioinformatics in Microbiology.

Check your understanding

Why is a microbiome study not just a list of species?

Because counts are relative, noisy and shaped by every step from extraction to database. A conclusion is only as good as the weakest step of the chain.

What separates an isolate genome project from a microbiome project?

An isolate project reconstructs one organism completely (assembly, annotation); a microbiome project measures many organisms partially and compares samples statistically.

Key references

  1. Knight R, Vrbanac A, Taylor BC, et al. Best practices for analysing microbiomes. Nature Reviews Microbiology 16, 410–422 (2018).
  2. Quince C, Walker AW, Simpson JT, Loman NJ, Segata N. Shotgun metagenomics, from sampling to analysis. Nature Biotechnology 35, 833–844 (2017).
  3. Bharti R, Grimm DG. Current challenges and best-practice protocols for microbiome analysis. Briefings in Bioinformatics 22, 178–193 (2021).
  4. Christensen H (ed.). Introduction to Bioinformatics in Microbiology. Learning Materials in Biosciences, Springer, 2018. Read: Ch. 1 Introduction to Bioinformatics in Microbiology: why the field exists and how sequence data flow through it.
  5. Wang Z. Introduction to Computational Metagenomics. World Scientific, 2022. Read: Ch. 1–3: what metagenomics is and why its data are a computational problem.
  6. Xia Y, Sun J, Chen D-G. Statistical Analysis of Microbiome Data with R. ICSA Book Series in Statistics, Springer, 2018. Read: Ch. 1–3: bioinformatic analysis, what microbiome data are, and an overview of their statistics.
  7. Xia Y, Sun J. Bioinformatic and Statistical Analysis of Microbiome Data: From Raw Sequences to Advanced Modeling with QIIME 2 and R. Springer, 2023.
  8. Ismail HD. Bioinformatics: A Practical Guide to Next Generation Sequencing Data Analysis. CRC Press, 2023.
  9. Low LWY, Tammi MT (eds.). Practical Bioinformatics for Beginners: From Raw Sequence Analysis to Machine Learning Applications. World Scientific, 2023.
  10. Efron B, Hastie T. Computer Age Statistical Inference: Algorithms, Evidence, and Data Science. Cambridge University Press, 2016.
  11. James G, Witten D, Hastie T, Tibshirani R. An Introduction to Statistical Learning with Applications in R, 2nd edition. Springer, 2021.
Part I · Foundations

Study design, controls and metadata

The most important decisions in a microbiome study are made before any DNA is extracted. Design determines which questions can be answered at all; controls determine whether the answer can be trusted.

Replication and the unit of analysis

The unit of replication is the thing that was independently assigned to a treatment or sampled from a population: a person, an animal, a pen, a field plot. Several samples from the same unit (repeated time points, technical replicates, several gut sections) are not independent and must be modelled as such, usually with a random effect or by averaging. Treating them as independent inflates the apparent sample size and produces false positives, a problem known as pseudoreplication.

Microbial communities vary a lot between individuals, so effects that are clear within an individual can be small compared with the differences between individuals. Longitudinal designs, where each subject is its own control, are therefore much more powerful than cross-sectional ones for many questions. Animal studies add a well-known complication: animals housed together share microbes through coprophagy and the environment, so the cage, not the animal, is often the true unit.

Confounders that matter in practice

Several factors are known to shift community composition strongly enough to create spurious associations: antibiotics and other medication (proton-pump inhibitors, metformin, laxatives), diet in the days before sampling, stool consistency and transit time, age, and host genotype in animal models. Technical factors matter just as much: the extraction kit, the sequencing run, the person who processed the samples, and the time a sample spent at room temperature. The safest approach is to randomise samples across extraction batches and sequencing runs, so that technical batches cannot line up with biological groups, and to record every one of these variables.

Negative and positive controls

Reagents and laboratory surfaces carry their own low-level microbial DNA. In samples with high biomass, such as stool, this "kitome" is swamped by real signal. In low-biomass samples, such as skin swabs, tissue biopsies, blood, milk or air, contaminants can make up a large share of the reads and have produced headline findings that later proved to be artefacts (Salter et al., 2014; Eisenhofer et al., 2019). Every extraction batch should include an extraction blank (no sample) and every PCR plate a no-template control. These controls are sequenced like real samples and used later to identify contaminants (chapter 6).

Positive controls are mock communities: defined mixtures of known strains or of their DNA, such as the ZymoBIOMICS standards. Sequencing a mock community shows how far your workflow distorts the true composition. Extraction bias against Gram-positive cells, primer mismatches and GC bias all show up as a gap between expected and observed abundances. A mock community is also the best way to compare two pipelines on your own data.

Relative and absolute abundance

Sequencing returns a sample of reads whose total depends on the library, not on how many microbes were in the sample. Counts are therefore relative: if one taxon doubles, every other taxon appears to shrink. Several methods recover absolute numbers. Flow cytometry measures total cell load per gram (Vandeputte et al., 2017), qPCR of the 16S gene measures total gene copies, and spike-ins add a known number of foreign cells or synthetic DNA before extraction. If the scientific question is about absolute change (did the antibiotic reduce the total bacterial load?), plan for one of these from the start.

Metadata

A sample without metadata is almost worthless. Record subject, time point, treatment, the confounders above, extraction batch, sequencing run and any deviation from protocol, in a single tidy table with one row per sample. Use controlled vocabularies, units in the column names and no merged cells. Standards such as MIxS from the Genomic Standards Consortium describe the minimum information expected when data are deposited in public archives, and following them from the start saves work at publication time (Wilkinson et al., 2016).

Check your understanding

You sequence one stool sample from each of 3 patients 10 times. How many independent observations do you have?

Three. Technical replicates measure the laboratory noise, not the variation between people.

Why do extraction blanks matter most for low-biomass samples?

Kit and laboratory contaminants make up a larger share of the reads when there is little real DNA; without blanks they look like genuine taxa.

Part I · Foundations

Sequencing technologies and read quality

Short reads are cheap and accurate; long reads span repeats and reveal structure. Most choices downstream follow from which kind of read you have and from how good it is.

Short reads

Illumina instruments produce reads of 100 to 300 bases, often as pairs from the two ends of a fragment. Per-base accuracy is high (typically better than 99.9 percent) and errors are mostly substitutions, which rise towards the end of each read. Short reads are the standard for amplicon sequencing, for shotgun metagenomic profiling and for polishing bacterial genomes. Their weakness is length: any repeat longer than a read or a fragment, such as rRNA operons, insertion sequences and duplicated genes, cannot be resolved, so short-read genome assemblies usually break into tens to hundreds of contigs.

Long reads

Oxford Nanopore (ONT) reads DNA as it passes through a protein pore and can produce reads from a few kilobases to more than a hundred kilobases. Older chemistries had error rates of several percent, dominated by insertions and deletions in homopolymers. The R10.4.1 pores with recent basecallers reach modal accuracies above 99 percent, enough to produce near-finished bacterial genomes without short-read polishing (Sereika et al., 2022). PacBio HiFi reads are 10 to 25 kb long with accuracy above 99.9 percent, from circular consensus sequencing of the same molecule. Older PacBio CLR reads are longer but much noisier. A long read that spans every repeat in a genome allows assembly into one circular chromosome plus plasmids.

Quality scores

Each base comes with a Phred quality score Q, where the probability that the base is wrong is

P(error) = 10−Q/10

so Q20 means a 1 in 100 chance of error and Q30 a 1 in 1000 chance. Quality plots per position show where reads degrade; read-length histograms show whether long-read libraries contain the long molecules you paid for. Simple summary tools such as  report read counts, total bases, N50 and mean quality per file (Shen et al., 2016);  does the same with plots tailored to long reads (De Coster et al., 2018).

Ismail works through FASTQ encodings, quality plots and trimming in detail, and Low & Tammi give a hands-on version of the same checks (Ismail, Bioinformatics: A Practical Guide to NGS Data Analysis, ch. 1; Low & Tammi, Practical Bioinformatics for Beginners, ch. 3).

What read QC should do

  • Remove adapters and primers. Adapter read-through happens whenever a fragment is shorter than the read. In amplicon data the primer sequences must also be removed because they do not represent the template.
  • Trim or filter by quality. For short reads, trim low-quality tails (, ). For long reads, filter whole reads below a mean quality or length threshold rather than trimming.
  • Remove host reads in shotgun samples from host-associated sites by mapping to the host genome, both to save compute and for privacy in human studies.
  • Check depth. Samples far below the run median are often failed libraries.

How much sequencing?

For 16S amplicons, 10,000 to 50,000 reads per sample usually captures the dominant community; rare taxa need more. For shotgun profiling of gut samples, a few million read pairs per sample are enough for species-level taxonomic profiles, while functional profiling and genome reconstruction from metagenomes benefit from 10 to 20 million or more. For isolate genomes, 50 to 100-fold short-read coverage or 30 to 50-fold long-read coverage is typical; very high long-read coverage can be subsampled to the longest, best reads.

Check your understanding

A base has Q = 30. What is the chance it is wrong?

10−30/10 = 0.001, one error in a thousand bases. Q20 is one in a hundred.

Why are Nanopore errors harder to remove than Illumina errors?

Illumina errors are mostly substitutions near read ends, easy to trim; Nanopore errors include insertions and deletions, often in homopolymers, spread along the read.

Core skills · Sequence analysis

Aligning sequences: scoring, dynamic programming and 

Almost every sequence question starts with a comparison: is this gene like one we know, where does this read belong, how far apart are these two strains? An alignment is the answer in its most explicit form, and  is how we ask it of millions of sequences at once.

Homology and similarity are not the same word

Two sequences are homologous if they descend from a common ancestor. That is a yes-or-no statement about history: a pair is homologous or it is not, and "70 % homologous" is a category error. What we can measure is similarity, the fraction of aligned positions that are identical or chemically alike. Similarity is evidence for homology, never the definition of it. Pearson puts the practical consequence plainly: statistically significant similarity lets us infer homology, and absence of significant similarity does not prove its absence (Pearson, 2013).

Homologs come in two kinds that matter for naming genes. Orthologs diverged when species diverged, so they are "the same gene" in two organisms. Paralogs diverged when a gene was duplicated inside one lineage, and often take on different jobs. Calling a paralog by its relative's name is one of the commonest sources of wrong annotation, which chapter A3 returns to.

What an alignment is

An alignment writes two sequences in rows so that positions believed to share an ancestor sit in the same column. A column holds a match, a mismatch or, when one sequence has an inserted or deleted stretch, a gap (a dash). Many alignments are possible for the same pair, so we need a rule to say which is best: a score that adds a reward for each match, a penalty for each mismatch and a penalty for each gap, and we keep the alignment with the highest total.

Scoring DNA

DNA scoring is simple because there are only four letters: a positive score for a match and a negative one for a mismatch. The ratio sets what the alignment is tuned to find. 's megablast uses +1 and −2, which rewards long, nearly identical matches; the default uses +2 and −3, which tolerates somewhat more divergence (the defaults of  +; Camacho et al., 2009).

Scoring proteins: substitution matrices

For proteins, not every mismatch is equally bad. Replacing leucine with isoleucine, two similar hydrophobic residues, happens often in evolution and costs little; replacing tryptophan with alanine happens rarely and costs a lot. A substitution matrix stores one score for every pair of the 20 amino acids as a log-odds ratio: how often the pair is seen in real alignments of related proteins, divided by how often chance alone would put them together. The two families you will meet are PAM, built from closely related proteins and extrapolated to greater distances (Dayhoff et al., 1978), and BLOSUM, built directly from conserved blocks of real alignments (Henikoff & Henikoff, 1992). The number in a BLOSUM name is the identity at which sequences in the blocks were merged: BLOSUM62 comes from blocks clustered at 62 %, so it suits moderately related proteins; BLOSUM45 suits more distant ones and BLOSUM80 closer ones. BLOSUM62 is the default of  for proteins.

PairBLOSUM62 scoreWhy
W–W+11tryptophan is rare, so matching it is strong evidence
C–C+9cysteines often form structural disulfide bonds
A–A+4alanine is common, so matching it says less
I–V+3both small, branched and hydrophobic
D–E+2both acidic and negatively charged
A–W−3small against large and aromatic: rarely tolerated

Scoring gaps

An insertion or deletion is usually one event that removes or adds several residues in one go, so a gap of length 5 is much less than five times as unlikely as a gap of length 1. Affine gap penalties capture this with a large cost to open a gap and a small cost for each further position (Gotoh, 1982). For protein searches  charges 11 to open and 1 to extend with BLOSUM62. The gap penalties matter as much as the matrix: too cheap and the program stitches unrelated fragments together, too dear and it cannot cross a real insertion.

Dynamic programming: the idea behind every aligner

There are astronomically many ways to place gaps, yet the best one can be found without trying them all, because the best alignment of two prefixes is built from the best alignments of shorter prefixes. Fill a table whose cell (i, j) holds the best score for the first i letters of one sequence against the first j of the other. Each cell is the best of three moves: diagonal (align the two letters, add the match or mismatch score), down (a gap in the second sequence, add the gap penalty) or right (a gap in the first). When the table is full, the bottom-right cell is the optimal score and following the choices back to the top-left gives the alignment itself. This is the Needleman–Wunsch algorithm for global alignment, which aligns both sequences from end to end (Needleman & Wunsch, 1970).

Global alignment is right when the two sequences are expected to be homologous along their whole length, such as two versions of one gene. When only a region is shared, for instance a protein domain inside two different proteins, forcing the ends to align drags the score down. Local alignment, the Smith–Waterman algorithm, changes two rules: no cell may fall below zero, which lets an alignment start anywhere, and the answer is the highest cell anywhere in the table, not the corner (Smith & Waterman, 1981). Tracing back from that cell until a zero is reached recovers the best-matching region.

Dynamic programming is exact but slow: the table has m × n cells, which is trivial for two genes of a few kilobases and impossible for two human chromosomes, where aligning chromosome 1 with itself would need about 6 × 1016 cells. Everything in the next sections is a way to avoid filling the whole table.

Is the alignment real? Bit scores and E-values

A raw alignment score depends on the matrix and gap penalties, so a score of 120 means nothing on its own. Karlin and Altschul showed that, for local alignments without gaps, the scores of unrelated sequences follow a known distribution, so the chance of seeing a score at least this high can be calculated (Karlin & Altschul, 1990). Two numbers come out of that theory.

  • The bit score S′ rescales the raw score so that it can be compared across matrices and searches. Each extra bit halves the chance of a random hit.
  • The E-value is the number of hits with a score at least this good that you would expect by chance in a search of this size: E ≈ m · n · 2−S′, where m is the query length and n the total length of the database.

Remember what the E-value measures: how surprising the score is under a random model of sequences. Real proteins are not random. Low-complexity stretches (poly-Q, collagen repeats) and unusual amino-acid composition produce high scores between unrelated proteins, which is why  masks low-complexity regions by default and applies a composition-based adjustment to protein scores (Schäffer et al., 2001). A significant E-value is evidence of homology, but it is evidence about the score, not a verdict on the biology.

: finding similar sequences fast

 avoids the table by looking only where similarity is likely. It cuts the query into short words (11 letters for , 28 for megablast, 3 amino acids for protein searches), finds the places in the database where a word matches exactly or, for proteins, scores above a threshold, and tries to extend each such seed into a longer alignment, stopping when the score drops too far. It is a heuristic: it can miss a true alignment that has no good seed, in return for being thousands of times faster than Smith–Waterman (Altschul et al., 1990). Gapped  requires two nearby seeds on the same diagonal before it extends, which cut the run time again, and PSI- repeats the search with a profile built from the hits of the previous round, which finds more distant relatives (Altschul et al., 1997). The modern command-line program is + (Camacho et al., 2009).

ProgramQuery → databaseUse it to…
 / megablastnucleotide → nucleotidefind the same or a very close sequence; megablast for near-identical hits, dc-megablast or for more divergent ones
protein → proteinfind homologous proteins, including distant ones
nucleotide, translated in 6 frames → proteinannotate a gene or read of unknown frame
protein → nucleotide, translated in 6 framesfind where a known protein hides in an unannotated genome
tblastxtranslated → translatedcompare coding sequences when neither has been annotated (slow)

Searching at the protein level is more sensitive for divergent sequences than searching DNA: the 20-letter alphabet carries more information per position, and the genetic code is degenerate, so third-codon positions drift faster than the amino acids they code for. Between distantly related species a DNA search often finds nothing where a protein search finds a clear homolog.

Reading a hit table

The tabular format (-outfmt 6) gives one row per aligned region. Read the columns together, never one alone.

ColumnMeaningCommon trap
pidentidentical positions divided by alignment length100 % over 20 residues of a 600-residue protein is a hit to a motif, not to the gene
length, qcovsaligned length; share of the query covereda high identity on low coverage is a domain match
evalueexpected random hits at this score or betterdepends on database size: do not compare across databases
bitscorescore on a common scaleuse it, not the E-value, to rank hits within one search

For transferring a function from a hit to your protein, identity and coverage both matter. Tian and Skolnick found that enzyme function is usually conserved above about 40 % identity but is increasingly unreliable below it (Tian & Skolnick, 2003). Between roughly 20 and 35 % identity over a long alignment lies what Rost called the twilight zone, where identity alone cannot separate homologs from chance and a profile or structure is needed (Rost, 1999). These are starting points, not laws: a catalytic residue lost to a single substitution can silence an enzyme at 90 % identity.

When  is the wrong tool

  • Millions of queries. Metagenomic reads and whole proteomes are searched with faster protein aligners.  reaches -like sensitivity in its sensitive modes at a small fraction of the time (Buchfink et al., 2015; Buchfink et al., 2021), and  is faster again and can cluster sequences (Steinegger & Söding, 2017).
  • Mapping reads to a reference genome. This needs a read mapper, not a database search:  for long reads and genome-to-genome alignment (Li, 2018), and  for short reads, both covered with variant calling in chapter 21 (Variant calling and comparative genomics).
  • Distant relationships. When pairwise similarity runs out, use profiles: PSI-, or profile hidden Markov models such as  domains searched with . They are the subject of chapter A3.

For a second explanation with exercises, read Baxevanis, Bader and Wishart, ch. 3, on pairwise similarity with  and FASTA (Bioinformatics, 4th ed.); Christensen, ch. 4, which links pairwise alignment, multiple alignment and  in a microbiology setting (Introduction to Bioinformatics in Microbiology); and Pevzner and Shamir, ch. 4, for dynamic programming as a general idea (Bioinformatics for Biologists).

Check your understanding

Two proteins are 85 % identical over 40 residues of a 500-residue sequence. Are they homologous?

Possibly a shared domain, but the evidence is about 8 % of the sequence. Coverage matters as much as identity: this is a domain-level hit, and the rest of the proteins may be unrelated.

Why does Smith–Waterman never let a cell fall below zero?

A zero lets an alignment start afresh anywhere. A poor region cannot drag the score of a good one below zero, so the best-matching region is found regardless of what lies on either side.

A hit has bit score 40 against a database of 108 residues. The same query and hit is later searched against a database ten times larger. What happens to the bit score and to the E-value?

The bit score is unchanged; it depends on the alignment, not the database. The E-value rises about tenfold, because there are ten times as many chances for a random hit.

Which program finds where a known protein lies in a newly sequenced, unannotated genome?

: the protein is the query and the genome is translated in all six frames.

Key references

  1. Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ. Basic local alignment search tool. Journal of Molecular Biology 215, 403–410 (1990).
  2. Altschul SF, Madden TL, Schäffer AA, et al. Gapped  and PSI-: a new generation of protein database search programs. Nucleic Acids Research 25, 3389–3402 (1997).
  3. Buchfink B, Xie C, Huson DH. Fast and sensitive protein alignment using . Nature Methods 12, 59–60 (2015).
  4. Buchfink B, Reuter K, Drost H-G. Sensitive protein alignments at tree-of-life scale using . Nature Methods 18, 366–368 (2021).
  5. Camacho C, Coulouris G, Avagyan V, et al. +: architecture and applications. BMC Bioinformatics 10, 421 (2009).
  6. Dayhoff MO, Schwartz RM, Orcutt BC. A model of evolutionary change in proteins. In: Atlas of Protein Sequence and Structure, vol. 5, suppl. 3, 345–352. National Biomedical Research Foundation, 1978.
  7. Gotoh O. An improved algorithm for matching biological sequences. Journal of Molecular Biology 162, 705–708 (1982).
  8. Henikoff S, Henikoff JG. Amino acid substitution matrices from protein blocks. PNAS 89, 10915–10919 (1992).
  9. Karlin S, Altschul SF. Methods for assessing the statistical significance of molecular sequence features by using general scoring schemes. PNAS 87, 2264–2268 (1990).
  10. Li H. : pairwise alignment for nucleotide sequences. Bioinformatics 34, 3094–3100 (2018).
  11. Needleman SB, Wunsch CD. A general method applicable to the search for similarities in the amino acid sequence of two proteins. Journal of Molecular Biology 48, 443–453 (1970).
  12. Pearson WR. An introduction to sequence similarity (“homology”) searching. Current Protocols in Bioinformatics 42, 3.1.1–3.1.8 (2013).
  13. Rost B. Twilight zone of protein sequence alignments. Protein Engineering 12, 85–94 (1999).
  14. Schäffer AA, Aravind L, Madden TL, et al. Improving the accuracy of PSI- protein database searches with composition-based statistics and other refinements. Nucleic Acids Research 29, 2994–3005 (2001).
  15. Shah N, Nute MG, Warnow T, Pop M. Misunderstood parameter of   impacts the correctness of bioinformatics workflows. Bioinformatics 35, 1613–1614 (2019).
  16. Smith TF, Waterman MS. Identification of common molecular subsequences. Journal of Molecular Biology 147, 195–197 (1981).
  17. Steinegger M, Söding J.  enables sensitive protein sequence searching for the analysis of massive data sets. Nature Biotechnology 35, 1026–1028 (2017).
  18. Tian W, Skolnick J. How well is enzyme function conserved as a function of pairwise sequence identity? Journal of Molecular Biology 333, 863–882 (2003).
  19. Baxevanis AD, Bader GD, Wishart DS (eds.). Bioinformatics, 4th edition. Wiley, 2020. Read: Ch. 3, assessing pairwise sequence similarity with  and FASTA.
  20. Christensen H (ed.). Introduction to Bioinformatics in Microbiology. Learning Materials in Biosciences, Springer, 2018. Read: Ch. 4, pairwise alignment, multiple alignment and .
  21. Pevzner P, Shamir R (eds.). Bioinformatics for Biologists. Cambridge University Press, 2011. Read: Ch. 4, dynamic programming as one key for many biological problems.
Core skills · Sequence analysis

Multiple alignment and phylogenetic trees

A pairwise alignment compares two sequences. A multiple alignment lines up many at once, and it is the raw material for almost everything that follows: conserved sites, profile models, and the family trees that tell you how genes, strains and species are related.

From two sequences to many

In a multiple sequence alignment (MSA) each column is a claim: the residues in it descend from one residue of the common ancestor. A well-built MSA shows which positions are conserved, which vary, and where insertions and deletions have happened. Conserved columns point to structure and function; variable columns carry the signal that separates strains and species. The same alignment feeds profile models (chapter A3) and phylogenetic trees (below), so a mistake here is inherited by everything built on it.

Building the alignment

Exact multiple alignment by dynamic programming grows exponentially with the number of sequences and is not used in practice. Almost every method is progressive: align the two most similar sequences first, then add the next most similar sequence or group, following a guide tree from the closest pairs to the most distant ones. The weakness is built in. A gap placed in an early alignment is never revisited, so an early error spreads to every later step, a problem often summarised as "once a gap, always a gap". Better methods soften this with iterative refinement, which repeatedly splits the alignment and realigns the parts, as in MUSCLE (Edgar, 2004), or with a consistency score that prefers alignments supported by many pairwise comparisons.

ProgramStrengthUse it when
fast, with settings from quick to accurate (Katoh & Standley, 2013)the default choice; --auto picks a strategy for the data size
MUSCLEaccurate; version 5 gives an ensemble of alignments to test how much a result depends on the alignment (Edgar, 2022)moderate numbers of sequences; checking robustness
Clustal Omegascales to many thousands of protein sequences (Sievers et al., 2011)very large protein sets

Align proteins, then go back to DNA. A coding sequence aligned as DNA treats a deleted codon as a stretch of three nucleotides that can be misplaced by one position, and the codon structure is lost. The reliable order is to translate, align the proteins, and map the gaps back onto the nucleotides in whole codons, which preserves the reading frame and is the correct input for tests of selection. PAL2NAL does this step (Suyama et al., 2006).

Checking and trimming

Look at the alignment before using it. Scroll through it in a viewer: long gap-rich blocks, a single sequence that does not fit anywhere, or a large block of mismatches at one end usually mean a wrong sequence (a fragment, a contaminant, a different gene) or a poor alignment. Remove or fix those first. Automatic trimming of unreliable columns, for example with trimAl (Capella-Gutiérrez et al., 2009), is common practice, but it is not free: a benchmark of trimming tools found that they frequently worsened single-gene trees, because the columns removed carry signal as well as noise (Tan et al., 2015). Trim lightly and record what you did.

What a tree is

A phylogenetic tree is a diagram of descent. Tips are the sequences you sampled. Each internal node is a common ancestor of everything below it and each branch is a lineage. A clade is a node and all its descendants; a clade is monophyletic when it contains an ancestor and all of its descendants. Three things are easy to get wrong:

  • The order of tips means nothing. Any node can be rotated like the arm of a mobile without changing the tree. Do not read "closer on the page" as "closer relatives"; follow the branches back to the node they share.
  • Branch lengths are optional. A cladogram shows only branching order. A phylogram draws branch length proportional to the amount of change, usually in substitutions per site.
  • A tree is rooted or not. An unrooted tree shows relationships without a direction in time. A root adds that direction and is placed with an outgroup, a lineage known to be outside the group of interest, or by assumptions such as a constant rate (the midpoint).

Ways of building a tree

ApproachIdeaTrade-off
Distance (neighbor-joining)convert the alignment to pairwise distances and join the closest pairs, correcting for unequal rates (Saitou & Nei, 1987)very fast, one tree, loses information when sequences are very divergent
Maximum parsimonychoose the tree that needs the fewest changesno model of evolution; can mislead when rates differ between lineages
Maximum likelihoodchoose the tree and branch lengths that make the data most probable under an explicit model (Felsenstein, 1981)the standard for most work; slower, needs a model
Bayesian inferencesample trees in proportion to their posterior probability (Ronquist et al., 2012)gives a probability for each clade and handles dating; slow, needs care that runs have converged

For most projects use maximum likelihood.  (Minh et al., 2020) and -NG (Kozlov et al., 2019) are the usual programs;  is a much faster approximate method suited to very large alignments, where it trades some accuracy for speed (Price et al., 2010).

Why raw differences understate distance

Count the share p of positions at which two sequences differ. It is tempting to use p as the distance, but a position can change twice (A to G and back, or A to G to T), and the second change may be invisible. The longer the time, the more changes are hidden. A substitution model corrects for this. The simplest, Jukes–Cantor, assumes every change is equally likely and gives the corrected distance d = −¾ ln(1 − 4p/3).

Real models add the facts of real evolution: transitions (A↔G, C↔T) are more frequent than transversions, base frequencies are not equal, and some sites change faster than others, usually modelled by a gamma distribution of rates (written +G). The general time-reversible model with gamma rates (GTR+G) is a common DNA model. Rather than guessing, let the program choose: ModelFinder, built into , compares models by an information criterion and reports the best (Kalyaanamoorthy et al., 2017).

How much to trust a branch

The bootstrap resamples the columns of the alignment with replacement, builds a tree from each resample, and reports for every branch the percentage of resampled trees that contain it (Felsenstein, 1985). A branch with 87 means that 87 of 100 resampled alignments gave that grouping. It measures how consistently the data support the grouping, not the probability that the grouping is true: a consistent error, such as a wrong model or a contaminated sequence, can be supported at 100. The standard bootstrap needs many full tree searches, so  offers an ultrafast version, UFBoot, whose values are read differently, with 95 or more usually taken as well supported (Hoang et al., 2018), and the SH-aLRT test, where 80 or more is the common mark (Guindon et al., 2010). Report which kind of support a figure shows, and treat branches below these marks as unresolved, not as wrong.

Gene trees and species trees

A tree built from one gene is a gene tree. It need not match the tree of the species. Paralogs make the gene tree describe duplications as well as speciations, so trees of gene families must be read with orthology in mind. Horizontal gene transfer moves genes between lineages, which is common in bacteria. Incomplete lineage sorting makes gene trees differ from the species tree in closely related species. The usual remedies are to build the species tree from many single-copy genes, either by joining their alignments or by reconciling their individual trees, and to check how well individual genes agree. The 16S rRNA gene is a convenient single marker for bacteria, but a tree from one marker is a tree of that marker.

Baxevanis, Bader and Wishart, ch. 8, covers multiple alignment and how to measure its quality (Bioinformatics, 4th ed.). Claverie and Notredame take the practical route, from building an alignment to building a tree, in ch. 9 and ch. 13 (Bioinformatics For Dummies). For the methods behind tree estimation read Warnow (Computational Phylogenetics), and for doing it in R, Paradis (Analysis of Phylogenetics and Evolution with R).

Check your understanding

Two taxa sit next to each other at the bottom of a printed tree. Are they close relatives?

Not necessarily. The order of tips is arbitrary because nodes can be rotated. Close relatives are those that share a recent common ancestor: follow the branches up to the node they share.

Two DNA sequences differ at half their positions. Is the evolutionary distance 0.5 substitutions per site?

No. Some positions have changed more than once and the extra changes are invisible. Under Jukes–Cantor the corrected distance is about 0.82.

A branch has bootstrap support 100. Does that prove the grouping is correct?

No. It shows that the data consistently support it under the model used. A wrong model, a contaminated sequence or long-branch attraction can be supported at 100.

You want a tree of a gene family that has been duplicated in several species. What must you keep in mind?

The gene tree contains duplication events as well as speciation events, so it does not equal the species tree. Separate orthologs from paralogs before reading it as a species phylogeny.

Key references

  1. Capella-Gutiérrez S, Silla-Martínez JM, Gabaldón T. trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses. Bioinformatics 25, 1972–1973 (2009).
  2. Edgar RC. MUSCLE: multiple sequence alignment with high accuracy and high throughput. Nucleic Acids Research 32, 1792–1797 (2004).
  3. Edgar RC. Muscle5: high-accuracy alignment ensembles enable unbiased assessments of sequence homology and phylogeny. Nature Communications 13, 6968 (2022).
  4. Felsenstein J. Cases in which parsimony or compatibility methods will be positively misleading. Systematic Zoology 27, 401–410 (1978).
  5. Felsenstein J. Evolutionary trees from DNA sequences: a maximum likelihood approach. Journal of Molecular Evolution 17, 368–376 (1981).
  6. Felsenstein J. Confidence limits on phylogenies: an approach using the bootstrap. Evolution 39, 783–791 (1985).
  7. Guindon S, Dufayard J-F, Lefort V, et al. New algorithms and methods to estimate maximum-likelihood phylogenies: assessing the performance of PhyML 3.0. Systematic Biology 59, 307–321 (2010).
  8. Hoang DT, Chernomor O, von Haeseler A, Minh BQ, Vinh LS. UFBoot2: improving the ultrafast bootstrap approximation. Molecular Biology and Evolution 35, 518–522 (2018).
  9. Kalyaanamoorthy S, Minh BQ, Wong TKF, von Haeseler A, Jermiin LS. ModelFinder: fast model selection for accurate phylogenetic estimates. Nature Methods 14, 587–589 (2017).
  10. Katoh K, Standley DM.  multiple sequence alignment software version 7: improvements in performance and usability. Molecular Biology and Evolution 30, 772–780 (2013).
  11. Kozlov AM, Darriba D, Flouri T, Morel B, Stamatakis A. -NG: a fast, scalable and user-friendly tool for maximum likelihood phylogenetic inference. Bioinformatics 35, 4453–4455 (2019).
  12. Minh BQ, Schmidt HA, Chernomor O, et al.  2: new models and efficient methods for phylogenetic inference in the genomic era. Molecular Biology and Evolution 37, 1530–1534 (2020).
  13. Price MN, Dehal PS, Arkin AP.  2: approximately maximum-likelihood trees for large alignments. PLoS ONE 5, e9490 (2010).
  14. Ronquist F, Teslenko M, van der Mark P, et al. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic Biology 61, 539–542 (2012).
  15. Saitou N, Nei M. The neighbor-joining method: a new method for reconstructing phylogenetic trees. Molecular Biology and Evolution 4, 406–425 (1987).
  16. Sievers F, Wilm A, Dineen D, et al. Fast, scalable generation of high-quality protein multiple sequence alignments using Clustal Omega. Molecular Systems Biology 7, 539 (2011).
  17. Suyama M, Torrents D, Bork P. PAL2NAL: robust conversion of protein sequence alignments into the corresponding codon alignments. Nucleic Acids Research 34, W609–W612 (2006).
  18. Tan G, Muffato M, Ledergerber C, et al. Current methods for automated filtering of multiple sequence alignments frequently worsen single-gene phylogenetic inference. Systematic Biology 64, 778–791 (2015).
  19. Baxevanis AD, Bader GD, Wishart DS (eds.). Bioinformatics, 4th edition. Wiley, 2020. Read: Ch. 8, multiple sequence alignments and measuring their quality.
  20. Claverie J-M, Notredame C. Bioinformatics For Dummies, 2nd edition. Wiley, 2007. Read: Ch. 9, building a multiple sequence alignment; ch. 13, building phylogenetic trees.
  21. Warnow T. Computational Phylogenetics: An Introduction to Designing Methods for Phylogeny Estimation. Cambridge University Press, 2017. Read: the chapters on distance-based and maximum-likelihood estimation, and on bootstrapping.
  22. Paradis E. Analysis of Phylogenetics and Evolution with R, 2nd edition. Use R, Springer, 2012. Read: the chapters on reading, plotting and estimating trees in R.
Core skills · Sequence analysis

Genes, genomes and annotation: what the evidence can and cannot say

A genome sequence is a string of letters. Annotation turns it into a list of genes with names and functions, and almost every later analysis depends on that list. It is also the step in which the most confident-looking errors are made, so it pays to know what each kind of evidence is worth.

The layout of a genome

Bacterial and archaeal genomes are compact: the great majority of the sequence codes for protein or for a structural RNA, and genes lie close together, often on both strands. Genes with related functions are frequently transcribed together as an operon, one messenger RNA carrying several genes, so the order of genes on the chromosome is itself information. A bacterial gene is a single uninterrupted reading frame, with a ribosome-binding site, the Shine–Dalgarno sequence, a few bases upstream of the start codon.

Eukaryotic genomes are loose. In the human genome, protein-coding exons are only about 1–2 % of the sequence. Genes are split into exons separated by introns, which are removed from the transcript by splicing; introns nearly always begin with GT and end with AG. Genes also have untranslated regions (UTRs) at either end, and one gene can give several transcripts by alternative splicing. Fungi lie in between: compact genomes, but with introns, usually few and short in yeasts and more numerous in filamentous species. Chapter 33 treats fungal gene prediction in practice.

The genetic code and the reading frame

A codon is three nucleotides. Of the 64 codons, 61 specify an amino acid and three (TAA, TAG, TGA) mean stop; ATG codes for methionine and is the usual start. A sequence can be read in three frames on each strand, six in all, and a gene is read in only one. An open reading frame (ORF) is the stretch from a start codon to the next stop in one frame. Not every ORF is a gene: stop codons turn up by chance, so short ORFs are everywhere.

Organisms do not all use the same code. Bacteria and archaea use the standard amino-acid assignments but also accept GTG and TTG as starts ( translation table 11). Mycoplasma reads TGA as tryptophan instead of stop (table 4), and mitochondria have their own tables. Annotating with the wrong table truncates every gene that contains the reassigned codon.

How genes are found

Prokaryotes. Gene finders score candidate ORFs on how much they look like the genome's own coding sequence (codon usage and its pattern across the three codon positions), on the presence of a ribosome-binding site, and on the start codon used, then choose the set of genes that fits together best along the chromosome.  learns all of these from the genome itself without being given a training set (Hyatt et al., 2010). Start positions are the hardest part: the end of a gene is fixed by its stop codon, but several in-frame start codons may be possible, and a wrong choice shortens or lengthens the protein at the N-terminus.

Eukaryotes. The problem is to find exons and join them correctly across introns. Ab initio programs such as  use a hidden Markov model of exon, intron and intergenic sequence (Stanke et al., 2006). They become much more accurate when given evidence: RNA-seq reads aligned to the genome and proteins from related species. Pipelines such as  combine the two and train the model on the genome being annotated (Brůna et al., 2021).

Non-coding genes. Transfer RNAs are found with  (Chan et al., 2021). Other structural RNAs, from ribosomal RNA to riboswitches, are found by covariance models of their conserved secondary structure, built into  and catalogued in  (Nawrocki & Eddy, 2013; Kalvari et al., 2021).

Protein families and profile models

 compares a sequence with another sequence. When two proteins are too distant for that, a profile does better, because it summarises a whole family. A profile hidden Markov model (profile HMM) is built from a multiple alignment of a family (chapter A2). For each column it records how likely each amino acid is, so a conserved tryptophan counts for much and a variable position for little, and it has states for insertions and deletions between columns. A new sequence is scored against the model, and the score says how well it fits the family, not any one member.  searches sequences against such models quickly (Eddy, 2011).

The  database holds profile HMMs for thousands of protein families and domains, each with a curated score cut-off that sets where a hit is counted (Mistry et al., 2021), and  combines  with many other signature databases into one report per protein (Paysan-Lafosse et al., 2023). A domain hit tells you which part of a protein resembles a known module, and not what the whole protein does: a protein with a kinase domain and an unknown N-terminal region is a kinase of unknown specificity.

From a name to a function: ontologies and evidence

Free text such as "putative transporter" is hard to compare across genomes. The Gene Ontology (GO) gives controlled terms in three branches: molecular function (what the product does), biological process (what larger activity it takes part in) and cellular component (where it works) (Ashburner et al., 2000; Gene Ontology Consortium et al., 2023). Each assignment carries an evidence code saying how it was reached. Codes beginning with experimental evidence (for instance direct assay) rest on an observation about that protein; the code IEA, inferred from electronic annotation, is computed with no human review. Most of the annotations in any large database are of the second kind. Pathway resources such as KEGG add the question of which reactions a genome can carry out.

Functional annotation then adds up as a ladder of decreasing certainty:

  1. Experimentally shown for this protein, or an identical one.
  2. Orthology: a clear ortholog with experimental evidence, found by phylogeny or a method such as  (Emms & Kelly, 2019) or  (Cantalapiedra et al., 2021). Orthologs usually share function; paralogs often do not.
  3. Homology to a characterised family or domain: the protein belongs to a family, so it is likely to do the family's general job.
  4. Context: neighbouring genes, operon structure, co-expression.
  5. No evidence: "hypothetical protein". An honest label, and a far better one than a guess.

How errors spread

An annotation that is transferred from one genome to the next is copied, and the copy is not checked. Schnoes and colleagues compared the function assigned in public databases with the experimentally supported function across several enzyme superfamilies and found that misannotation was substantial in a number of superfamilies and that it had spread by transfer between similar sequences (Schnoes et al., 2009). Every new genome annotated by homology to a polluted database inherits the pollution and adds to it.

Annotation pipelines

Bacterial genomes are usually annotated with an integrated pipeline: 's PGAP, used for every genome submitted to  (Tatusova et al., 2016),  (Seemann, 2014), or , which searches a curated and versioned database of protein families and returns identifiers that can be traced back to their source (Schwengers et al., 2021). They differ in the databases they use and in how cautiously they name genes, so record the pipeline and database version with the result. Chapter 19 describes bacterial annotation step by step, and chapters 33 and 34 cover fungal gene prediction and function.

Baxevanis, Bader and Wishart, ch. 5, explains gene prediction methods and the structure of an annotation project (Bioinformatics, 4th ed.). Zvelebil and Baum, ch. 10, treat gene detection and annotation across bacteria and eukaryotes (Understanding Bioinformatics). Keith (ed.), vol. I, has a chapter on genome annotation (ch. 5) and one on working with ontologies (ch. 6) (Bioinformatics, Methods in Molecular Biology).

Check your understanding

A newly assembled bacterial genome has 30 % of its genes flagged as pseudogenes with frameshifts. What do you suspect first?

Sequencing or assembly errors, most likely homopolymer indels from long reads, not 30 % true pseudogenes. Polish the assembly and annotate again.

Why does a rule such as "any ORF over 100 codons is a gene" fail in a genome of 70 % GC?

Stop codons are AT-rich, so in a GC-rich genome they occur less often by chance. About one random stop-free stretch in seven is at least 100 codons long, so long false ORFs appear.

A protein has a  kinase domain. What can you say about its function?

That it probably phosphorylates something. The domain does not tell you the substrate, the pathway or whether the catalytic residues are intact. The rest of the protein and other evidence decide.

What is the difference between an IEA and an experimental GO annotation?

IEA is inferred electronically, with no human review of the protein. An experimental code rests on an observation made on that protein, so it is far more reliable.

Key references

  1. Ashburner M, Ball CA, Blake JA, et al. Gene Ontology: tool for the unification of biology. Nature Genetics 25, 25–29 (2000).
  2. Brůna T, Hoff KJ, Lomsadze A, Stanke M, Borodovsky M. BRAKER2: automatic eukaryotic genome annotation with -EP+ and  supported by a protein database. NAR Genomics and Bioinformatics 3, lqaa108 (2021).
  3. Cantalapiedra CP, Hernández-Plaza A, Letunic I, Bork P, Huerta-Cepas J.  v2: functional annotation, orthology assignments, and domain prediction at the metagenomic scale. Molecular Biology and Evolution 38, 5825–5829 (2021).
  4. Chan PP, Lin BY, Mak AJ, Lowe TM. : improved detection and functional classification of transfer RNA genes. Nucleic Acids Research 49, 9077–9096 (2021).
  5. Eddy SR. Accelerated profile HMM searches. PLoS Computational Biology 7, e1002195 (2011).
  6. Emms DM, Kelly S. : phylogenetic orthology inference for comparative genomics. Genome Biology 20, 238 (2019).
  7. Gene Ontology Consortium, Aleksander SA, Balhoff J, et al. The Gene Ontology knowledgebase in 2023. Genetics 224, iyad031 (2023).
  8. Hyatt D, Chen G-L, LoCascio PF, et al. : prokaryotic gene recognition and translation initiation site identification. BMC Bioinformatics 11, 119 (2010).
  9. Kalvari I, Nawrocki EP, Ontiveros-Palacios N, et al.  14: expanded coverage of metagenomic, viral and microRNA families. Nucleic Acids Research 49, D192–D200 (2021).
  10. Mistry J, Chuguransky S, Williams L, et al. : the protein families database in 2021. Nucleic Acids Research 49, D412–D419 (2021).
  11. Nawrocki EP, Eddy SR. : 100-fold faster RNA homology searches. Bioinformatics 29, 2933–2935 (2013).
  12. Paysan-Lafosse T, Blum M, Chuguransky S, et al.  in 2022. Nucleic Acids Research 51, D418–D427 (2023).
  13. Schnoes AM, Brown SD, Dodevski I, Babbitt PC. Annotation error in public databases: misannotation of molecular function in enzyme superfamilies. PLoS Computational Biology 5, e1000605 (2009).
  14. Schwengers O, Jelonek L, Dieckmann MA, et al. : rapid and standardized annotation of bacterial genomes via alignment-free sequence identification. Microbial Genomics 7, 000685 (2021).
  15. Seemann T. : rapid prokaryotic genome annotation. Bioinformatics 30, 2068–2069 (2014).
  16. Stanke M, Keller O, Gunduz I, et al. : ab initio prediction of alternative transcripts. Nucleic Acids Research 34, W435–W439 (2006).
  17. Tatusova T, DiCuccio M, Badretdin A, et al.  Prokaryotic Genome Annotation Pipeline. Nucleic Acids Research 44, 6614–6624 (2016).
  18. Watson M, Warr A. Errors in long-read assemblies can critically affect protein prediction. Nature Biotechnology 37, 124–126 (2019).
  19. Baxevanis AD, Bader GD, Wishart DS (eds.). Bioinformatics, 4th edition. Wiley, 2020. Read: Ch. 5, genome annotation and gene prediction methods.
  20. Zvelebil M, Baum JO. Understanding Bioinformatics. Garland Science, 2007. Read: Ch. 10, gene detection and genome annotation.
  21. Keith JM (ed.). Bioinformatics, Volume I: Data, Sequence Analysis, and Evolution. Methods in Molecular Biology 452. Humana Press, 2008. Read: Ch. 5, genome annotation; ch. 6, working with ontologies.
Core skills · Programming and data

The command line, files and scripts

Bioinformatics tools run on servers, read files too large to open in a spreadsheet, and are chained into pipelines. The command line is where that work happens. A few dozen commands and the habit of writing down what you ran are enough to do most of it, and to be able to repeat it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Python and R for bioinformatics: tables, sequences and plots

The shell moves files; Python and R analyse what is in them. Python is a general-purpose language with good tools for sequences and for machine learning. R was built for statistics and holds most of the packages for sequencing statistics. A bioinformatician reads both, and the same few ideas, tidy tables, groups and plots, work in each.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Text tools for biological data: grep, awk, sed, join and regular expressions

Almost every file in bioinformatics is text: FASTA, FASTQ, GFF, VCF, count tables, logs. A handful of old Unix tools read all of them, in seconds, without loading anything into memory. Learn these tools well and most questions about a file ("how many?", "which ones?", "what is in column 5?") are one line long.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Bash scripting: from one-liners to reliable pipelines

A one-liner answers a question once. A script answers it every time, on every file, for everyone. This chapter builds, step by step, a small but real script with the features of a good one: arguments, checks, loops, functions, clear errors and an exit status other programs can read. The script is run on real files and every output below is its real output.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Python from the ground up, with sequences as the example

Python is the language in which most bioinformatics tools and pipelines are written or glued together. This chapter teaches the language itself, from the first line to functions, files and errors, using DNA sequences as the running example. Every snippet was run; the printed output is real.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Python for sequences and tables: Biopython, pandas, and a tested command-line tool

Two libraries cover most daily work: Biopython for sequence files and biological objects, and pandas for tables. This chapter uses both on small files whose answers can be checked by hand, then turns the result into a command-line tool with arguments and tests, which is the step that separates a script you run from software others can use.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

R from the ground up: vectors, data frames, functions and statistics

R is the language of statistics and of Bioconductor, the collection of packages in which most expression, variant and microbiome methods were first published. It thinks in vectors and tables, which suits biological data. This chapter teaches the language with the same small count table used in the Python chapters, so that you can compare the two. All code was run in R 4.6 and the printed output is real.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

R for omics: ordination, PERMANOVA, ggplot2 and the Bioconductor workflow

This chapter applies R to a typical community or expression dataset: a samples-by-features table, a grouping, and the questions "are the groups different overall?", "which features differ?" and "how do I show it?". The code that was run here uses base R, vegan and ggplot2; the Bioconductor workflows are shown as a map, and the parts that were not run are marked.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Biopython in depth: sequences, records, features, alignments, motifs and trees

Biopython is the toolbox for the biological objects of Python: a sequence that knows its alphabet and its genetic code, a record that carries annotations and features, parsers for every common file format, pairwise aligners, motif models and phylogenetic trees. This chapter goes through it object by object. Every snippet was run, mostly on the real files of the MicroRes demonstration data (377 representative 16S sequences of 253 bases and their tree), so the numbers quoted are real.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Data science with Python: from a count table to a tested result

This chapter is one complete analysis in Python, from the raw count table to a figure and a statement you can defend. It uses the demonstration study that ships with MicroRes: 72 stool samples from three diets (Control, Fibre, Antibiotic), 4 negative-control blanks, 377 features, and a table of measurements per sample. Every number below was produced by the code shown, run with pandas, NumPy, SciPy, statsmodels, scikit-learn and Matplotlib. The same analysis is repeated in R in the next chapter, and the two agree.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Data science with R: the same analysis, with vegan and ggplot2

R is where statistics is done first, and where ecological and genomic methods are published. This chapter repeats the analysis of the previous chapter in R, on the same files, so that you can compare the two languages line by line, and adds what R does best: formal community statistics (PERMANOVA and dispersion), tidy modelling and graphics. Everything shown was run in R 4.6 with the packages vegan and ggplot2; the packages of the tidyverse and Bioconductor are described but not run here, and marked as such.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Core skills · Programming and data

Bash for bioinformatics: formats, labs and pipelines on one real genome

Bioinformatics files are text, and the shell is the fastest way to look inside them. This chapter works through nine short labs, in the order a newcomer meets the formats: FASTA, FASTQ and Phred quality, motifs,  on the command line, annotation files, alignments, variants, read counts, and finally a pipeline script that ties them together. Everything runs on one real genome, the 5,386-base phage phiX174, and every output shown is the real output of the command above it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

From reads to features: amplicon sequencing

An amplicon study turns millions of reads into a table of counts: rows are sequence features, columns are samples. How those features are defined decides the resolution of everything that follows.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Taxonomic profiling of shotgun metagenomes

Shotgun sequencing reads every genome in the sample, not one gene. Profilers turn those reads into species abundances in two different ways, and the difference matters when you interpret the numbers.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Filtering, quality control and contaminants

A raw feature table contains real taxa, off-target sequences, contaminants, artefacts and samples that failed. Filtering removes what cannot be biology, but every filter is a decision that must be reported.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Compositionality, normalisation and transformation

Sequencing counts carry information only about ratios between taxa. Normalisation corrects for unequal sequencing depth; transformation puts the data on a scale where standard statistics behave. They solve different problems and are best chosen separately.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Alpha diversity

Alpha diversity summarises a single community in one number: how many kinds of organisms it holds and how evenly they are spread. It is the most reported microbiome statistic and one of the easiest to get wrong.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Beta diversity and ordination

Beta diversity asks how different two communities are. A distance between every pair of samples, an ordination to look at it, and a permutation test to judge it form the backbone of most microbiome papers.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Differential abundance

Which taxa differ between groups is the question most microbiome studies end on, and the one where methods disagree most. Using more than one method and reading the agreement is the honest answer.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Associations and co-occurrence networks

Correlating taxa with each other or with host variables is easy to do and easy to over-interpret. Compositional methods remove the worst artefacts; careful reading removes most of the rest.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Machine learning and biomarkers

Predicting a phenotype from the microbiome tests whether the community carries information about it. Done carelessly, the same exercise produces impressive accuracies that vanish on new data.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part II · Microbiome analysis

Functional metagenomics

Taxonomy tells you who is there; function tells you what the community can do. Functional profiles add a layer of interpretation, and a layer of assumptions that should be stated.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Viral metagenomics

Viruses and viromes: what makes them different

Most of the methods in this handbook were built for bacteria. Viruses break several of their assumptions: there is no gene every virus shares, most sequences have no relative in any database, and a sample can be full of viral reads from sources that are not in it. This chapter explains why, so that the next two chapters make sense.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Viral metagenomics

From reads to vOTUs: finding, judging and counting viruses

A virome table is the end of a pipeline with five decisions in it: which sequences are viral, how good each genome is, which genomes are one virus, what each one is and infects, and how much of each is in each sample. Each decision leaves a trace in the table, and a reader who knows the pipeline can see what the numbers mean.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Viral metagenomics

Analysing and reporting a virome: controls, statistics and safety

A virome result is only as good as the checks behind it. This chapter follows the order of the MicroRes viral module: decide which genomes and which presences to trust, look for contamination, compare viromes with statistics that respect composition, link viruses to hosts, screen phages for use in a product, and report all of it so that a reviewer can check it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Read quality control for isolate genomes

An isolate genome is only as good as the reads behind it. A few minutes spent on read statistics saves hours of puzzling over a broken assembly.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Genome assembly

Assembly reconstructs a genome from overlapping reads. Repeats are what make it difficult, and read length is what solves them.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Polishing and circularisation

A long-read assembly gets the structure right. Polishing fixes the remaining base-level errors, and circularisation gives the genome a clean, conventional start.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Assembly quality:  and 

Two different questions decide whether an assembly is fit for use: is it contiguous, and is it complete and clean?

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Genome taxonomy: ANI and 

With a whole genome in hand, species identity is decided by genome-wide similarity, not by a single marker gene.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Genome annotation

Annotation finds the genes and other features in a genome and gives them names. The quality of every downstream biological claim depends on it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Typing, plasmids and resistance

Once a genome is annotated, the practical questions are usually about lineage, mobile elements and genes of concern.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part III · Bacterial genomics

Variant calling and comparative genomics

Comparing a strain with its parent or with close relatives reveals the mutations behind an evolved trait, an outbreak link or a lab adaptation.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IV · Practice

Reproducibility and workflows

An analysis is reproducible when someone else, or you in a year, can rerun it and get the same result. That depends less on good intentions than on how the work is set up.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IV · Practice

Reporting a microbiome or genome study

A good methods section lets a reader judge every choice that could have changed the result. A good results section separates what the data show from what they suggest.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

What RNA-seq measures, and how to design the study

RNA-seq turns the messenger RNA in a sample into millions of short sequences and counts them. Every later step, from normalisation to pathways, rests on two things decided before the first read exists: what RNA you captured, and how the samples were arranged.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

From reads to counts

The goal of the first half of an RNA-seq analysis is one table: genes in rows, samples in columns, a number in each cell. There are three ways to get there, and choosing between them is a question of what you need to know.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

Normalisation and exploring samples

Raw counts mix three things: how much a gene is expressed, how deeply the sample was sequenced, and what else was in the sample. Normalisation removes the last two so that the first can be compared. Then, before any test, you look at the samples.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

Differential expression, step by step

Differential expression asks, for every gene at once, whether the difference between groups is larger than the difference between replicates. The statistics look complicated, but they rest on four ideas: counts are over-dispersed, genes can borrow strength from each other, the design must be written down, and thousands of tests need a different kind of error control.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

From genes to biology: pathways and co-expression

A list of 400 differentially expressed genes is not yet a result. Gene-set methods ask which processes those genes belong to; co-expression methods ask which genes rise and fall together. Both turn individual genes into biology.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part V · Transcriptomics

Guide: an RNA-seq study in RNA-realm

A walk through a complete bulk RNA-seq analysis in RNA-realm, from FASTQ files or a count table to a methods section, with the decision that matters at each step and the chapter that explains it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

Fungal biology for genome analysts

Fungal genomes make sense only in the light of how fungi live: they digest food outside their cells, grow as networks of hyphae that may hold many nuclei, switch between haploid and diploid stages, and make chemical weapons. Each of these habits leaves a mark that a genome analyst has to recognise.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

Profiling and assembling a fungal genome

Before assembling, count k-mers: they tell you the genome size, how heterozygous it is and how much of it repeats. Then choose an assembler that matches your reads, and judge the result with numbers you understand.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

Is the assembly complete, clean and correctly named?

Three questions decide whether an assembly can be trusted: does it contain the whole genome, does it contain only this genome, and is the organism what you think it is?

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

Repeats and gene prediction

Finding genes in a eukaryotic genome means recognising a grammar: a start codon, exons, splice sites, introns, a stop codon. Repeats must be hidden first, or the predictor will happily call every transposon a gene.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

What the genes do: functional annotation of fungi

A list of 10,000 predicted proteins becomes biology when you know which ones digest plant walls, which make toxins, which are secreted to manipulate a host, and how this compares with relatives.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VI · Fungal genomics

Guide: a fungal genome in FungFlow

How to go from sequencing reads of one fungal isolate to an assembled, checked and annotated genome in FungFlow, and how to read each part of the report, with the chapter that explains it.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VII · Going further

The library: books and the state of the art

These docs are a map. This chapter points to the territory: the textbooks that teach each module properly, the order in which to read them, and the papers that define the current state of the art. Every entry is in the reference list at the end, with a link.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VIII · User manual

Getting started on Bioinformaniac

This manual is the place to look when you are stuck. Part I–VII of the handbook explain the science; this part explains the website: where your data goes, how a run is started and followed, where the results are, how to read them and how to take them home. Each tool has its own chapter (M2–M8) with the same structure, so once you know one you can find your way in all of them.

How the website is laid out

The top bar is the same on every page. Tools opens the seven workbenches; each opens inside the site, so the top bar, your account and the status bar stay with you. Docs is this handbook, My data holds everything you uploaded and every result, and your picture opens Account. On a phone the same entries sit in the tab bar at the bottom.

Your dataYour questionToolManual
Feature or count tables (QIIME 2, DADA2, MetaPhlAn, /Bracken, HUMAnN, PICRUSt2)Who is there, how communities differ, which taxa or functions changeMicroResM2
Reads of one bacterial isolateAssemble, check and annotate a bacterial genomeBactFlowM3
RNA-seq FASTQ files or a gene count tableWhich genes and pathways change between conditionsRNA-realmM4
Reads of one fungal isolate (Nanopore, HiFi, Illumina)A complete, annotated fungal genome; species; mitochondrion; food-safety genesFungFlowM5
Human genome, exome or panel reads, BAM/CRAM or VCFVariants, their interpretation, families, tumour–normalHumaniacM6
Insect reads, or many individuals on one referenceA chromosome-level insect genome, or population structureInsectraM7
Reads or an assembly of a bacterial strain used in food or feedIs the strain safe? A dossier along EFSA's requirementsBactomaniacM8

Accounts, plans and guests

Without an account you can look at every tool, open the example and demo results and read the handbook. Uploading data, starting runs, downloading reports and asking our AI need a free account: press Sign in or Create a free account in the top bar. Pricing lists the plans; a plan sets how many CPUs and how much memory your runs may use at once and how much storage you have. Your current plan and usage are under Account → Plan & usage.

In Account you can also change your name, affiliation and picture (they appear on your reports), your password, and whether you receive an e-mail when a run ends. Your data → Download my data gives you everything the site stores about you; Delete account removes the account and all its files and cannot be undone.

Uploading data

Every tool has a Data page (in the left menu of the tool) with a Choose files button. Files go up in 8 MB pieces, so files of many gigabytes are fine; a progress bar shows each file and a Cancel button stops it. You can leave the page open while it uploads; closing the tab stops the upload.

  • Reads: FASTQ, gzipped or not. Choose all files of one sequencing run at once (MinKNOW writes many small files; the tools join them). Illumina pairs must be named _R1/_R2 (or _1/_2) so the pairs are found.
  • Assemblies and references: FASTA (.fa, .fasta, .fna), with GFF3 or  files where a tool asks for them.
  • Tables (MicroRes, RNA-realm): TSV, CSV, TXT or XLSX.

Administrators see Use files already on the server: paste full paths, one per line (a folder or a pattern such as /data/run7/*.fastq.gz works too). The files are linked, not copied, and removing them from Data never deletes the original.

Runs, the status bar and e-mails

Heavy work runs on the server's queue (), not in your browser. When you press Start, every step of the run becomes its own job; you can close the page, and the run goes on. The status bar under the top bar shows what is running for you on any page, with its progress; click a run there to open its live page. When a run ends you get an e-mail (switch it off in Account).

Your plan's CPUs and memory are shared by your running steps: when they are all in use, further steps wait in the queue until one finishes. Steps that run out of memory are retried with more, up to your plan's limit.

What every pipeline tool shares

FungFlow, Insectra, Humaniac and Bactomaniac are built the same way, and RNA-realm and MicroRes follow the same ideas:

  • Left menu: Home, Data, the numbered modules (or steps), Runs and Results.
  • A module page: the inputs and settings on the left; on the right Steps of this setup shows which steps will run before you start; then Start. While the module runs, the same page shows its live station: one node per step with its state and time, an ⓘ bubble with the estimated time and resources, the  jobs and a coloured live log in which errors are shown as cards with their cause.
  • Runs: every run as a card with Live, Results so far / Show results, Stop, Resume (continues a stopped or failed run and reuses every step that finished), Run this step again, Delete and Clean up (removes temporary work files; results are kept).
  • Results: pick a run at the top (tick several to see them together and compare), then a tab per part of the analysis. Every card has a title; figures are numbered Fig. 1, Fig. 2 … and tables Table 1, Table 2 … across the whole report, the same numbers as in the PDF report, so you can point at one in an e-mail or ask our AI about it. The ⓘ How to read this button on a card explains it.
  • Download ▾: Everything (zip) and each result file on its own. Report ▾: open the report in a new tab ready to print, or save it as PDF or a single HTML file. When several runs are open, the Report menu also offers one compiled report of all of them.

Working with figures and tables

Figures are interactive: hover for values, drag to zoom, double-click to reset, click a legend entry to hide a series, and use the camera icon in the figure's corner to save it as an image (SVG, which stays sharp at any size). Tables can be searched with the box above them (every column is searched), paged with ‹ and ›, and downloaded as CSV with the CSV button; numbers are right-aligned. When several runs are compared, the rows where the runs differ are highlighted. Very large result tables also come as files in Download ▾.

My data

My data (top bar) lists, per tool, everything you uploaded and every result the tools wrote, with the storage you use. Download a single file, or a whole folder as a ZIP, or delete what you no longer need. MicroRes keeps your loaded datasets and saved analysis there too.

Where to see the validation

The Validation tab in the top menu (and the link at the foot of every page) shows how FungFlow and Bactomaniac perform on public genomes with a known biology: strains made, strains correct, each acceptance criterion with its measured value, and its status (met, missed or not run yet). Three buttons follow: Open the full report (a printable page with every strain and check), Download the evidence pack (accessions, expected results, measured results and software versions, as files) and Validate on your own strains (opens Contact with the request filled in). The address is /validation. Each tool's own manual has a section "Validation tests for the pipeline".

The version badge next to the logo (for example v1.1) opens the release notes and the Apps list: each app's version, its stage and how many tools it tracks. The full list of tools and reference databases with their version history is shown to the Researcher, Lab and Industry plans; every report, on any plan, ends with the tools, versions and databases it used.

Getting help: Ask Virgil

The ✦ Ask Virgil button is on every page. It answers questions about using the site, about what is on your screen and your own runs, and about the bioinformatics behind them, from this handbook first and with references.

  • It sees your screen: the tool, the run and tab you have open, and every numbered figure and table with its data. Ask "How do I read Fig. 3?" or "Is Table 2 good?".
  • Select text anywhere (a value, a gene name, a warning) and press Ask Virgil about this; or copy text and paste it into the question box. The quote and where it came from go with your question.
  • One conversation thread per tool: FungFlow questions stay in the FungFlow chat, handbook questions in the Handbook chat. The clock button lists earlier conversations; you can reopen or delete them. + starts a new one.
  • The battery shows how many questions you have left today; it refills at midnight.
  • AI credits: answers from the assistant and from Virgil are paid in credits. Every plan includes a monthly allowance (Free 10, Learning Lab and Researcher 300, Lab 1,000 per person); a typed answer costs 1 credit and a spoken Virgil answer 2, because speech is paid on top. Your Account page shows what is left and has Add 100 AI credits · 49 kr; bought credits do not expire and are used after the month's allowance. While you rent a tool, the assistant and Virgil are included. An answer that fails does not use credits.
  • Move it: drag the button with the mouse, or touch it and drag it with your finger on a phone (it wiggles to show it is ready). It stays where you put it.

It reads only your own runs and cannot start, stop or delete anything. Answers can be wrong: check the numbers in your report.

Rent a tool

Any tool can be rented by the hour: open Pricing → Rent a tool, or Dashboard → Rent a tool (the left menu). Tick one or several tools and choose the hours for each, from 1 hour to 7 days, with the quick buttons (1 h, 3 h, 8 h, 1 day, 3 days, 7 days) or by typing the number. The price per hour of the ticked tools is added up and the total is shown; you pay it in advance by card. The price is fixed per tool per hour, whether your runs use a little or all of the machine.

  • The clock of each tool starts the first time you open that tool, not when you pay. It is shown at the top right inside the tool (Rental time left) and on the Dashboard under My rentals.
  • What you get while the rental runs: the tool in full with your own data, the highest priority on our compute cluster (rentals have their own queue, ahead of everyone else), as many CPUs and as much memory as the machine can give each step, up to 16 CPUs and 32 GB, with resources added as your runs need them so the results arrive on time; clean reports to download; and the whole handbook, the Learning Lab and Virgil.
  • One hour before the end you get a bell note and an e-mail. Press Extend in the tool or on the Dashboard and choose the hours: they are charged to the card you paid with at once, and nothing stops.
  • At the end the tool closes immediately. If a run is still going, it gets 30 extra minutes to finish (you are told by note and e-mail); then it is stopped. Your results stay in your Dashboard, and a closing e-mail sums up what you paid; nothing more is due.
  • A rental whose clock has not started can be cancelled within 14 days for a full refund; started hours are not refunded (see the Terms).

Virgil, your talking guide

Virgil is the live talking guide of Bioinformaniac. He floats at the side of every page, the landing page, the tools, the handbook and the Learning Lab, and uses the same knowledge as Ask Virgil: this handbook first, your screen and your own runs, and peer-reviewed sources. On the landing page, Talk to Virgil calls him up and he starts listening.

  • Talk or type: click Virgil and speak (allow the microphone once), or type in the small box under him. Start talking while he speaks and he stops, listens, and carries on from what he had said.
  • Short answers, then he checks in: he gives the core of the answer, then asks whether that is enough or you want more. In the handbook he answers exactly what you asked and ends with a short check such as "Did I answer your question?". Say "yes, more" to go deeper.
  • The round icons around his head, left to right: his voice on or off (captions stay), the microphone on or off, close (the Ask Virgil button comes back; the ghost button in its header calls Virgil back), and the language: a globe marked EN or DA. A tap switches Virgil between English and Danish: in Danish he speaks with a Danish voice and answers in Danish. The page keeps its own language. The EN | DA switch at the top changes the site and sets Virgil to the same language. If you speak or write to Virgil in the other language, or ask him to switch, he answers in that language and his globe changes with him; the page stays as it is. He speaks only English and Danish; in any other language he stays in the current one.
  • Move him: drag him anywhere; he stays where you put him.
  • Limits: how long his answers are and how much he can speak each day depend on your plan. When a daily limit is reached he says so, points you to the plans and rests until midnight; the typed chat still works.
  • Quizzes: Virgil does not test you; the Learning Lab game and its robot guide BinFo-1X do that.
  • Short answers: Virgil answers frugally, with the core in a sentence or two, and then invites you to ask for more. On a free account his answers are very short; a plan gives longer ones. Ask a follow-up whenever you want the details.
  • No filler words, and "stop" works: Virgil answers at once. Only rarely, before a real question, does he say "Let me think." Say "stop", "wait" or "be quiet" (or "stop", "vent", "ti stille" in Danish) and he falls silent at once; that costs no AI credit.
  • What the Learning Lab opens on each plan: guests play General bioinformatics; a free account also gets the first level of "Using Bioinformaniac" (Getting started). Every other topic, Foundations and Human genomics included, needs the Learning Lab subscription (49 kr a month) or a paid plan; a locked topic or level opens the plans when clicked.
Part VIII · User manual

MicroRes manual: microbiome analysis

MicroRes analyses microbiome tables in the browser: you load counts or profiles, clean and normalise them, then explore diversity, test differences and build a report. Nothing is queued: each step computes when you press its button, and every result adds a methods paragraph to the report. The science is in chapters 4–13.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part VIII · User manual

Humaniac manual: human genomics

Humaniac takes a human genome, exome or panel from reads to an interpreted short list on GRCh38: alignment, small and structural variants, interpretation with ACMG/AMP evidence and the patient's phenotype, families and trios, and tumour–normal pairs. It is decision support for trained people, not a diagnosis.

Layout

The left menu: Home, Data, the modules H1 Alignment, H2 Small variants, H3 Structural variants, H4 Interpretation, H5 Family & trio, H6 Tumour–normal, then Runs and Results. Home offers Align a genome, Interpret a VCF and See the demo results.

Loading data

  • Reads: Illumina pairs (_R1/_R2) or Nanopore / PacBio HiFi FASTQ, for H1. A 30× genome is about 100 GB of FASTQ and takes most of a day; an exome an hour or two.
  • Alignments: BAM or CRAM on GRCh38 with their index, to start at H2, H3 or H6.
  • VCF on GRCh38 (for example from a sequencing provider), to start at H4.
  • Target BED for an exome or panel, so coverage is measured on the targets.

H1 · Alignment and quality

Choose the reads and say what the sample is (genome, exome or panel; pick the BED for the last two). Then also run continues straight into variant calling, structural variants and interpretation in the same run. Results:

  • Mean depth: 30× for clinical genomes; exomes aim for 100× on targets with ≥ 95 % of targets at 20×.
  • Duplicates: below 10 % for PCR-free genomes, 10–25 % for exomes.
  • Sex from X and Y depth (XX ≈ 1.0 / 0, XY ≈ 0.5 / 0.5); other ratios suggest aneuploidy or a sample swap.
  • Contamination ( FREEMIX): above 2–3 % makes variant calls unreliable.

H2–H3 · Small and structural variants

Small variants: choose an alignment and the caller (, most accurate;  ; for Nanopore). Each sample also gets a gVCF for later family analysis; for HG002 tick the benchmark against the GIAB truth set. Expect 4.5–5 million variants in a 30× genome (40–60 thousand in an exome), Ts/Tv ≈ 2.0–2.1 (genome) or 2.8–3.3 (exome), het/hom ≈ 1.5–2.0.

Structural variants: short reads go to ,  and ; long reads to , ,  and . Nearly all of the thousands of SVs in a genome are benign; look at those removing exons of genes that fit the phenotype. Repeat expansions are shown against each locus's normal, intermediate and pathogenic ranges.

H4 · Interpretation

Choose a VCF, add the patient's phenotype as HPO terms (leave empty for screening), the expected inheritance and the frequency cut-off; secondary findings (ACMG SF genes) can be switched off. Every variant is annotated with , ,  and  and given the ACMG/AMP criteria Humaniac can compute, plus pharmacogenomics (), the maternal haplogroup, ancestry and runs of homozygosity. The class is a starting point for a curator: review and confirm every reported variant.

H5–H6 · Families and tumours

Family & trio: run H2 () for every member first, then choose those runs and give each a role, sex and affected status.  joint-genotypes,  checks relationships (≈ 0.5 for parent–child), and  finds de novo, recessive, compound heterozygous and X-linked variants. Tumour–normal: choose the tumour and normal alignments;  calls somatic variants with the  filters; TMB and the mutation spectrum are reported.

Results, IGV and reports

Results shows a tab per module with numbered figures and tables; the variant tables can be searched and downloaded as CSV. The Genome viewer tab opens IGV on the run's alignment and variants, to check a call by eye. Download ▾ holds the BAM/CRAM, VCFs and tables; Report ▾ opens or saves the report (HTML or PDF) with methods, references and the run log.

Troubleshooting

Part IX · Statistics in bioinformatics

Thinking statistically: variation, estimates and uncertainty

Every number a Bioinformaniac pipeline gives you, a Shannon index, a fold change, an ANI, a QV, is an estimate made from a sample. This part of the handbook teaches the statistics behind those numbers, so that you can read every result of MicroRes and the other tools the way a statistician would: what was estimated, how uncertain it is, and what it can and cannot support.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Hypothesis tests, P values and effect sizes

A test answers one narrow question: could chance alone, as defined by a null hypothesis, have produced a difference at least this large? This chapter explains what a P value is and is not, which test fits which data, and why every P value in a report should travel with an effect size and its uncertainty.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Thousands of tests at once: multiple testing and the false discovery rate

A differential abundance analysis tests every taxon; an RNA-seq study tests every gene. With thousands of tests, a 5 % false-positive rate per test means hundreds of false discoveries. This chapter explains the adjustments every omics result relies on, and how to read a q value and a volcano plot.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Counts, overdispersion and compositional data

Sequencing gives counts, and the counts of one sample add up to a total set by the machine, not by the biology. These two facts, overdispersed counts and compositions, explain why microbiome and RNA-seq data need their own statistics, and why MicroRes asks you to normalise and transform before anything else.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

The statistics of diversity: alpha, beta and PERMANOVA

Diversity indices are estimates, distances are modelling choices, and an ordination is a projection. This chapter treats the ecological results of MicroRes as statistics: what each number estimates, how depth biases it, and how PERMANOVA and PERMDISP test differences between communities.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Models, confounding and the differential abundance methods

A two-group test answers a two-group question. Real studies have ages, batches, antibiotics, repeated visits and several variables of interest at once. Regression models handle them, and every differential abundance and differential expression method in our tools is a regression model underneath.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Correlation, networks and prediction

Which taxa go together? Which features predict a disease? Correlation and prediction are where compositional data and small samples cause the most convincing false results. This chapter explains the methods behind MicroRes's Associations, Co-occurrence networks and Biomarkers & prediction steps, and how to tell a robust result from an artefact.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Statistics inside genome results: quality, coverage, identity and trees

Genome tools look deterministic, but nearly every number they print is a probability or an estimate: a Phred score, a QV, a coverage depth, an E-value, an ANI, a  percentage, a genotype quality, a bootstrap support. Knowing the statistics behind them is what lets you read BactFlow, Bactomaniac, FungFlow, RNA-realm, Humaniac and Insectra results with confidence.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Part IX · Statistics in bioinformatics

Reading MicroRes and every Bioinformaniac report like a statistician

The previous chapters gave the tools; this one applies them. Step by step, it lists what each MicroRes result estimates, which statistics produced it, what to check before believing it, and how to write it up. The same checklist closes for the genome and RNA tools.

The rest of this chapter is in the full handbook

The Free plan includes chapter B1, Foundations and Core skills A1–A3. The Learning Lab subscription (49 kr a month) opens every chapter, every Learning Lab topic and Virgil, your talking guide; Researcher, Lab and Course plans add the tools themselves.

See the Learning Lab plan

Launching MicroRes
Launching BactFlow
Launching RNA-realm
Launching FungFlow
Launching Humaniac
Launching Insectra
Launching Bactomaniac
// Your account

My data

Everything you uploaded and every result the tools wrote. Review it, download it, or delete it.

Storage…

MicroRes

Datasets you loaded and your saved analysis

Reports

Every report you open is kept here with its own report ID.

Files and results

Reads, genomes and results of BactFlow, FungFlow, RNA-realm, Humaniac, Insectra and Bactomaniac. Download a file, or a whole folder as a .zip.
// Your account

Account

Your name and picture show at the top of every page.

// Account recovery

New password

Checking your link…

// Contact

Get in touch

Questions, bug reports, collaborations or a dataset that does not load: send a message and you get an answer by e-mail.

Channel

// Error 404

Signal lost

That page does not exist.