Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Missing Samples and Incomplete Cell-Type Profiles

Differential Abundance and Compositional Effects · Tutorial 556 of 700

Missing Samples and Incomplete Cell-Type Profiles

Distinguish absent measurements from observed zeros, and assess what donor exclusions mean for the population represented by a differential-abundance analysis.

Advanced 12 min read

What You'll Learn

  • Tell a missing donor-condition profile apart from a measured zero cell count.
  • Identify when a cell-type category was not observed, was not measured, or was not recorded.
  • Explain how complete-case analysis changes the donors represented in a comparison.
  • Recognize MCAR, MAR, and MNAR missingness and what each permits.
  • Audit missingness patterns before choosing an analysis or interpreting its scope.

Why Missingness Changes the Comparison

A donor-condition profile can be absent because a specimen was not collected, an assay failed, or its measurements were not recorded. A cell type can also have a recorded count of zero in a successfully processed sample. These are different data states: a zero is an observation, while a missing value means the relevant quantity was not observed. Treating missing profiles as zeros can change both the proportions and the comparison being analyzed.

The consequences are not limited to arithmetic. If donors with missing samples differ systematically from donors with complete samples, excluding them changes who contributes to the result. A complete-case estimate then describes the donors with the required observed data; it does not automatically describe every recruited donor or a broader population.

Definition: A missing donor-condition sample is a donor-condition unit for which the required sample or profile is unavailable. An incomplete cell-type profile is a profile where a required cell-type count or category was not measured, recorded, or reliably classified. An observed zero count is a recorded count of zero from an observed profile. It reports that no cells assigned to that category were observed in that profile; it is not a missing value.

Represent the Data State Before Analyzing It

For each planned donor-condition sample, record whether the sample was collected, processed, and included in the analysis. For each cell-type count, retain the count together with a status that distinguishes an observed count—including zero—from a missing or unusable measurement. Keep the reason for missingness when it is known. This makes it possible to identify whether a missing value concerns an entire sample, one category, or a specific processing step.

A count of zero is meaningful only when the profile was observed and the category was in the measurement and annotation scheme. If a cell type was not included in the annotation scheme, its absent row is not evidence of a zero. If a sample failed before a usable profile was produced, the counts for that sample are missing rather than zero. Even a valid observed zero does not prove the biological cell type is absent from the donor: it means none were observed under the measurement and classification process used.

This distinction matters for proportions. A proportion for a cell type is calculated from an observed count and a specified denominator. If the required count or denominator is missing, the proportion is unavailable; inserting zero would fabricate a value. A zero count in a fully observed profile, by contrast, yields a zero observed proportion when the denominator is positive.

Worked Example: A Recorded Zero Versus an Unobserved Profile

Suppose three hypothetical donors were intended to have profiles of 1,000 analyzed cells each. The cell-type count for type A is recorded as 0 for donor 1, is unavailable because donor 2’s sample failed, and is recorded as 12 for donor 3.

For donor 1, the profile was observed and the total is 1,000, so the observed proportion of type A is \(0/1000=0\). This is a valid zero in the observed profile.

For donor 2, there is no usable profile and therefore no observed total or type-A count. The proportion is missing; it cannot be calculated as \(0/1000\), or as zero, because neither a count of zero nor a denominator of 1,000 was observed.

For donor 3, the observed proportion is \(12/1000=0.012\), or 1.2%. The three states must remain distinct: an observed zero, a missing profile, and a positive observed count.

Missingness Mechanisms and Their Implications

A useful first description concerns how the probability of missingness relates to measured or unmeasured data. Let \(R=1\) indicate that the outcome needed for an analysis is observed for a donor, and \(R=0\) indicate that it is missing. These standard missingness labels describe assumptions about the data-generating process; they cannot usually be established from the observed values alone.

  • Missing completely at random (MCAR): whether a value is missing is independent of both the outcome and observed covariates. For example, a genuinely random administrative loss might be MCAR.
  • Missing at random (MAR): after conditioning on observed information, such as condition or a recorded donor characteristic, missingness does not additionally depend on the missing outcome.
  • Missing not at random (MNAR): even after conditioning on observed information, missingness depends on the unobserved value itself or on other unobserved information. For example, a failure process more likely for profiles with an unrecorded extreme abundance may be MNAR.

