Skip to main content

Single-cell

This page covers single-cell RNA-seq from count matrices, such as 10x output or .h5ad files: quality control, clustering, cell type annotation, trajectories and comparisons between conditions.

Prompts to try

  1. Find low-quality cells in pbmc3k, about 2,700 blood immune cells (PBMCs) from one healthy donor, sequenced by 10x Genomics. Send:

    Load the pbmc3k dataset from TENxPBMCData.

    Then:

    Compute per-cell QC metrics with scater, using the genes whose symbol starts with "MT-" as the mitochondrial set.
  2. Annotate cell types in pbmc4k, about 4,000 blood cells from a healthy donor, sequenced by 10x Genomics. Send:

    Load the pbmc4k dataset from TENxPBMCData. Use the gene symbols as row names.

    Then:

    Run QC with scrapper, taking the mitochondrial genes from the "MT-" symbols, then normalise, pick variable genes, run a PCA, cluster and make a UMAP.

    Then:

    Label each cell with SingleR against the Monaco reference, once with the main labels and once with the fine labels.
  3. Compare treated and untreated cells, patient by patient. Kang18_8vs8 has blood cells from 8 lupus patients, split and either left untreated or stimulated with interferon-beta for 6 hours, then sequenced on 10x. Send:

    Load Kang18_8vs8 from muscData.

    Then:

    Why should the patient, not the cell, be the unit of replication here?
  4. Select the cells for a trajectory towards dopaminergic neurons. The mouse embryo part of LaMannoBrainData covers developing mouse ventral midbrain from embryonic day 11.5 to 18.5, studied for its dopaminergic neurons. Send:

    Load the mouse embryo part of LaMannoBrainData from scRNAseq.

    Then:

    Which column has the cell types? Keep the radial glia, progenitors, neuroblasts and dopaminergic neurons.

What a note can do

Notes hold the data in a SingleCellExperiment, plot it with scater, and follow the OSCA books and the scrapper book.

  • Get data. Notes load public data from scRNAseq, TENxPBMCData, muscData, SingleCellMultiModal, TabulaMurisSenisData or HCAData, and read raw 10x output and scanpy .h5ad files.
  • Quality control. scater and scuttle flag damaged cells, DropletUtils separates cells from empty droplets, and scDblFinder finds doublets.
  • Normalise and cluster. scran or scrapper normalise the counts, bluster clusters the cells, and a UMAP shows the result.
  • Merge samples. fastMNN (batchelor) or Harmony correct for batch or donor effects.
  • Name cell types. SingleR labels each cell against a celldex reference.
  • Trajectories. slingshot and TSCAN order cells along a differentiation path and assign each a pseudotime.
  • Compare conditions. Counts are summed per patient (pseudo-bulk) and tested with edgeR.
  • More than RNA. Notes also handle surface protein counts (CITE-seq) and sample hashtags.

Steps on raw reads run in Reports on Roihu; CSC’s list of biology tools shows what is installed.

Example notes

The plot of mitochondrial percentage against library size in the 'What makes a cell low quality? 3k blood cells' note.