Background

Metabolomics is a science based on the exhaustive profiling of metabolites. Various analytical technologies are used in metabolomic research, including capillary electrophoresis–mass spectrometry (CE–MS), liquid chromatography–MS, gas chromatography–MS, and nuclear magnetic resonance. The statistical analysis of the analytical data obtained has been studied in chemometrics research [1]. Chemometric approaches that commence with a multivariate analysis, such as principal component analysis (PCA) [2], partial least squares [3], canonical correlation analysis [4], and so on, have been predominantly applied in metabolomics.

PCA [2] is routinely used to visualize high-dimensional metabolomic data in a two- or three-dimensional subspace. A scatter plot of PC score vectors (a “scores plot”) can be used to detect outliers or to identify biologically interpretable patterns. Typically, when a specific PC score is found to be related to a phenotype of interest [5, 6], such as a time course or group information, the corresponding factor loading is evaluated to discern meaningful metabolites from which to draw biological inferences.

In many metabolomic research articles [79], an eigenvector in PCA (Eq. 1–1) has been used as the factor loading. To draw biological inferences, some metabolites (e.g., the top 10 metabolites) are subjectively selected using the eigenvector. However, this approach has several problems. For example, many metabolites may vary with phenotype in one study, whereas only a few metabolites vary with phenotype in another study. With the existing approach, which uses the eigenvector, this is equivalent to using the same number of metabolites to draw biological inferences from these different studies. Consequently, biological interpretations might be made using an insignificant metabolite that varies irrelevantly with phenotype.

The eigenvectors for autoscaled data in PCA [10] are proportional to the correlation coefficients between the PC scores and the variables. This fact is well established in the multivariate analysis literature [11], but does not appear to be appreciated in metabolomic analyses. In the present study, “factor loading” is defined as the correlation coefficients between the PC scores and the variables. This definition can be used to perform statistical hypothesis testing and to select significant metabolites objectively using statistical criteria. The significance of factor loading in PCA can also be computed with a resampling approach, such as bootstrapping, although this is not exact [12].

Significant metabolites are selected according to the significance of factor loading or other methods of variable selection in supervised learning approaches, such as support vector machine, random forest, and so on, and then biological inferences are drawn for these metabolites by biologists. Biologists often draw these inferences with respect to a biological functional unit, such as a metabolic pathway (e.g., “glycolysis is notably activated” or “amino acid metabolism is significantly suppressed”). In gene expression analyses, gene set enrichment analysis (GSEA) has been used to identify significant gene sets using gene ontology (GO) terms. In metabolomics, metabolite set enrichment analysis (MSEA) [13, 14] can be used to identify significant metabolic pathways. MSEA has been computed with several approaches, including overrepresentation analysis (ORA) [15], Subramanian’s GSEA [16], and the global test [17]. MSEA is a convenient method for drawing biological inferences from metabolomic data, but this approach has not been applied to metabolites selected by factor loading in PCA. Recently, web tools for MSEA have been developed [13, 14]. However, no tools that can perform our workflow, including the statistical hypothesis testing of factor loading in PCA, have existed in a single platform. In the present study, we performed statistical hypothesis testing of the factor loading in PCA for two metabolomic datasets from mouse liver samples as case studies. This approach can be used to select significant metabolites when using factor loading in PCA, and MSEA with an ORA approach can be applied to these significant metabolites. We developed the R package “mseapca” to compute the sequence from the statistical hypothesis testing of factor loading in PCA to MSEA.

Methods

Statistical hypothesis testing of factor loading in PCA

Consider a mean-centered data matrix X that has samples in each row and variables in each column. The score vector is related to the data matrix by t = Xw, where w is a vector of weights. PCA is formulated as the optimization problem of maximizing the variance of the score vector t:

maxvar t subject to w w = 1
(1-1)

and the weight vector w is often used for factor loading. After transformation, eq. (1–1) can be rewritten as the eigenvalue problem:

1 n - 1 X Xw = λ w
(1-2)

The eigenvector w and eigenvalue λ of eq. (1–2) can be computed using numerical computation libraries for singular value decomposition. The eigenvalue λ corresponds to the variance of the PC score vector formed using the associated eigenvector as the weight vector.

The coefficient of the correlation between the PC score and the p-th variable can be defined as:

corr t , x p = t x p / n - 1 var t var x p
(1-3)

where t' is the transpose of t. Introducing c as the column vector in which the p-th element is 1 and the others are 0, so that x p  = Xc, we have:

corr t , x p = w X Xc / n 1 var t var x p
(1-4)

Transposing eq. (1–2) gives wXX/n - 1 = λ w ', which can be substituted in eq. (1–4), giving:

corr t , x p = λ w c var t var x p
(1-5)

The variance of the score vector can then be replaced with λ and the standard deviation of x p is replaced with σp. Finally, the correlation between the PC score and the variables can be written as:

corr t , x p = λ w c var t var x p = λ w p λ σ p = λ w p σ p
(1-6)

With data scaled to unit variance (autoscaling), the weight wp is proportional to the correlation coefficient between the PC score and variable x p because σp = 1 in eq. (1–6). Thus, the factor loading can be defined as the correlation coefficient in eq. (1–6). On the basis of this definition, we can perform a statistical test for factor loading in PCA, using the well-known fact that for a correlation coefficient r, the statistic:

t = r n - 2 1 - r 2
(1-7)

has a t-distribution with (n – 2) degrees of freedom. We can then select variables that have a statistically significant correlation to the PC score and draw biological inferences using these variables.

Sample preparation, metabolomic analysis, and data processing

BKS.Cg-m+/m+/Jcl (normal) mice, 12 h-fasted normal mice, BKS.C - +Leprdb/+Leprdb/Jcl (db/db) mice, and db/db mice orally administered pioglitazone for 10 days were used. The mice were 7-week-old males, and were given unlimited access to food and water, except those on the 12 h fast. The concentration of pioglitazone administered was 100 mg/10 mL per kg. The pioglitazone was purchased from Takeda Pharmaceutical Co. Ltd (Doshomachi, Osaka, Japan), and was purified by the NARD Institute Ltd (Amagasaki, Hyogo, Japan). After sampling, the livers were excised and stored at -80°C. All experiments, from the purchase and breeding of the mice to the collection of their liver samples, were performed at Kitayama Labes Co. Ltd (Ina, Nagano, Japan). The sample preparation procedure used to extract the metabolites has been described by Ooga et al. [18].

The metabolite extracts were measured with CE–time-of-flight MS (CE–TOFMS) using the Agilent Capillary Electrophoresis System equipped with an Agilent 6210 time-of-flight mass spectrometer, an Agilent 1100 isocratic high-performance liquid chromatography pump, an Agilent G1603A CE–MS adapter kit, and an Agilent G1607A CE–ESI–MS Sprayer Kit (Agilent Technologies, Waldbronn, Germany). The system was controlled with the G2201AA ChemStation Software version B.03.01 for CE (Agilent Technologies). Modified analytical methods for the measurement of cationic [19] and anionic metabolites [20] were used. The measurement data were processed with peak processing software [21]. The signal peaks corresponding to isotopomers, adduct ions, and other product ions of known metabolites were excluded. All signal peaks potentially corresponding to authentic compounds were then extracted, and their migration times (MTs) were normalized using those of the internal standards (methionine sulfone and d-camphor-10-sulfonic acid for cations and anions, respectively). The peaks were then aligned according to their m/z values and normalized MT values. Finally, the peak areas were normalized against those of the internal standards. The resultant relative area values were further normalized by the sample weight. Annotation tables were produced from the CE–TOFMS measurements of standard compounds, and were aligned with the datasets according to their similar m/z values and normalized MT values.

Statistical analysis

In this study, all computations were performed with R [22] and the “mseapca” [23] package. A value of 0 was imputed to missing values for the computation of PCA. A metabolite set list was created with reference to the Kyoto Encyclopedia of Genes and Genomes (KEGG) [24], which was partly modified by manual curation. The xml file of the metabolite set list used in this study is included in the “mseapca” package.

Software

Figure 1 show our analytical workflow used to perform the statistical hypothesis testing of the factor loading in PCA and the MSEA with the “mseapca” package. The R package “mseapca” [23] has three major features. The first creates a list of metabolic pathways. This can be generated from two file formats, csv or KEGG’s tar.gz. The csv file is used when your own metabolite set list, created by yourself, is used and KEGG’s tar.gz is used when a metabolite set originating from KEGG’s metabolic pathway is used. A csv file, in which the first column is the name of the metabolic pathway and the second column is the metabolite IDs, is manually created and converted to the list format with the “csv2list” function. A “pathway_class” function converts KEGG’s tar.gz files (e.g., hsa.tar.gz in Homo sapiens) to the list format of the metabolic pathway. KEGG’s tar.gz files can be downloaded from KEGG FTP, with your own license. The “mseapca” package can save a list of metabolic pathways as xml files for future reuse and feature expansion. The “list2xml” function converts the list format of the metabolic pathways to the xml format. This xml format can be saved as an xml file using the “saveXML” function in the “XML” package. The “read_pathway” function can read the created xml file and convert it to a list of metabolic pathways for the computation of MSEA.

