Tutorials › Multi-Omics Data Integration › Separating Biological Factors From Technical Structure

Latent Factor Models and Their Interpretation · Tutorial 239 of 597

Separating Biological Factors From Technical Structure

Assess whether a latent factor aligns with biological or technical annotations, and interpret those associations without treating them as proof of biological meaning.

Advanced 13 min read

What You'll Learn

  • Distinguish subject-level evidence from feature-level evidence when interpreting a factor.
  • Compare factor scores with categorical and continuous sample annotations.
  • Assess loading-set enrichment against biological and technical feature annotations.
  • Choose tests and null comparisons that match the data and their assumptions.
  • Interpret effect sizes, p-values, and multiple comparisons in context.
  • Recognize why strong annotation association does not establish a factor’s cause or meaning.

Why Compare Biological and Technical Annotations?

A latent factor can summarize coordinated variation across omics measurements, but its statistical prominence does not say what generated that variation. A factor may align with a biological characteristic such as disease status, or with a technical feature such as assay batch, collection site, or sequencing depth. It may align with both. Comparing annotations is therefore a useful interpretation step: it helps describe what varies with the factor and identify technical structure that needs attention.

The comparison is evidence about association, not a verdict about cause. A factor associated with disease is not thereby established as a disease mechanism; likewise, association with batch does not prove that every feature loading on the factor is an artifact. Biological and technical metadata can track one another, and a factor’s interpretation also depends on how the factor was estimated and which measurements were included.

Write \(Z_{ik}\) for the score of sample \(i\) on factor \(k\), and \(L_{jk}^{(v)}\) for the loading of feature \(j\) in omics view \(v\) on that factor. A factor model represents the measured data, approximately, through combinations of sample scores and feature loadings. Earlier material on rotational invariance and scale and sign constraints explains why factor labels, signs, and scales must be treated consistently. The comparisons below concern a specified fitted factor and a clearly defined set of annotations.

Definition: Score alignment is an association between a factor’s sample scores \(Z_{ik}\) and sample-level annotations, such as diagnosis, age, or assay batch. Loading alignment is an association between a factor’s feature loadings \(L_{jk}^{(v)}\), or a selected set of features with large loadings, and feature-level annotations, such as pathway membership, genomic category, or technical sensitivity. These are distinct comparisons and answer different descriptive questions.

Set the Comparison Up Before Testing

First state the factor, the annotation, and the unit of analysis. For a score comparison, the units are usually samples; for a loading comparison, they are features within a specified omics view. Do not treat thousands of feature loadings as independent biological replicates when the claim concerns variation among subjects. Conversely, a sample-level score test does not establish which features drive that factor.

For a categorical sample annotation with two groups, a useful descriptive quantity is the difference in mean factor scores. Welch’s two-sample \(t\)-test assesses whether the population means differ without assuming equal group variances. Its usual small-sample inference assumes independent observations within and between groups and approximately normal score distributions in each group; with sufficiently large samples it is often less sensitive to nonnormality, but outliers and dependence still matter. For more than two groups, an omnibus comparison can test whether at least one group mean differs, followed by carefully specified comparisons if needed.

For a continuous annotation, Pearson correlation measures the strength and direction of a linear association. Its conventional test and confidence interval rely on independent sample pairs and, for exact small-sample inference, a bivariate normal model. A scatterplot should support an approximately linear pattern without influential outliers. A nonlinear relationship can be strong but have a small Pearson correlation, so a single coefficient is not a substitute for looking at the data.

Loading comparisons require a definition of the selected features and the null comparison. For example, one can compare the observed overlap of a high-loading feature set with a pathway against overlaps from random feature sets of the same size. A simple random-set null assumes eligible features are exchangeable. That assumption can fail if high-loading features are systematically more abundant, variable, or well-measured than other features. A more credible permutation procedure preserves relevant feature properties when constructing null sets.

1
Specify the target.
Name the factor, score or loading, annotation, omics view, and direction or magnitude being assessed.
2
Inspect the data.
Plot scores against continuous annotations; show score distributions by groups; inspect loading ranks and annotation coverage.
3
Quantify the association.
Report an effect size and uncertainty, and use a test or permutation null whose assumptions fit the comparison.
4
Compare interpretations cautiously.
Assess biological and technical annotations together as evidence, while keeping association separate from mechanism or causation.

Worked Score Comparisons

Worked Example: A Factor Score Tracks Assay Batch