These are assumptions, not labels that can be assigned just by looking at a table of observed counts. Recording reasons for missingness and comparing completion rates across observed conditions, batches, and donor characteristics can reveal concerning patterns, but cannot rule out dependence on unobserved outcomes. A standard complete-case analysis is easiest to interpret as representing the target donors when missingness is MCAR. Under MAR, adjustment using relevant observed variables may be possible if a suitable model and its assumptions are justified. Under MNAR, observed data alone generally do not identify the missing outcomes without additional assumptions or information.

Why Complete Cases Can Represent a Different Group

A complete-case analysis keeps only donors with all measurements required for the comparison. It can be a clear and defensible choice when the analysis is explicitly about those complete donors. But when the intended target is all recruited donors, or a population represented by them, selection into the complete cases can alter the target.

A short identity makes the issue precise. For a donor-level outcome \(Y\), let \(R\) indicate whether \(Y\) is observed, with \(P(R=1)>0\). The complete-case mean is \(E[Y\mid R=1]\). By the definition of covariance,

$$ \operatorname{Cov}(Y,R) =E[YR]-E[Y]E[R] =P(R=1)E[Y\mid R=1]-P(R=1)E[Y]. $$

Dividing by \(P(R=1)\) gives

$$ E[Y\mid R=1]-E[Y] =\frac{\operatorname{Cov}(Y,R)}{P(R=1)}. $$

Thus, if observation is MCAR, \(Y\) and \(R\) are independent and the covariance is zero: the complete-case mean targets the same mean in expectation. If observation is related to \(Y\), the covariance need not be zero, and the complete-case mean can differ from the mean among all target donors. This identity explains the selection concern; it does not imply that a nonzero difference can be diagnosed exactly when outcomes are missing.

Worked Example: A Missing Condition in a Paired Comparison

In a hypothetical study, five donors were intended to contribute profiles in both conditions. The observed donor-level proportions of a cell type are shown below. Donor D’s second-condition profile is unavailable, so no paired difference can be calculated for that donor.

DonorCondition 1Condition 2Difference, Condition 2 − Condition 1
A0.100.120.02
B0.140.150.01
C0.110.09−0.02
D0.13MissingUnavailable
E0.120.130.01

The four available paired differences sum to \(0.02+0.01-0.02+0.01=0.02\). Their mean is \(0.02/4=0.005\), a mean increase of 0.5 percentage points among these four complete pairs.

That calculation does not provide donor D’s difference. Assigning D a difference of zero would change the mean to \(0.02/5=0.004\), but this number assumes an unobserved difference is exactly zero. The available-pair mean describes the four complete pairs. Extending it to all five donors requires assumptions about why D’s profile is missing and how D’s unobserved outcome relates to the observed donors.

Assessing How Exclusion Changes the Target

The target of an analysis should be stated in terms of who is represented. For example, a paired comparison restricted to complete pairs may target donors who provided both conditions and had usable profiles. If donors with missing conditions have different observed characteristics or belong disproportionately to one condition or batch, that group may differ from the intended target population. The analysis does not become invalid merely because some samples are missing; rather, its scope and assumptions must be explicit.

Worked Example: Complete-Case Mean and the Unobserved Donor

Consider six hypothetical recruited donors and a single-condition cell-type proportion. Four mild cases have observed proportions \(0.08, 0.10, 0.12,\) and \(0.10\). One severe case has an observed proportion of \(0.20\), while the other severe case has a missing profile.

Among the five complete cases, the mean is \( (0.08+0.10+0.12+0.10+0.20)/5=0.60/5=0.12 \), or 12%. This complete-case group contains four mild cases and one severe case, even though the recruited group contained four mild and two severe cases.

