Skip to main content

Genomes and variants

This page is about DNA itself: sequences, small differences between them, and family trees of organisms. In a note you can work with sequences and trees, and follow single strains of bacteria with marker genes.

Prompts to try

Copy a prompt into a new note and send it. When the result is back, send the follow-up.

  1. Find the germ behind an outbreak. Send:

    Load LomanNJ_2013 from curatedMetagenomicData. It is stool from patients in the 2011 German Shiga-toxigenic E. coli outbreak.

    Then:

    How abundant is Escherichia coli in each sample, and does it track the recorded count and ELISA result?
  2. Follow donor strains after a faecal transplant:

    Load LiSS_2016 from curatedMetagenomicData as species and as marker abundances. Men with metabolic syndrome received a faecal transplant and were followed to day 84.
  3. Do babies share exact sequences with their own mothers?

    Load SprockettTHData from microbiomeDataSets. The Dyad column links Tsimane mothers and infants. How many dyads have faeces from both mother and infant?
  4. Start from DADA2 output:

    Download Zenodo record 15490674. It has a DADA2 sequence table and taxonomy as RDS files, from stream water at 23 NEON sites.

What a note can do

  • Sequences. Biostrings reads and handles DNA sequences. DADA2 works with exact sequence variants (ASVs), the unique sequences found in amplicon data.
  • Trees. MAFFT lines up sequences (through ips), and phangorn or IQ-TREE build a family tree from them. ape draws and handles trees.
  • Trees in microbiome data. Use a tree for phylogenetic diversity and UniFrac, two measures that count how related the microbes are.
  • Strains. curatedMetagenomicData has marker gene abundances and presence for each sample, so you can follow a strain, not only a species.

Work that starts from raw reads, such as assembling genomes or calling variants, runs in Reports on Roihu. There, an agent works in your own project with the cores, memory and time you choose, and can use CSC tools such as bwa, SPAdes, Prokka, bcftools, GATK and PLINK.

Example notes