baSeq
baSeq docs › Bacteria

Bacteria

Bulk RNA-seq for bacteria works with locus tags and with any genome and strain, and puts every result in bacterial context: gene names and products, functional categories and pathways, operons, a map of the genome, the matching genes in the reference strain, and resistance and virulence genes.

What is different for bacteria

A bacterial analysis is a Bulk RNA Sequencing analysis with a bacterial organism. Choosing one changes a few things, and none of them appear for human, mouse or other eukaryotic data:

  • Microbial setup. The metadata editor gains a second page where you set the genome your reads were counted against. Most of what follows comes from that genome.
  • Steps for bacteria. Batch Correction (ComBat-seq), Functional Categories (COG) and Genome Map appear. Pathway Map Analysis is hidden, because Reactome has no bacterial pathways.
  • Quality control. Initial Plot adds each sample's share of counts by gene type (protein-coding, rRNA, tRNA, other RNA, pseudogene) and the share on plasmids, and saves a TPM table.
  • Context in every table. The differential expression table gives each gene's name, product, COG category and pathway, operon, matching gene in the reference strain, and any AMRFinderPlus finding.

Count tables

Upload the count table as for any bulk analysis (see Uploading your data). featureCounts output (with or without its header lines), HTSeq-count and STAR ReadsPerGene files, and plain tables with genes as rows are read as they are, gzipped or not. Genes can be keyed by old-style locus tags (SAOUHSC_00001), RefSeq tags (HUW68_RS00005) or the tags of the classic reference strains (b0001, Rv0001, PA0001). When the table is keyed by locus tags, a bacterial organism is selected for you: the species when the data names it, otherwise Other bacterium until the genome is set.

Set up the genome

After you review your samples in the metadata editor, click Next: Microbial setup.

  1. Detect

    Click Detect. baSeq looks for the NCBI assembly your reads were counted against: the genome named in a featureCounts header, then the assembly's name, the species' NCBI reference genome, and a strain named by your locus-tag prefix. It shows the accession, organism, strain, assembly name and how many of your genes the genome has.

  2. Use this genome

    Check the match and click Use this genome. Nothing is applied before you confirm, and a match below 80% is marked as a warning.

  3. Save Metadata

    For a bacterial analysis the Save Metadata button is on the Microbial setup page, so you always pass through it.

The Microbial setup page after Detect: GCF_015475575.1, Staphylococcus aureus LAC, 2803 of 2814 genes match
Detect found the assembly the counts were made against: 2,803 of 2,814 genes match.

If Detect finds nothing, or you counted against your own assembly, upload its annotation under or upload manually: a GFF3 or GenBank file (gzipped or not), or a table that maps locus tags to gene names. Custom gene sets takes an optional .gmt file for GSEA.

From the genome, every gene gets its name and product (names the genome lacks are filled in from UniProt and from identical proteins), its position on the chromosome or a plasmid, and its length. Functional Categories (COG) needs the genome's proteins: they come with a detected genome, a GenBank file, or an annotation that names its strain. Once a genome is set, its proteins are scanned for COG in the background. The first scan of a genome takes about a minute and is kept for every later analysis.

Set up the genome before enrichment

Without a genome or an annotation, GO Term Enrichment and GSEA can come back empty, because the data is keyed by locus tags that gene-set references do not use, and Functional Categories (COG) and Genome Map cannot run. Filtering, model fitting, differential expression, volcano and MA plots, heatmaps and boxplots work without it.

Gene names everywhere

With a genome set, results name genes the way you know them, and gene names in tables open the gene card. Where a step asks for genes (Heatmap, Boxplots), you can write:

  • gene names or locus tags: agrA, HUW68_RS10770;
  • a tag from the species' reference strain: SAOUHSC_02261 finds agrB in USA300 data;
  • a whole operon: operon:agrA;
  • a whole COG pathway: pathway:Purine biosynthesis.

Functional categories and pathways (COG)

Functional Categories (COG) sorts the differentially expressed genes into the 26 COG functional categories and the 79 COG pathways (for example purine biosynthesis or the TCA cycle) and tests which are over-represented (Fisher's exact test, FDR-corrected). Categories are colored by significance and marked with an asterisk when over-represented; pathways are split into the genes higher in each group. The step uses the same comparison as differential expression, and the pathway table is under Data Summary.

Functional Categories (COG) for an agr deletion: categories on the left, pathways on the right
COG categories and pathways for the agr deletion against wild type: purine biosynthesis is higher in the deletion.

When more than a quarter of the tested genes changed, as after deleting a global regulator, GO Term Enrichment and COG also ask for a 2-fold change before a gene counts as changed, so the test still picks out the real signal. The summary row Genes counted as changed says which rule was used.

Genome Map

Genome Map draws the chromosome and each plasmid as a circle, with every changed gene as a bar: outwards (red) when it is higher in the first group of the comparison, inwards (blue) when it is higher in the second. The most changed genes are named. Data Summary lists the changed regions: runs of at least four neighbouring genes that changed the same way, such as operons, prophages or genomic islands.

Genome Map of the S. aureus LAC chromosome and plasmid with the agr and psm genes named
The agr operon and the psmA genes stand out on the chromosome; the small plasmid has no changed genes.

Operons

baSeq predicts operons from the genome: neighbouring genes on the same strand at most 50 bp apart, with operons already known in the Operon DataBase (ODB) taking precedence. The differential expression table has an operon column, gene lists accept operon:, and the gene card draws the operon with each gene's fold change.

Genes across strains

Each gene is matched to the species' reference strain (for S. aureus NCTC 8325, for E. coli K-12 MG1655) by reciprocal best protein match, so results from a clinical isolate can be read against the gene numbers used in the literature. The match is in the differential expression table and on the gene card, and gene lists accept it.

Resistance and virulence genes

NCBI's AMRFinderPlus scans the genome's proteins for resistance, virulence and stress genes (for example mecA or the PVL genes). The differential expression table marks them, its summary names those that changed, and the gene card shows the finding for each gene.

Enrichment, networks and time courses

  • GO Term Enrichment uses the GO terms in the genome file and in the strain's UniProt entries, matched by locus tag.
  • Gene Set Enrichment Analysis uses GO-based gene sets made for your organism, unless you upload your own on the Microbial setup page.
  • STRING Analysis looks genes up by locus tag, in the strain's own network when STRING has it.
  • Time Course works for bacteria as for any organism; see the bulk RNA-seq step reference.

KEGG pathway maps are not used for bacteria.

Two more kinds of bacterial experiment

Where the information comes from

Genomes and annotations from NCBI, COG categories and pathways from NCBI's COG database, operons from the genome and the Operon DataBase, resistance and virulence genes from NCBI's AMRFinderPlus, gene function and GO terms from UniProt, and interaction partners from STRING.

Every kind of analysis baSeq runs: baseq.bio/analyses

baSeq ApS · CVR 44568691 · Vermlandsgade 51, 2300 Copenhagen, Denmark · [email protected]

For research use only. Not for diagnostic or clinical decisions.