baSeq
baSeq docs › Single-cell RNA-seq

Single-cell RNA-seq analysis

A guided single-cell pipeline. Run the steps in order; each unlocks once its prerequisites are done. You get a figure, a table, and an explanation at every step.

What the workflow covers

The single-cell workflow handles one or many samples, conditions, and batches in a single analysis. It takes you all the way from raw data to biological interpretation: quality control, normalization, clustering, AI-assisted cell-type annotation, differential expression, and a full set of downstream tools (pseudobulk DESeq2, manual annotation, sub-clustering, subsetting, GSEA, STRING, and pathway maps), with a choice of integration method (Harmony, Scanorama, or scVI).

Starting from 10x Genomics FASTQ files? They are counted first, in FASTQ upload, and the counts open as this analysis: see FASTQ upload.

The recommended order

Steps enforce their prerequisites, so the step bar unlocks them in roughly this order:

  1. Upload your data
  2. Initial Quality Control
  3. Remove Outliers
  4. Remove Doublets
  5. Remove Ambient RNA
  6. Normalize Data
  7. Identify Highly Variable Genes
  8. Perform PCA
  9. Perform Integration
  10. Explore UMAP embeddings
  11. Perform Clustering
  12. Automated Cell Annotation
  13. Then any downstream analysis: differential expression, gene exploration, heatmaps, violins, composition, trajectory, pseudobulk, GSEA, STRING, and pathway maps.
Resolutions are computed for you

Clustering produces several resolutions (0.50, 0.75, 1.00). Downstream steps let you pick which resolution to use, so you can see how your results change with cluster granularity.

How cell-type annotation works

Automated Cell Annotation is AI-assisted. baSeq finds the marker genes for each cluster with a statistical test, then a language model names the cell type of each cluster, as specific as the marker genes support. The results are drawn on UMAPs. You can always override them with Manual Cell Annotation.

Comparisons check their groups

Find markers and the condition comparisons (Pseudobulk DGE, GSEA, GSEA Dotplot, STRING Analysis and Pathway Map Analysis) check the two groups before they run. They stop and say why when the groups share a cluster, when both are the same condition, or when a group has no cells in the clusters and condition you chose. Choose other groups and run the step again.

Describing genes and gene sets

Several steps (Explore Genes, Heatmaps, Violins, GSEA, STRING, Pathway Map, Subset cells) ask what to look at. You can name genes directly (PDCD1, LAG3) or describe a theme ("genes related to exhaustion") and let the assistant interpret it. The chat panel in the bottom-right can suggest genes if you are unsure.

Step reference

Every step in the single-cell workflow:

