Seurat and DESeq2 Pseudobulk Analysis: From Single-Cell Counts to a Journal Paper

Six connected blocks: define comparison, audit counts and metadata, aggregate, test, build figures, assemble submission.
Graphical pipeline. Follow the numbered blocks from study design through submission.

1. Start with a question you can test

Use pseudobulk when your question is whether expression differs between conditions within a defined cell type and you have suitable biological replicates. In Seurat, sum raw gene counts across cells of the same type from the same sample. The result is a gene-by-profile matrix you can analyse with DESeq2. Keep the cell-level object for annotation and visualisation, and keep the sample-level matrix for inference. These two representations answer different questions. Start by writing the comparison in a sentence that names the condition, the cell type, and the biological unit represented by each profile. Seurat differential expression vignette.

One cell type → Two conditions → Sample-level test
Figure 1. Start with a question you can test. Original teaching illustration.

2. Count samples before counting cells

Suppose a classroom study has three independently sampled donors per condition. For one cell type, your comparison has three sample profiles in each group, even if the study profiled thousands of cells. Cells from one donor share biological and technical influences. Treating them as independent donors would overstate the amount of independent information. If the same donors were measured in both conditions, retain the paired design and donor identifiers. With only one independent sample per condition, show the observed difference descriptively and explain why the dataset cannot support the usual replicate-level inference. Squair et al. on biological replication.

3 donors per group → Many cells per donor → 3 independent profiles per group
Figure 2. Count samples before counting cells. Original teaching illustration.

3. Audit the inputs

Keep a raw gene-by-cell count matrix and a cell metadata table containing a unique cell ID, a sample ID, a condition, and a cell-type label. Record donor ID, batch, and relevant covariates where applicable. Check that every cell ID matches the matrix columns and that each sample-level identifier maps consistently to the intended condition. Document annotation and filtering decisions before looking at gene-level significance. Tabulate how many cells remain in each sample and cell type. If a sample has no cells assigned to a type, record the missing profile and report how that changes the comparison. Seurat differential expression vignette.

Raw counts → Cell and sample metadata → Cell-count audit
Figure 3. Audit the inputs. Original teaching illustration.

4. Build one profile per sample and cell type

Seurat’s AggregateExpression sums counts for the groups you specify. Group by sample ID and cell type, and use condition metadata to assemble the sample table. For a fictional Gene A, three cells in sample S1 contribute 2, 0, and 5 counts, giving S1 a pseudobulk count of 7. Two cells in sample S2 contribute 1 and 3, giving S2 a count of 4. These are two matrix entries. They do not establish a condition effect. After aggregation, match the sample metadata to the matrix columns and check a few sums by hand before proceeding. Seurat AggregateExpression reference.

S1 cells: 2 + 0 + 5 → S1 profile: 7 → S2 profile: 4
Figure 4. Build one profile per sample and cell type. Original teaching illustration.

5. Choose a design that matches sampling

Analyse a single cell type at a time for this introductory workflow. With independent samples, an unadjusted design can use condition as its predictor. With paired profiles and both conditions observed within donors, a design including donor and condition can account for pairing when the design is estimable. Consider measured covariates in light of the study question and sample size, then check the model matrix for confounding. If all controls were processed in one batch and all treated samples in another, a statistical formula cannot separate their effects from those data. Record the exact design, reference level, and contrast in your analysis notes. Bioconductor DESeq2 package and vignette.

Independent: condition → Paired: donor + condition → Confounded: flag limits
Figure 5. Choose a design that matches sampling. Original teaching illustration.

6. Check the profiles before testing

Give yourself a chance to catch an input error before interpreting a list of genes. Compare the number of retained cells and the total pseudobulk counts for each sample. Explore sample similarity using an appropriate transformed representation and colour points by condition or batch. Keep raw integer counts as the input for DESeq2. If one sample looks unusual, review provenance and QC records before deciding whether an exclusion is justified. Record the rule and compare conclusions with and without a defensibly flagged sample where appropriate. A plot that looks cleaner after removing a point is weak evidence for exclusion. Bioconductor DESeq2 package and vignette.

Cells per sample → Counts and sample QC → Document exclusions
Figure 6. Check the profiles before testing. Original teaching illustration.

