Background
Histologic grade in breast cancer (BC) provides clinically important prognostic information. Researchers examined whether histologic grade was associated with gene expression profiles of breast cancers and whether such profiles could be used to improve histologic grading. In this tutorial we will assess the association between histologic grade and the expression of the KPNA2 gene that is known to be associated with poor BC prognosis. The patients, however, do not only differ in the histologic grade, but also on their lymph node status.
The lymph nodes were not affected (0) or surgically removed (1).
library(car)
library(multcomp)
library(tidyverse)
## Set default theme for ggplot2
theme_set(theme_bw(base_size = 14))
Data analysis
Import KPNA2 data in R
kpna2 <- read_table("https://raw.githubusercontent.com/statOmics/SGA21/master/data/kpna2.txt")
kpna2
Data exploration
Histologic grade and lymph node status can be associated with the kpna2 gene expression. Moreover, it is also possible that the differential expression associated with histological grade is different in patients that have unaffected lymph nodes and patients for which the lymph nodes had to be removed.
ggplot(kpna2, aes(x = grade, y = gene, fill = node)) +
geom_boxplot(outlier.shape = NA) +
geom_point(position = position_jitterdodge(), shape = 21, size = 2) +
labs(
x = "Histologic grade", y = "KPNA2 expression",
fill = "Lymph node status"
) +
ggtitle("KPNA2 gene expression in breast cancer patients")
The plot suggests
- An effect of the histological grade
- An effect of node status
- The differential expression associated to grade seems to differ according to the lymph node status (interaction)
- Mean variance relation?
Model
Histologic grade and lymph node status can be associated with the kpna2 gene expression. Moreover, it is also possible that the differential expression associated with histological grade is different in patients that have unaffected lymph nodes and patients for which the lymph nodes had to be removed. Hence, we will have to model the gene expression by using main effects for grade, node and a grade x node interaction.
# Model with main effects for histological grade and node and grade x node interaction
fit <- lm(gene ~ grade * node, data = kpna2)
par(mfrow = c(2, 2))
plot(fit)
The variance seems to increase with the mean, i.e. the residuals do not seem to be homoscedastic. The QQ-plot of the residuals shows deviations from normality or some outliers.
We will first log2 transform the data.
fit <- lm(log2(gene) ~ grade * node, data = kpna2)
par(mfrow = c(2, 2))
plot(fit)
- The variance is now more or less equal for every treatment x node combination.
- The QQ-plot of the residuals shows no deviations from normality.
Inference
We perform a type III ANOVA to test the interaction effect. Note that we use the Anova()
function (with capital A) from the car package here. This function allows to test type-II and type-III tests. The default anova()
from base R only performs type-I tests.
## Anova from car package, make sure it's loaded with `library(car)`
anova_res <- Anova(fit, type = "III")
anova_res
The output shows that there is a very significant interaction (\(p=\) 0.0071). Hence, the association of the histological grade on the gene expression differs according to the lymph node status and vice versa.
The researchers are therefore interested in studying and reporting on the following hypotheses:
Is the KPNA2 expression on average different between grade 3 and grade 1 tumors from patients with unaffected lymph nodes (by testing \(H_0: \log_2{FC}_{g3n0-g1n0}=0\text{ vs }H1: \log_2{FC}_{g3n0-g1n0}\neq 0\))
Is the KPNA2 expression on average different between grade 3 and grade 1 tumors from patients with affected lymph nodes (by testing \(H_0: \log_2{FC}_{g3n1-g1n1}=0\text{ vs }H1: \log_2{FC}_{g3n1-g1n1}\neq 0\))
Is the KPNA2 expression on average different in grade 1 tumors of patients with affected and patients with unaffected lymph nodes (by testing \(H_0: \log_2{FC}_{g1n1-g1n0}=0\text{ vs }H1: \log_2{FC}_{g1n1-g1n0}\neq 0\))
Is the KPNA2 expression on average different in grade 3 tumors of patients with affected and patients with unaffected lymph nodes (by testing \(H_0: \log_2{FC}_{g3n1-g3n0}=0\text{ vs }H1: \log_2{FC}_{g3n1-g3n0}\neq 0\))
Is the fold change of the KPNA2 gene between grade 3 and grade 1 different according to the lymph node status and vice versa (tested already by assessing the interaction: \(H_0: \log_2{FC}_{g3n0-g1n0}=\log_2{FC}_{g3n1-g1n1} \text{ vs }H1:\log_2{FC}_{g3n0-g1n0}\neq\log_2{FC}_{g3n1-g1n1}\)).
Interpretation of model parameters and statistical tests
ExploreModelMatrix::VisualizeDesign(kpna2, ~ grade * node)$plotlist[[1]]
Call:
lm(formula = log2(gene) ~ grade * node, data = kpna2)
Residuals:
Min 1Q Median 3Q Max
-0.57694 -0.19857 -0.04079 0.20807 0.64557
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 7.4796 0.1292 57.893 < 2e-16 ***
grade3 1.6675 0.1827 9.127 1.44e-08 ***
nodeRemoved 0.6577 0.1827 3.600 0.00179 **
grade3:nodeRemoved -0.7748 0.2584 -2.998 0.00710 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.3165 on 20 degrees of freedom
Multiple R-squared: 0.848, Adjusted R-squared: 0.8252
F-statistic: 37.18 on 3 and 20 DF, p-value: 2.266e-08
# Calculate confidence intervals for parameters of model
CIfit <- confint(fit)
# log_2 FC between g3n0-g1n0, g1n1-g1n0
# and log_2 difference in FC g3n1-g1n1 and FC g3n0-g1n0
CIfit
2.5 % 97.5 %
(Intercept) 7.2101125 7.7491128
grade3 1.2864076 2.0486691
nodeRemoved 0.2766005 1.0388620
grade3:nodeRemoved -1.3137511 -0.2357505
# Transform parameters and the CI back to the original scale
2^coef(fit)
(Intercept) grade3 nodeRemoved
178.4792627 3.1767209 1.5775997
grade3:nodeRemoved
0.5844896
2.5 % 97.5 %
(Intercept) 148.0676336 215.1371400
grade3 2.4391992 4.1372414
nodeRemoved 1.2113372 2.0546063
grade3:nodeRemoved 0.4022736 0.8492431
We model the log\(_2\)-transformed intensities with the following model: \[
y=\beta_0+\beta_{g3}x_{g3}+\beta_{n1}x_{n1}+\beta_{g3n1}x_{g3}x_{n1},
\]
with \(\beta_0\) the intercept, \(\beta_{g3}\) the main effect for grade, \(x_{g3}\) a dummy variable for grade which is 0 for the control treatment in the absence of grade and 1 for the treatment with grade, \(\beta_{n1}\) the main effect for node, \(x_{n1}\) a dummy variable that is 0 for the measurements of patients with unaffected lymph nodes and 1 for patients for which the lymph nodes were removed and \(\beta_{g3n1}\) the interaction effect between grade and node. To ease the interpretation of the parameters, \(\log_2\) transformed geometric mean intensities are given for each treatment group as well as corresponding contrasts between treatments, which have an interpretation in terms of \(\log_2\) transformed fold changes (FC).
\(\log_2\hat{\mu}_{g1n0}=\hat\beta_0\), \(\log_2 \hat{\mu}_{g3n0}=\hat\beta_0+\hat\beta_{g3}\) –> \(\log_2 \widehat{FC}_{g3n0-g1n0}=\hat\beta_{g3}\)
\(\log_2 \hat{\mu}_{g1n1}=\hat\beta_0+\hat\beta_{n1}\), \(\log_2 \hat {\mu}_{g3n1}=\hat\beta_0+\hat\beta_{g3}+\hat\beta_{n1}+\hat\beta_{g3n1}\) –> \(\log_2 \widehat{FC}_{g3n1-g1n1}=\hat \beta_{g3} +\hat\beta_{g3n1}\)
Similarly, \(\log_2 \widehat{FC}_{g1n1-g1n0}=\hat\beta_{n1}\), \(\log_2 \widehat{FC}_{g3n1-g3n0}=\hat\beta_{n1}+\hat\beta_{g3n1}\)
\(\log_2\frac{\widehat{FC}_{g3n1-g1n1}}{\widehat{FC}_{g3n0-g1n0}}=\log_2\frac{\widehat{FC}_{g3n1-g3n0}}{\widehat{FC}_{g1n1-g1n0}}=\hat\beta_{g3n1}\)
with \(\log_2\hat{\mu}_{g1n0}\), \(\log_2\hat{\mu}_{g3n0}\), \(\log_2\hat {\mu}_{g1n1}\) and \(\log_2\hat{\mu}_{g3n1}\) the estimated mean \(\log_2\) transformed intensity for patients with grade 1 and node 0 status, grade 3 and node 0 status, grade 1 and node 1 status and grade 3 and node 1 status, respectively. With \(\log_2 \widehat{FC}_{b-a}\) we indicate \(\log_2\) transformed fold change estimates between treatment b and treatment a, i.e. \(\log_2 \widehat{FC}_{b-a}=\log_2 \hat{\mu}_{b}-\log_2 \hat{\mu}_a=\log_2 \frac{\hat{\mu}_{b}}{\hat{\mu}_{a}}\).
The model immediately provides statistical tests for assessing the significance of fold changes between grade 3 and grade 1 for patients with unaffected lymph nodes (n=0) \(\log_2 {FC}_{g3n0-g1n0}\), fold changes between the grade 1-node 1 patients and grade 1- node 0 patients \(\log_2 {FC}_{g1n1-g3n0}\) and for differences in fold change related to histological grade for node 1 patients and node 0 patients. \(\log_2\frac{{FC}_{g3n1-g1n1}}{{FC}_{g3n0-g1n0}}\), the interaction term.
Interpretation of the model parameters in the model output:
- The geometric mean intensity for grade 1 patients with unaffected lymph nodes equals \(\exp(\hat \beta_0)\)= 178.48.
- When lymph nodes are unaffected, the expression is on average 3.18 times higher for patients with histological grade 3 than patients with histological grade 1.
- The gene expression in histological grade 1 patients with affected lymph nodes is on average 1.58 times higher than for grade 1 patients with unaffected lymph nodes.
- The fold change corresponding to histological grade is on average 1.71 times lower in patients with affected lymph nodes as compared to patients with unaffected lymph node.
For the remaining hypothesis of interest we will have to define contrasts: linear combinations of the model parameters and evaluate the contrasts with the multcomp package.
The F-test showed an extremely significant association of the node status, hystological grade and/or the interaction between the node status and the grade (p<<0.001).
Assessing the significance of all hypothesis of interest
We can assess all contrasts of interest using the multcomp package. This will also allow us to correct for multiple testing, since we assess multiple hypotheses to answer the relevant research question.
- \(H_0: \log_2{FC}_{g3n0-g1n0}= \beta_{g3}=0\) \(\rightarrow\) “grade3 = 0”
- \(H_0: \log_2{FC}_{g3n1-g1n1}= \beta_{g3} + \hat\beta_{g3n1}=0\) \(\rightarrow\) “grade3+grade3:nodeRemoved = 0”
- \(H_0: \log_2{FC}_{g1n1-g1n0}= \beta_{n1}\) \(\rightarrow\) “nodeRemoved = 0”
- \(H_0: \log_2{FC}_{g3n1-g3n0}= \beta_{n1} + \hat\beta_{g3n1}=0\) \(\rightarrow\) “nodeRemoved+grade3:nodeRemoved = 0”
- \(H_0: \log_2{FC}_{g3n1-g1n1} - \log_2{FC}_{g3n0-g1n0} = \hat\beta_{g3n1}=0\), note that the latter hypothesis is also equivalent to \(H_0: \log_2{FC}_{g3n1-g3n0} - \log_2{FC}_{g1n1-g1n0} = \hat\beta_{g3n1}=0\) \(\rightarrow\) “grade3:nodeRemoved = 0”
## glht() function from the multcomp package
fitGlht <- glht(fit,
linfct = c(
"grade3 = 0",
"grade3+grade3:nodeRemoved = 0",
"nodeRemoved = 0",
"nodeRemoved+grade3:nodeRemoved = 0",
"grade3:nodeRemoved = 0"
)
)
summary(fitGlht)
Simultaneous Tests for General Linear Hypotheses
Fit: lm(formula = log2(gene) ~ grade * node, data = kpna2)
Linear Hypotheses:
Estimate Std. Error t value
grade3 == 0 1.6675 0.1827 9.127
grade3 + grade3:nodeRemoved == 0 0.8928 0.1827 4.886
nodeRemoved == 0 0.6577 0.1827 3.600
nodeRemoved + grade3:nodeRemoved == 0 -0.1170 0.1827 -0.640
grade3:nodeRemoved == 0 -0.7748 0.2584 -2.998
Pr(>|t|)
grade3 == 0 < 0.001 ***
grade3 + grade3:nodeRemoved == 0 < 0.001 ***
nodeRemoved == 0 0.00734 **
nodeRemoved + grade3:nodeRemoved == 0 0.89816
grade3:nodeRemoved == 0 0.02653 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
(Adjusted p values reported -- single-step method)
Simultaneous Confidence Intervals
Fit: lm(formula = log2(gene) ~ grade * node, data = kpna2)
Quantile = 2.6964
95% family-wise confidence level
Linear Hypotheses:
Estimate lwr upr
grade3 == 0 1.66754 1.17488 2.16020
grade3 + grade3:nodeRemoved == 0 0.89279 0.40013 1.38545
nodeRemoved == 0 0.65773 0.16507 1.15039
nodeRemoved + grade3:nodeRemoved == 0 -0.11702 -0.60968 0.37564
grade3:nodeRemoved == 0 -0.77475 -1.47148 -0.07802
2^confint(fitGlht)$confint
Estimate lwr upr
grade3 3.1767209 2.2572643 4.4707019
grade3 + grade3:nodeRemoved 1.8567602 1.3193474 2.6130786
nodeRemoved 1.5775997 1.1209860 2.2202070
nodeRemoved + grade3:nodeRemoved 0.9220906 0.6552046 1.2976879
grade3:nodeRemoved 0.5844896 0.3605058 0.9476355
attr(,"conf.level")
[1] 0.95
attr(,"calpha")
[1] 2.698031
Conclusion
There is an extremely significant association between the KPNA2 expression and hystological grade in patients with unaffected as well as in patients with affected lymph nodes (both \(p<<0.001\)). When lymph nodes are unaffected, the expression is on average 3.18 times higher for patients with histological grade 3 than patients with histological grade 1 (95% CI [2.26, 4.47]). For patients with affected lymph nodes the expression is on average 1.86 times higher for patients with histological grade 3 tumors than patients with histological grade 1 tumors (95% CI [1.32, 2.61]).
The association between the KPNA2 expression with the lymph node status in grade 1 patients is very significant (\(p=\) 0.007). The KPNA2 expression in histological grade 1 patients with affected lymph nodes is on average 1.58 times higher than for grade 1 patients with unaffected lymph nodes (95% CI [1.12, 2.22]). In grade 3 patients, however, this association is not significant (\(p=\) 0.9, 95% CI [0.66, 1.3] ).
There is also a significant interaction between the hystological grade and the lymph node status. So the association between the KPNA2 expression and the histological grade depends on the lymph node status and vice versa (\(p=\) 0.027). The fold change corresponding to histological grade is on average 1.71 times lower in patients with affected lymph nodes as compared to patients with unaffected lymph node (95% CI [1.06, 2.77]). (Similarly, the fold change corresponding to the node status is on average 1.71 times lower in patients with grade 3 tumors as compared to patients with grade 1 tumors, 95% CI [1.06, 2.77])
LS0tCnRpdGxlOiAiOC40LiBNdWx0aXBsZSBSZWdyZXNzaW9uOiBLUE5BMiBleGFtcGxlIC0gc29sdXRpb24iCmF1dGhvcjogIkxpZXZlbiBDbGVtZW50IGFuZCBNaWxhbiBNYWxmYWl0IgpkYXRlOiAic3RhdE9taWNzLCBHaGVudCBVbml2ZXJzaXR5IChodHRwczovL3N0YXRvbWljcy5naXRodWIuaW8pIgotLS0KCjxhIHJlbD0ibGljZW5zZSIgaHJlZj0iaHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzQuMCI+PGltZyBhbHQ9IkNyZWF0aXZlIENvbW1vbnMgTGljZW5zZSIgc3R5bGU9ImJvcmRlci13aWR0aDowIiBzcmM9Imh0dHBzOi8vaS5jcmVhdGl2ZWNvbW1vbnMub3JnL2wvYnktbmMtc2EvNC4wLzg4eDMxLnBuZyIgLz48L2E+CgoKYGBge3Igc2V0dXAsIGluY2x1ZGU9RkFMU0UsIGNhY2hlPUZBTFNFfQprbml0cjo6b3B0c19jaHVuayRzZXQoCiAgaW5jbHVkZSA9IFRSVUUsIGNvbW1lbnQgPSBOQSwgZWNobyA9IFRSVUUsCiAgbWVzc2FnZSA9IEZBTFNFLCB3YXJuaW5nID0gR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