StepStageWhat it doesYou getKey inputs
Initial PlotSetupLoads your single-cell data into a working object, keeps a copy of the raw counts, and shows how many cells each sample has and which genes dominate.Working dataset; a sample summary; a cells-per-sample chart and a top-20 expressed-genes plot.Cell Ranger output, .h5ad, loom, Seurat or SingleCellExperiment .rds, or count tables; organism; sample, condition, and batch metadata.
Initial Quality ControlQCComputes per-cell quality metrics (counts, genes, % mitochondrial / ribosomal / hemoglobin).Per-sample QC panels (past 4 samples, each metric across the samples); metrics added to your data.None (the organism sets the gene lists).
Remove OutliersQCFilters out low-quality cells and rarely-detected genes.A filtered dataset and post-filter QC plots.MAD threshold (5, against each sample's own median, so a deeper sample is not cut at a shallower one's counts), max % mitochondrial (>15% removed), min cells per gene (10). Adjustable via the text box.
Remove DoubletsQCDetects and removes likely doublets (two cells captured as one), using Scrublet.Doublet-score histograms before and after; doublets dropped.Scrublet defaults; tunable via the text box.
Remove Ambient RNAQCTakes out the background RNA every droplet picks up from cells that broke (ambient RNA), sample by sample, with SoupX's method: the background's share of each droplet's reads is estimated from genes that mark one group of cells, then subtracted in the background's proportions. The background's make-up comes from the empty droplets when an unfiltered matrix was uploaded (alone, or beside the filtered one), else from the cells' pooled reads. Or DecontX's method, which gives each cell its own share from the other cell groups and needs no empty droplets. The raw counts are kept.Each sample's background share and the genes now in fewer cells; corrected counts for the next steps.Method: SoupX (default) or DecontX. With SoupX, a share you type ("use 10%") is used for every sample. Skippable.
Normalize DataQCNormalizes library size and log-transforms so cells are comparable.A normalized dataset and before/after distribution plots.Target sum (10,000) then log transform.
Identify Highly Variable GenesQCSelects the most informative genes for downstream steps.A mean-vs-dispersion plot; data focused on variable genes.min mean 0.0125, max mean 3, min dispersion 0.5.
Perform PCAQCReduces dimensionality and scores cell-cycle phase. A cell counts as S or G2M only when its score is above what random genes of the same expression reach; the usual call, any score above 0, puts a third of resting cells in S or G2M.A PCA embedding, 6-panel diagnostic plots, and how many cells each phase has beside the usual call.Number of components (50), cell-cycle gene lists, seed.
Perform IntegrationQCRemoves batch effects so cells from different batches mix correctly. Nothing is integrated with one batch, or when each condition sits in a single batch, where correcting for batch would also remove the differences between the conditions. The step says so.An integrated embedding; before/after UMAPs colored by batch.Choose an integration method: Harmony, Scanorama, or scVI.
Explore UMAP embeddingsAnalysisShows your data on a 2D UMAP colored by metadata and quality metrics.UMAP panels.Coloring variables; seed.
Perform ClusteringAnalysisGroups cells into clusters with Leiden clustering at several resolutions.A UMAP per resolution; cluster labels added to your data.Resolutions 0.50, 0.75, 1.00; seed.
Automated Cell AnnotationAnalysisAutomatically labels each cluster with a cell type using marker genes and AI.Predicted cell type per cluster; UMAPs by cluster and by cell type.Clustering resolution.
Manual Cell AnnotationAnalysisLets you rename or assign cluster labels by hand.Your labels, applied across downstream steps.Resolution; a name per cluster.
Cell CompositionAnalysisShows the proportion of each cell type across samples or conditions.Stacked-bar and proportion plots.Cell-type resolution.
Find markersAnalysisFinds genes that differ between two groups of clusters, within or across conditions.A ranked results table you can download as CSV.Resolution; two cluster groups; a condition (including a pooled option).
Pseudobulk DGEAnalysisCompares two conditions with DESeq2 on counts summed per sample (pseudobulk), so samples, not cells, are the replicates.DESeq2 pseudobulk results.Resolution; two conditions; clusters to include. Needs enough samples per group.
Explore GenesAnalysisPlots the expression of genes you choose on the UMAP.A UMAP per gene.Required: gene names or a theme. Conditions to plot: with none ticked, every cell.
HeatmapsAnalysisShows expression patterns of chosen genes across clusters.Matrix plots (scaled and unscaled).Required: gene names or a theme; resolution.
Explore ViolinsAnalysisCompares expression of chosen genes across clusters.A violin plot per gene.Required: gene names or a theme; resolution.
Subset cellsAnalysisRestricts to chosen clusters and conditions, then explores genes within that subset.Plots limited to the subset.Resolution; clusters; conditions; required gene names or a theme.
Sub-clusterAnalysisRe-clusters selected clusters to reveal finer subpopulations.New sub-clustering, available in later steps.Parent resolution; clusters to sub-cluster.
Trajectory AnalysisAnalysisInfers differentiation trajectories and pseudotime among selected clusters.A UMAP ordered by pseudotime.Resolution; trajectory clusters; a starting cluster; conditions.
GSEAAnalysisTests whether a gene set is enriched among your ranked differential genes.An enrichment plot with ES, NES, and FDR.Resolution; condition; clusters; required gene-set name or theme.
GSEA DotplotAnalysisSummarizes enrichment across many gene sets as a dotplot.A dotplot of the top terms.Resolution; condition; clusters; optional specific terms.
STRING AnalysisAnalysisBuilds a protein-protein interaction network from a gene list and runs enrichment.A STRING network plus GO / Reactome enrichment.Resolution; condition; clusters; required gene list.
Pathway Map AnalysisAnalysisOverlays differential expression onto a biological pathway map.A pathway map with up-regulated genes in red and down-regulated in blue.Resolution; condition; clusters; significance cutoff; required pathway or genes.
Custom plotAnalysisMakes any plot you describe in plain English from your data. It only reads the data and never changes it.The plot you described.Required: a description of the plot (what goes on each axis, how to group or color it).
About scVI integration

scVI is the most accurate integration option for large or difficult datasets, but it is slower and benefits from a GPU. Harmony is a fast, solid default.

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.