Figure 1
figure 1

Analytical workflow for performing statistical hypothesis testing of factor loading in PCA and MSEA with the “mseapca” package.

The second feature is the “pca_scaled” function, with which to perform PCA. A data frame constructed from metabolite IDs and a metabolome data matrix is input for the “pca_scaled” function. Metabolite IDs should be matched with those in the metabolite set list. With this function, the data matrix is automatically scaled to a zero mean and unit variance (autoscaling) for each metabolite. This function can output the PC scores, factor loadings, and p-values and q-values of Benjamini and Hochberg [25], which are the results of the statistical hypothesis testing of factor loading. In this function, “factor loading” is defined as the correlation coefficient between the PC score and each metabolite level.

The third feature is the performance of MSEA. The “msea_ora” function can perform MSEA with ORA [15]. With this function, statistical hypothesis testing of the cross-tabulation is performed with the one-sided Fisher’s exact test. The “msea_sub” function performs MSEA in the same way as GSEA is implemented by Subramanian et al. [16]. Subramanian’s GSEA has two types of random permutation. In one, the class label is randomly permuted and in the other, the metabolites in the metabolite set list are randomly selected to generate the null distribution of the enrichment score. The p-value for the enrichment score can then be computed with both approaches. In the “msea_sub” function, the latter approach is implemented. This procedure corresponds to the “gene set” of the permutation type in the GSEA-P software [26]. A leading-edge subset analysis is also undertaken following the GSEA procedure [25].

The R package “mseapca” is freely available from the CRAN website [23]. See the reference manual for “mseapca” at the CRAN website [23] for more information.

Results

Case study 1: a comparative study of control and 12 h-fasted mice

We describe the use of the statistical hypothesis testing of factor loading in PCA using metabolome data from two studies. The first case study is a comparative analysis of normal and 12 h-fasted mice. Five liver samples each from the control and 12 h-fasted mice were used for the metabolomic analysis and 282 metabolites were identified.

A PCA of these metabolomic data was performed after they had been preprocessed by autoscaling. The scores plot of the PCA (Figure 2(A)) showed that the PC1 scores of the control and fasted mice were negative and positive, respectively. This result suggests that the PC1 score is positively related to the fasting effect. In this case, metabolites that have large positive factor loadings in PC1 tend to increase and those with negative factor loadings tend to decrease during the 12 h fast.

Figure 2
figure 2

Results of PCA in a comparative study of normal and 12 h-fasted mice. (A) Scores plot of PC1 and PC2. Symbols: (○) control mice; (●) 12 h-fasted mice. (B) Factor loading plot for PC1. Metabolites are sorted in ascending order of the value for factor loading. The dotted line shows the significance level at p < 0.05.

Statistical hypothesis testing for factor loading in PC1 was performed, and 136 metabolites were statistically significant at p < 0.05 (Additional file 1: Table S1). An MSEA with ORA for factor loading was performed independently for the significantly positive and negative metabolites (Table 1). Purine metabolism was significantly activated in the 12 h-fasted mice at p < 0.05. Glycolysis was significantly suppressed at q < 0.05 and the pentose phosphate pathway tricarboxylic acid (TCA) cycle, cysteine metabolism, and polyamine metabolism were significantly suppressed in the 12 h-fasted mice at p < 0.05. MSEA using Subramanian’s approach was also performed as a reference (Table 1). Histidine metabolism and purine metabolism had negative normalized enrichment scores (NESs), so were significantly activated in the 12 h-fasted mice at p < 0.05. Glycolysis had a positive NES, so was significantly suppressed at q < 0.05 and the pentose phosphate pathway, TCA cycle, and polyamine metabolism were significantly suppressed in the 12 h-fasted mice at p < 0.05. These results suggest that these two MSEA approaches are largely consistent.

Table 1 Results of MSEA in a comparative study of normal and 12 h-fasted mice