7. Read effect sizes and uncertainty together

Inspect the direction and size of the estimated effect, the adjusted p-value, and the pattern across individual samples. A hypothetical log2 fold change of +1 corresponds to roughly twice the model-estimated expression in the numerator condition under the stated contrast. An adjusted p-value of 0.03 addresses a different question about the evidence after multiple testing. Neither value tells you whether one unusual sample dominates the pattern. For highlighted genes, place individual sample values beside the summary statistic and identify the scale used. Preserve the full results table so readers can inspect estimates beyond your selected examples. Bioconductor DESeq2 package and vignette.

log2 fold change → Adjusted p-value → Individual sample values
Figure 7. Read effect sizes and uncertainty together. Original teaching illustration.

8. Plan the results figures around the claims

A clear main figure can start with a cohort and aggregation diagram, then show sample-level QC or an ordination that helps readers assess the design. Use a separate effect plot or MA plot to summarise differential expression, with sample-level plots for selected genes beside it. Put additional strata, diagnostics, and sensitivity analyses in supplementary figures if they are important to interpreting the findings. For each panel, write one sentence identifying the claim it supports. Give the units, contrast, exact sample count, and statistical method where relevant. Use colour plus labels, shapes, or panel marks so the figure remains understandable without colour. Nature Communications figure and submission guidance.

A: Design and QC → B: Effects and uncertainty → C: Sample-level support
Figure 8. Plan the results figures around the claims. Original teaching illustration.

9. Build a sample-level results panel

For a journal figure, show each biological sample as one point. In a paired study, a thin line can join the two profiles from the same donor. State exactly what the vertical axis measures, such as normalised counts for a named gene, and give the actual sample count in the legend. This example is synthetic and illustrates layout only. In your submission, export the values behind the panel and use the manuscript figure legend to identify the contrast and the corresponding statistical analysis. Keep the same condition colours across the workflow and the results panels. Nature Communications figure and submission guidance.

Three synthetic samples per group. Control counts: 6, 9 and 10. Treatment counts: 12, 15 and 16.
Figure 9. Build a sample-level results panel. Original teaching illustration.

10. Write Methods so a reviewer can recreate the analysis

Describe sample collection, biological replication, cell annotation, filtering, count aggregation, and the statistical model in the order someone would need to reproduce them. Specify organism and reference annotation, software and package versions, minimum-cell rules, the cell types tested, and the exact contrast. Explain how you handled missing profiles and the scope of multiple-testing correction. If the analysis was exploratory, state which decisions were made after viewing the data. Record ethics approval or the governance conditions of reused data where applicable. Keep code and manuscript terminology consistent, especially the meaning of sample, donor, and replicate. Nature Communications reporting and availability guidance.

Samples and reference → QC and aggregation → Model and contrast
Figure 10. Write Methods so a reviewer can recreate the analysis. Original teaching illustration.

11. Write Results with the evidence next to each claim

Start with the analysed cohort and the actual number of profiles per group. Report exclusions before the principal findings. Describe the estimated effect and its uncertainty or adjusted significance, and point to the panel showing individual samples. Keep a record of the denominator behind any reported count of significant genes. When the analysis found weak or mixed evidence, explain what the data support and where the study has limited power. In the Discussion, explain which conclusions depend on the selected cell annotations, the cohort, or the design. Reserve claims about mechanisms for findings backed by appropriate evidence. Nature Communications reporting and availability guidance.

Cohort and exclusions → Result and figure → Limits and interpretation
Figure 11. Write Results with the evidence next to each claim. Original teaching illustration.

12. Package the journal submission

Open the target journal’s instructions before finalising files. Prepare the manuscript, numbered figures with standalone legends, supplementary tables, and any required reporting checklist. Include a Data Availability statement with repository accessions or access conditions, and a Code Availability statement with a stable release when applicable. Archive the analysis environment and scripts that regenerate the tables and plots. Export figures at the journal’s specified dimensions and format. For the last check, open the submitted versions, match every in-text figure reference to its panel, and follow the repository links as a reader would. Confirm that the plotted values match the released source data. Nature Communications reporting and availability guidance.

Manuscript and figures → Source data and code → Submission checks
Figure 12. Package the journal submission. Original teaching illustration.

Post a Comment

0 Comments