Let \(x\) be the missing severe donor’s proportion. The mean among all six recruited donors, if that outcome were known, would be \( (0.60+x)/6 \). For example, if \(x=0.30\), the full recruited-group mean would be \(0.90/6=0.15\), not 0.12. The value \(x=0.30\) is only a sensitivity illustration, not an estimate of the missing outcome. Without further assumptions or information, the complete cases alone do not determine the six-donor mean.

This example shows two related changes: the observed case mix differs from the recruited case mix, and the missing outcome could affect the full-group mean. Reporting the number and characteristics of excluded donors helps readers assess the scope of the result. It does not, by itself, remove selection bias.

Practical Choices, Diagnostics, and Limits

Before analysis, determine which samples and categories are required by the intended comparison. Then check whether each unavailable value reflects a missing specimen, a failed assay, an unrecorded count, or a category that was not in the annotation scheme. These situations have different implications and should not be collapsed into one numerical value.

1
Audit completeness.
Tabulate planned, collected, usable, and excluded donor-condition samples. Separate whole-profile loss from category-specific gaps, and record known reasons.
2
Check patterns.
Compare missingness rates across conditions and observed donor characteristics or batches. Look for repeated patterns, such as a condition with few complete pairs or one group with frequent profile failures.
3
Choose and state the analysis set.
Define which donors contribute to each comparison. Do not replace missing counts with zero or silently switch between different sets of donors across cell types.
4
Describe the represented group and uncertainty.
Report exclusions and the target represented by the analyzed donors. If conclusions depend on unobserved outcomes, state the assumptions or provide a sensitivity analysis rather than treating them as known.

Complete-case analysis is transparent and straightforward, but it loses information and may select a nonrepresentative subset. A model-based approach can use observed covariates to address missingness under explicit assumptions, such as MAR, but it cannot recover information unsupported by the data or make MNAR dependence disappear. Restricting the scientific question to donors with complete profiles can be appropriate when that is genuinely the target; it should not be presented as an estimate for all recruited donors without justification. In every approach, a missing profile is not a zero profile.

Diagnostics should include completion counts by condition, donor-level missingness patterns, reasons for failure where available, and comparisons of observed characteristics between complete and incomplete cases. Large or condition-specific losses, sparse complete pairs, and changing donor sets across cell types are warnings that the interpretation may depend heavily on inclusion. These checks describe the observed process; they do not prove MCAR or distinguish MAR from MNAR in general.

  • Pitfall: “No row for this cell type means its count is zero.” This is only justified when the profile was observed and the category was included in the measurement and annotation scheme. Otherwise the value may be unavailable or undefined.
  • Pitfall: “The complete-case mean is the mean for all recruited donors.” That follows under conditions such as MCAR, not merely because a mean was calculated. State the complete-case target and justify any broader interpretation.
  • Pitfall: “A missing second condition can be filled with the first condition.” This imposes a zero within-donor change without evidence. Keep the pair incomplete or use a method whose assumptions explicitly address the missing outcome.
Key takeaway: Preserve the distinction between an observed zero and an unavailable measurement. Then make the analysis set visible: exclusions can change the donor group represented by an abundance comparison, and broader conclusions require assumptions about the missing data.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A successfully processed sample contains 800 cells and no cells assigned to type B. Is the type-B count missing or zero, and what is the observed proportion?
  2. A donor’s entire second-condition sample failed. Can the donor’s paired difference be recorded as zero? Explain.
  3. What does MCAR imply about the complete-case mean in expectation, and what does it not establish from observed data?
  4. Five of six recruited donors have observed outcomes. What information is needed to calculate the mean for all six?

Solutions. (1) It is an observed zero; the observed proportion is \(0/800=0\). (2) No. The second-condition outcome is unavailable, so the difference cannot be calculated without an unsupported assumption. (3) Under MCAR, inclusion is independent of the outcome, so the complete-case mean targets the same population mean in expectation; the observed data alone do not prove MCAR. (4) The sixth donor’s outcome, or additional assumptions and information that justify a method for accounting for it, is needed. The five observed outcomes alone do not determine the six-donor mean.

Clinical Biostats