The results of the MSEA of factor loading in PC1 suggested that the processes of energy metabolism, including glycolysis and the TCA cycle, decreased during the 12 h fast. The suppression of these metabolic pathways suggests that glycogen is drained and glucose supplementation is restricted in the mouse liver during a 12 h fast. The mean bodyweight of the normal mice was 22.20 ± 0.84 g (mean ± SD) and that of the 12 h-fasted mice was 20.0 ± 0.71 g, indicating a statistically significant reduction (p = 0.0021) during the 12 h fast, according to Welch’s t test. This result suggests that the suppression of energy metabolism results in a reduction in bodyweight.

Case study 2: a comparative study of diabetic model mice with and without pioglitazone treatment

The db/db mouse is a model of obesity, diabetes, and dyslipidemia, in which leptin receptor activity is deficient because the mice are homozygous for a point mutation in the leptin receptor gene [27]. Pioglitazone reduces insulin resistance in the liver and reduces glucose levels in the blood [28, 29]. Therefore, it is used for the treatment of diabetes.

We compared the metabolomic data for mouse liver samples from db/db mice treated with or without pioglitazone to examine the effects of administering pioglitazone to diabetic mice. Five liver samples from the untreated db/db mice and five from db/db mice administered pioglitazone were used for the metabolomic analysis and 275 metabolites were identified.

We performed PCA on data preprocessed with autoscaling in a comparative study of the db/db mice treated with and without pioglitazone. The scores plot is shown in Figure 3(A). A perfect separation between the groups was achieved on the first PC axis, and we therefore focused on this axis. The PC1 scores for the db/db mice with and without pioglitazone treatment showed positive and negative values, respectively, suggesting that the PC1 score is positively related to the effect of pioglitazone.

Figure 3
figure 3

Results of PCA in a comparative study of db / db mice treated with and without pioglitazone. (A) Scores plot of PC1 and PC2. Symbols: (○) diabetic model mice (db/db mice) without pioglitazone; (●) db/db mice administered pioglitazone. (B) Factor loading plot for PC1. Metabolites are sorted in ascending order of the value for factor loading. The dotted line shows the significance level at p < 0.05.

Statistical hypothesis testing of the factor loading in PC1 was performed, and 66 metabolites were statistically significant at p < 0.05 (Additional file 1: Table S2). An MSEA of factor loading was performed as in the previous section (Table 2). In both MSEA with ORA and using Subramanian’s approach, glycolysis was the only statistically significant factor activated by pioglitazone at p < 0.05. Pioglitazone is a peroxisome proliferator-activated receptor (PPAR)-activating agent. Lee et al. [30] suggested that PPARδ ameliorates hyperglycemia by increasing the glucose flux through the regulation of gene expression. The administration of pioglitazone is known to reduce glucose levels in the blood [28, 29].

Table 2 Results of MSEA in a comparative study of db / db mice treated with and without pioglitazone

In the present study, the glucose blood level was 369.6 ± 64.8 mg/dL (mean ± SD) in the db/db mice and 332.8 ± 131.9 mg/dL in the db/db mice administered pioglitazone. The reduction in blood glucose was not significant (p = 0.596) after the administration of pioglitazone, according to Welch’s t test. This result suggests that a metabolomic analysis can detect subtle changes in the glycolysis pathway caused by the administration of pioglitazone, although confirmatory experiments (e.g., evaluating the expression levels of PPARα) might be required to confirm our biological inferences.

Discussion

Metabolite selection by statistical hypothesis testing of the factor loading in PCA has several advantages. This approach was applied to metabolomic data in two case studies of mouse liver samples. In the first case study, 136 of 282 metabolites correlated significantly with the PC1 score associated with the groups, and in the second study, 66 of 275 metabolites showed such a correlation. Thus, the number of significant metabolites was two-fold higher in the first case study than in the second case study. This suggests that to set a previously determined number of metabolites (e.g., the top 10 metabolites) is inappropriate because the number of significant metabolites differs in each study. We also note the relationship between the contribution ratio and the number of significant metabolites for factor loading in PCA. The ratio of the number of significant metabolites to all the detected metabolites was 0.482 (= 136/282) in the first case study and 0.24 (= 66/275) in the second case study. The contribution ratio in PC1 was 40.5% in the first case study and 24.2% in the second case study. This result suggests that an implicit relationship exists between the contribution ratio and the number of significant metabolites in samples of the same size.