Suppose a hypothetical fitted factor has scores for 24 samples, with 12 samples in each of two assay batches. The batch 1 score mean is \(1.20\) score units with sample standard deviation \(0.50\); batch 2 has mean \(-1.20\) score units with standard deviation \(0.60\). Assume the samples are independent, and diagnostic plots show no severe skew or influential outliers. We compare the group means using Welch’s test.

The estimated difference, batch 1 minus batch 2, is \(1.20-(-1.20)=2.40\) score units. Its standard error is

$$ SE=\sqrt{\frac{0.50^2}{12}+\frac{0.60^2}{12}} =\sqrt{0.02083+0.03000} =\sqrt{0.05083} =0.2255\text{ score units}. $$

Thus \(t=2.40/0.2255=10.64\). The Welch degrees of freedom are approximately \(21.3\), giving a two-sided p-value well below \(0.001\). The observed score difference is large relative to its standard error, and the data provide strong evidence that mean factor scores differ between these batches. The result identifies a strong batch association in this hypothetical sample; it does not establish that the factor is purely technical or that batch caused the score differences.

Worked Example: A Score Is Associated With a Biological Measurement

In a separate hypothetical data set of 30 independent samples, a factor score and a continuous biological measurement have sample correlation \(r=0.580\). A scatterplot is approximately linear, with no dominant outlier. Under the bivariate-normal model for the usual correlation test, test \(H_0:\rho=0\) against \(H_a:\rho\ne 0\).

The test statistic is \(t=r\sqrt{(n-2)/(1-r^2)}\), with \(df=n-2\). Substituting the values,

$$ t=0.580\sqrt{\frac{30-2}{1-0.580^2}} =0.580\sqrt{\frac{28}{0.6636}} =0.580(6.496) =3.768,\qquad df=28. $$

The two-sided p-value is approximately \(0.0008\). The estimated association is positive: samples with higher values of the biological measurement tend to have higher scores on this factor. The correlation \(0.580\) describes a moderately strong linear association in these samples, but it does not show that the biological measurement generated the factor. If the relationship were curved, or a few samples drove the trend, the test’s interpretation would be less reliable.

Comparing Loading Patterns With Feature Annotations

A loading’s sign indicates the direction of association under the chosen factor orientation, while its magnitude indicates how strongly the feature contributes on that scale. Since a factor’s sign can be reversed without changing the represented fit, do not interpret “positive” as inherently biological and “negative” as inherently technical. For a question about which features contribute most strongly regardless of direction, rank by \(|L_{jk}^{(v)}|\). For a question about a coordinated direction, retain the signed loadings and state the orientation convention.

A simple enrichment analysis asks whether a selected loading set contains more annotated features than expected under a specified null. Let \(N\) be the number of eligible measured features, \(K\) the number annotated to a set, \(n\) the number selected as high-loading, and \(x\) the observed overlap. Under uniform random selection without replacement, the overlap \(X\) follows a hypergeometric distribution:

$$ P(X\ge x)=\sum_{a=x}^{\min(K,n)} \frac{\binom{K}{a}\binom{N-K}{n-a}}{\binom{N}{n}}. $$

This upper-tail probability asks how surprising an overlap at least as large as the observed one would be if the selected set were a uniform random subset of the eligible features. It does not account automatically for feature-selection bias, dependence among annotations, or differences in measurement quality. A permutation null that matches the selection process and preserves important feature properties can be preferable.

Worked Example: Biological and Technical Enrichment Among High Loadings

Suppose a hypothetical omics view has \(N=1{,}000\) eligible features. The 40 features with the largest absolute loadings include 12 members of a specified biological pathway, which contains \(K=100\) measured features. Under uniform random selection, the expected overlap is \(nK/N=40(100)/1{,}000=4\); the observed overlap is 12, or three times that expectation. The enrichment ratio is \(12/4=3.00\).

To illustrate a property-matched permutation check, suppose 999 null sets of 40 features are drawn using a procedure that matches the observed set on measured abundance and variability. Seven null sets overlap the pathway in at least 12 features. With the standard plus-one correction, the empirical p-value is

$$ p_{\mathrm{emp}}=\frac{7+1}{999+1}=0.008. $$

Now suppose the same high-loading set overlaps a technical-sensitivity annotation in 15 of 40 features, and 2 of 999 matched null sets have at least that many. Its empirical p-value is \((2+1)/(999+1)=0.003\). Both annotations show evidence of enrichment relative to their respective null procedures. The smaller technical p-value does not mean technical structure is “more important”: the annotations, their prevalence, and the effect sizes differ. The appropriate conclusion is that this factor’s high-loading features align with both annotations and require contextual interpretation.

