One Sample t-test
data: x
t = 38.277, df = 99, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
1.936873 2.148657
sample estimates:
mean of x
2.042765
Bioinformatics · Universitat Politècnica de Catalunya
Importing Data, Formatting Metadata.
Exploratory Analysis, Data Visualization.
Preprocessing.
Quality Assessment.
Differential Expression.
Functional Analysis.
The six stages shown are the steps this lecture covers in sequence.
Adjusting systematic effects due to technology variation, not biology variation.
Background Correction.
Normalization.
Summarization (some platforms).
Subtraction of the background intensities from the foreground at each spot. Analysis per-sample.
Remove systematic variation from the data, scaling data so that comparison can be made across samples.
It is a critical step.
Normalization Between Arrays, and Within Arrays.
M = log_2(R/G)=log_2 R - log_2 G
A= \frac{1}{2}log_2(RG)=\frac{log_2 R + log_2 G}{2}
Pairwise scatter plots before between-array normalisation.
Pairwise scatter plots after between-array normalisation.
Background adjustment, quantile normalisation, and robust probe-set summarisation on the log scale.
Extends background modelling to account for probe sequence composition and non-specific binding.
Model-based expression estimation accounts for probe-specific response. It is distinct from loess smoothing.
The appropriate method depends on array platform and experimental design.
Classical statistical tests.
Linear models.
Generate Hypothesis.
Choose appropriate statistical test.
Compute p-value.
Correct for multiple testing.
Decide on confidence p-value threshold.
List selected.
| Comparison | Test |
|---|---|
| One group mean against a specified value | One-sample t-test |
| Matched or repeated measurements | Paired t-test on within-pair differences |
| Two independent group means | Welch two-sample t-test |
The pooled-variance test additionally assumes equal population variances. Inspect the study design, sample size, and distribution of errors or differences.
t=\frac{\bar X - \mu}{ \sigma /_{\sqrt{n}} }
For independent samples, the Welch statistic is
t=\frac{(\bar X_1-\bar X_2)-\Delta_0} {\sqrt{s_1^2/n_1+s_2^2/n_2}}.
\Delta_0 is the difference specified by the null hypothesis. Welch’s test estimates degrees of freedom from the sample variances.
The examples compare a pooled-variance test with Welch’s test.
Two Sample t-test
data: x and y
t = -0.53311, df = 18, p-value = 0.3002
alternative hypothesis: true difference in means is less than 0
95 percent confidence interval:
-Inf 2.027436
sample estimates:
mean of x mean of y
11.4 12.3
Compares two independent samples. Its general null concerns distributions; a median-shift interpretation needs additional shape assumptions.
Uses paired differences and assumes a symmetric distribution of those differences for its usual location interpretation.
These tests can be used with small samples, but discreteness, ties, and the available exact or approximate method affect inference.
Allows a statistical test for categorical data
\chi^2-test:
\chi^2 = \sum^n_{i=1} \frac{(f_i-e_i)^2}{e_i}
| Question | Common starting point |
|---|---|
| One mean versus a reference | One-sample t-test |
| Two independent means | Welch t-test |
| Two paired means | Paired t-test |
| More than two independent means | ANOVA or Welch ANOVA |
| Association between categorical variables | Chi-square or Fisher’s exact test |
| Question | Common starting point |
|---|---|
| Linear association | Pearson correlation |
| Monotonic association | Spearman correlation |
| Continuous response with predictors | Linear regression |
| Binary response with predictors | Logistic regression |
| Time-to-event response | Survival analysis |
Choose according to the design and assumptions. Repeated measures, censoring, confounding, and multiple testing require explicit treatment.
Suppose we run 100,000 valid tests, all with true null hypotheses.
With uniform null p-values and a threshold of 0.05, the expected number of false positives is:
100{,}000 \times 0.05 = 5{,}000.
This is an expected count, not the exact realised count or the probability of at least one false positive.
Let p_{(1)} \le \cdots \le p_{(m)} be the sorted p-values for the full family of tests.
p_i^{\mathrm{adj}}=\min(1,mp_i)
Controls the family-wise error rate.
p_{(i)}^{\mathrm{adj}}=\min\left(1,\max_{j\le i}(m-j+1)p_{(j)}\right)
Controls the family-wise error rate using a step-down procedure.
p_{(i)}^{\mathrm{adj}}=\min\left(1,\min_{j\ge i}\frac{m}{j}p_{(j)}\right)
Controls the false discovery rate under independence or appropriate positive dependence. Restore the original test order after adjustment.
San Francisco under a flooded-sea scenario, visualised in Google Earth. As a metaphor: the “signal” (the city skyline) remains identifiable, but the surrounding “noise” (the raised sea) drowns everything at the same scale. When many hypotheses are tested, the noise floor rises with the number of tests — and a “significant” gene is a building that seems to rise above water, with no guarantee that it truly does.
Experimental data can be understood in the framework of the known biological context. Enrichment techniques relate this data to biological pathways.
The challenge no longer lies in obtaining gene expression profiles, but rather in interpreting the results to gain insights into biological mechanisms.
(Subramanian et al PNAS 2005)
Three generations appear on later slides: over-representation (binary hits list, known background), gene-set enrichment (ranked full list, no cutoff), network analysis (signal propagated over a knowledge network).
UniProt: comprehensive database for protein sequence and annotation data (The UniProt Consortium, NAR 2018).
STRING: protein association database, including functional and physical associations; automatic and curated evidence (von Mering et al, NAR 2005).
KEGG: comprehensive and curated pathway database (Kanehisa, NAR 2000).
Reactome, BioCyc, WikiPathways, SMPDB
An example of GO overrepresentation analysis (ORA) (Tian 2014).
Define a background of N genes that could have been selected. A pathway contains K of these genes; the selected list has n genes, with overlap k.
P(X=k)=\frac{\binom Kk\binom{N-K}{n-k}}{\binom Nn}.
For enrichment, use the upper-tail probability:
p=P(X\ge k)=\sum_{j=k}^{\min(K,n)}P(X=j).
Adjust across the tested gene sets. The background and selection process determine the null model.
Relates genes with biological processes.
Assesses statistical significance.
Eases exploratory analysis.
Relies on a prior (arbitrary) cutoff method.
Sensitive on the input size.
Ignores magnitude of the gene affectation.
Simplistic context representation in a binary fashion.
The second generation of methods intend to take advantage of quantitative data about gene expression.
GSEA procedure from original publication.
Takes into account quantitative measures.
Has reported to capture subtle but consistent changes in expression data.
Genes have complex interactions that could be accounted.
Biological pathways exhibit substantial overlapping.
Network-based methods take into account the topological features of biological networks in order to test pathways.
IF(P) = \log \frac{1}{p} + \frac{\sum\limits_{g \in P} |PF(g)|}{\bar{|\Delta E|} \cdot N_{de} (P)}
\log \frac{1}{p} incorporates a p-value from over-representation analysis in the original Pathway-Express formulation
PF(g) = \Delta E (g) + \sum\limits_{u \in US_g} \beta_{ug} \cdot \frac{PF(u)}{N_{ds}(u)} considers the topology of the genes within the pathway, and is similar to PageRank scores.
Interactive result service (historical URL, requires campus network): http://eko.upc.edu:7777/sergi/FELLA

Bioinformatics · UPC · b2slab