In both case studies, we focused on PC1 (Figure 2 and Figure 3), which differed between the groups. We then compared this approach with ordinary statistical hypothesis testing, such as with a t test. According to Welch’s t test, 122 metabolites were significant in the first case study and 56 metabolites were significant in the second case study. When we compared the metabolites selected with Welch’s t test and those selected with the statistical test of factor loading, 112 metabolites and 47 metabolites in case studies 1 and 2, respectively, were common to both studies. Most significant metabolites were selected with both approaches. This fact suggests that the statistical testing of factor loading in PCA can be readily used to select metabolites as a special case of the two-sample test when the difference between the groups appears in the PC score. The result of MSEA for statistically significant metabolites with positive t statistics on Welch’s t test showed that purine metabolism was statistically significant at p < 0.05, and the negative t statistics showed that glycolysis and the pentose phosphate pathway were statistically significant at p < 0.05 (Additional file 1: Table S3). In a positive case, the statistically significant metabolic pathway identified by MSEA was consistent with both approaches. In a negative case, the statistically significant metabolic pathway was partly consistent, but the number of statistically significant metabolic pathways was fewer with Welch’s t test than with the statistical hypothesis testing of factor loading in PCA. These results depend on the result that the number of significant metabolites was almost same with Welch’s t test (51 metabolites) and with statistical hypothesis testing of factor loading in PCA (49 metabolites) in positive cases, but was fewer with Welch’s t test (71 metabolites) than with the statistical hypothesis testing of factor loading in PCA (87 metabolites) in negative cases.

In metabolomics, complex studies (e.g., the fermentation process by a microorganism [31]) can involve various time points or groups, or the administration of drugs at various concentrations under various conditions [32]. In these complex studies, a statistical method for testing should be selected from various methods, such as analysis of variance and multiple comparison procedures, depending on the situation. In our analytical workflow of PCA, a specific PC score was selected and we simply performed the statistical hypothesis testing for factor loading corresponding to this selected PC under any circumstances. The statistical testing of factor loading in PCA can be widely used, not only in two-sample studies but also in various studies when an association between the PC score and the phenotype can be found.

MSEA was performed for significant metabolites and acceptable biological inferences were drawn in the two case studies. With the conventional approach, a previously determined number of metabolites (e.g., 10 metabolites) from which to draw biological inferences is subjectively selected. Using this approach, MSEA was performed for the top 10 metabolites with large negative factor loadings in the first case study. No significant metabolic pathway was detected at p < 0.05 (data not shown). In this case, 10 metabolites was too small a sample from which to draw acceptable biological inferences. Even if significant metabolic pathways are detected when MSEA is applied to insignificant metabolites, it is doubtful whether these metabolic pathways are statistically or biologically meaningful. To draw unbiased biological inferences using a statistical analysis, significant metabolites must be selected with statistical tests of factor loading when using PCA.

In this study, two MSEA methods were used, with either ORA or Subramanian’s approach. As a way of using factor loading for GSEA, Fehrmann et al. [33] designated the PC score associated with phenotype as the “transcriptional system regulator” (TSR) score, and factor loading corresponding to the TSR score is used for GSEA with Subramanian’s approach. This method directly uses factor loading, but does not use the results of statistical hypothesis testing of factor loading. As far as we know, an approach combining GSEA or MSEA with the results of statistical hypothesis testing of factor loading in PCA has not been reported until now.

The results of both MSEA with ORA or Subramanian’s approach produced almost the same results in our two case studies. In a comparison of the computational time required by the two MSEA approaches, the first case study required 441.43 seconds using Subramanian’s approach and 0.83 seconds with ORA. This result shows that MSEA with ORA has the advantage of lower computational cost. Conventionally, PCA and MSEA can be computed independently in different steps or with different software. There has been no software that can compute the sequence from PCA and statistical hypothesis testing of factor loading to MSEA. Therefore, we developed the R package “mseapca” to compute the whole sequence from the statistical hypothesis testing of factor loading in PCA to MSEA.

Conclusions

In metabolomics, the targeted metabolites from which biological inferences are drawn are selected subjectively when factor loading is used in PCA. We have proposed a statistical procedure to select metabolites using the statistical hypothesis testing of factor loading in PCA. These significant metabolites are then used to identify significant metabolic pathways with MSEA. We applied this approach to two metabolomic datasets from mouse liver samples, with acceptable results in terms of previous biological knowledge. We developed an R package “mseapca” to allow the ready use of our approach. Many researchers use PCA in metabolomics. Our approach can improve the existing use of PCA in this field and is expected to be widely applicable to other omics data, including gene expression and proteomic data.