Justification and Practical Interpretation

The enrichment calculation has a direct probability justification. Under the simple null, each subset of \(n\) features is equally likely among the \(\binom{N}{n}\) possible subsets. A subset with exactly \(a\) pathway members can be formed by choosing \(a\) from the \(K\) annotated features and \(n-a\) from the \(N-K\) others. Therefore,

$$ P(X=a)=\frac{\binom{K}{a}\binom{N-K}{n-a}}{\binom{N}{n}}, \qquad P(X\ge x)=\sum_{a=x}^{\min(K,n)}P(X=a). $$

The assumptions are doing real work: the denominator counts all equally likely subsets. If high-loading features are more likely to be highly expressed or variable, uniform selection is not a credible reference distribution. Matching or permuting on relevant properties changes the null comparison to better reflect how the observed set could have arisen.

For score analyses, report the estimated difference or correlation alongside its uncertainty and p-value. For loading analyses, report the selected-set rule, overlap, enrichment ratio or another effect size, eligible background, and null construction. If many factors, annotations, views, or pathways are examined, some small p-values can occur by chance. Define the family of tests and use a multiple-testing procedure such as the Benjamini–Hochberg false discovery rate adjustment when appropriate. Adjusted significance still does not establish biological validity.

A useful comparison is not just “which p-value is smaller?” Different tests can have different sample sizes and different null hypotheses. A biological annotation may be strongly associated with scores while a technical annotation is enriched among loadings; these are complementary observations, not quantities that can be ranked on one universal scale. Replication in a distinct data set, coherent feature-level evidence, and knowledge of data collection can strengthen an interpretation, but none converts an observational association alone into proof of mechanism.

Diagnostics, Alternatives, and Limitations

Before interpreting a result, check the score distributions and score-versus-annotation plots; inspect group sizes, missingness, extreme points, and whether samples are dependent (for example, repeated measurements from the same subject). For loading analyses, check how the high-loading threshold was chosen, whether the factor orientation was handled consistently, how many eligible features have annotation data, and whether the feature background matches the fitted view. A result that changes sharply under a modest change in threshold or background should be described as sensitive rather than definitive.

The main alternatives answer somewhat different questions. Rank-based association can be less sensitive to extreme values and captures monotone rather than specifically linear trends, though its assumptions and interpretation differ from Pearson correlation. An omnibus group test is appropriate for more than two categories, while pairwise tests need multiplicity control. Enrichment testing is compact and interpretable for sets, whereas examining signed loading distributions can preserve direction and avoid an arbitrary high-loading cutoff. No alternative removes the need to specify a valid null and appropriate unit of analysis.

A major limitation is that biological and technical annotations may be associated with each other in the observed samples. Consequently, separate marginal tests cannot determine which annotation accounts for a factor’s pattern when both are related. This is a warning about interpretation, not a reason to ignore either result. Factor scores and loadings are estimated quantities, too; uncertainty in their estimation is not represented by a simple downstream test unless the analysis explicitly accounts for it. Finally, annotations may be incomplete or inaccurate, and a factor may represent biology not captured by the available labels.

Common pitfall: “The factor has a very small p-value for disease status, so it is a biological disease factor.” This reasoning confuses evidence of association with evidence of meaning or cause. The correction is to report the observed association and its effect size, examine technical annotations and loading patterns, assess the assumptions and design, and state that the evidence is compatible with—but does not prove—a biological interpretation.

Check Your Understanding

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

  1. A factor score differs significantly between two assay batches. What can be concluded, and what cannot be concluded from that result alone?
  2. For \(N=500\) eligible features, a selected set has \(n=20\) features and an annotation contains \(K=50\) features. What overlap is expected under uniform random selection?
  3. Why is the sign of a loading not by itself a stable label for biological versus technical variation?
  4. A factor has a small p-value for a biological annotation and another small p-value for a technical annotation. Does comparing the two p-values identify which source generated the factor?

Solutions. (1) The data support an association between batch and the factor scores under the test’s assumptions; they do not prove that batch caused the scores or that the factor is exclusively technical. (2) The expected overlap is \(nK/N=20(50)/500=2\) features. (3) Reversing a factor’s sign reverses all its scores and loadings without changing the represented fit, so positive and negative do not have intrinsic biological or technical meanings. (4) No. The tests concern different annotations and potentially different null comparisons; both associations may be present, and p-value size alone does not assign cause or rank biological importance.

Clinical Biostats