As described in the GC-EI-MS tutorial, CluMSID can also be used to analyse low resolution data – although using low resolution data comes at a cost.
In this example, we will use a similar sample (1uL Pseudomonas aeruginosa PA14 cell extract) as in the General Tutorial, measured with similar chromatography but on a different mass spectrometer, a Bruker amaZon ion trap instrument operated in ESI-(+) mode with auto-MS/MS. In addition to introducing a workflow for low resolution LC-MS/MS data, this example also demonstrates that CluMSID can work with data from different types of mass spectrometers.
We load the file from the CluMSIDdata
package:
The extraction of spectra works the same way as with high resolution LC-MS/MS data:
Like in the GC-EI-MS example, we have to adjust mz_tolerance
to a much higher value compared to high resolution data, while the retention time tolerance can remain unchanged.
We see that we have similar numbers of spectra as in the General Tutorial, because we tried to keep all parameters except for the mass spectrometer type comparable.
As we do not have low resolution spectral libraries at hand, we skip the integration of previous knowledge on feature identities in this example and generate a distance matrix right away:
Starting from this distance matrix, we can use all the data exploration functions that CluMSID
offers.
When we now make an MDS plot, we learn that the similarity data is very different from the comparable high resolution data:
To get a better overview of the data and the general similarity behaviour, we create a heat map of the distance matrix:
We clearly see that the heat map is generally a lot “warmer” than in the General Tutorial (an intuition that is supported by the histogram in the top-left corner), i.e. we have a higher general degree of similarity between spectra. That is not surprising as the m/z information has much fewer levels than in high resolution data and fragments of different sum formula are more likely to have indistinguishable mass-to-charge ratios.
We also see that some more or less compact clusters can be identified. This is easier to inspect in the dendrogram visualisation:
In conclusion, CluMSID is capable of processing low resolution LC-MS/MS data and if high resolution data is not available, it can be very useful to provide an overview of spectral similarities in low resolution data, thereby helping metabolite annotation if some individual metabolites can be identified by comparison to authentic standards. However, concerning feature annotation, high resolution methods should always be favoured for the many benefits they provide.
sessionInfo()
#> R version 4.1.1 (2021-08-10)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 20.04.3 LTS
#>
#> Matrix products: default
#> BLAS: /home/biocbuild/bbs-3.14-bioc/R/lib/libRblas.so
#> LAPACK: /home/biocbuild/bbs-3.14-bioc/R/lib/libRlapack.so
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_GB LC_COLLATE=C
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#>
#> attached base packages:
#> [1] stats4 stats graphics grDevices utils datasets methods
#> [8] base
#>
#> other attached packages:
#> [1] magrittr_2.0.1 metaMSdata_1.29.0 metaMS_1.30.0
#> [4] CAMERA_1.50.0 xcms_3.16.0 MSnbase_2.20.0
#> [7] ProtGenerics_1.26.0 S4Vectors_0.32.0 mzR_2.28.0
#> [10] Rcpp_1.0.7 BiocParallel_1.28.0 Biobase_2.54.0
#> [13] BiocGenerics_0.40.0 CluMSIDdata_1.9.0 CluMSID_1.10.0
#>
#> loaded via a namespace (and not attached):
#> [1] backports_1.2.1 Hmisc_4.6-0
#> [3] plyr_1.8.6 igraph_1.2.7
#> [5] lazyeval_0.2.2 splines_4.1.1
#> [7] GenomeInfoDb_1.30.0 ggplot2_3.3.5
#> [9] digest_0.6.28 foreach_1.5.1
#> [11] htmltools_0.5.2 fansi_0.5.0
#> [13] checkmate_2.0.0 cluster_2.1.2
#> [15] doParallel_1.0.16 tzdb_0.1.2
#> [17] limma_3.50.0 readr_2.0.2
#> [19] sna_2.6 matrixStats_0.61.0
#> [21] vroom_1.5.5 MsFeatures_1.2.0
#> [23] jpeg_0.1-9 colorspace_2.0-2
#> [25] xfun_0.27 dplyr_1.0.7
#> [27] crayon_1.4.1 RCurl_1.98-1.5
#> [29] jsonlite_1.7.2 graph_1.72.0
#> [31] impute_1.68.0 survival_3.2-13
#> [33] iterators_1.0.13 ape_5.5
#> [35] glue_1.4.2 gtable_0.3.0
#> [37] zlibbioc_1.40.0 XVector_0.34.0
#> [39] DelayedArray_0.20.0 DEoptimR_1.0-9
#> [41] scales_1.1.1 vsn_3.62.0
#> [43] DBI_1.1.1 GGally_2.1.2
#> [45] viridisLite_0.4.0 htmlTable_2.3.0
#> [47] clue_0.3-60 bit_4.0.4
#> [49] foreign_0.8-81 preprocessCore_1.56.0
#> [51] Formula_1.2-4 MsCoreUtils_1.6.0
#> [53] htmlwidgets_1.5.4 httr_1.4.2
#> [55] gplots_3.1.1 RColorBrewer_1.1-2
#> [57] ellipsis_0.3.2 farver_2.1.0
#> [59] pkgconfig_2.0.3 reshape_0.8.8
#> [61] XML_3.99-0.8 nnet_7.3-16
#> [63] sass_0.4.0 utf8_1.2.2
#> [65] labeling_0.4.2 tidyselect_1.1.1
#> [67] rlang_0.4.12 munsell_0.5.0
#> [69] tools_4.1.1 cli_3.0.1
#> [71] dbscan_1.1-8 generics_0.1.1
#> [73] statnet.common_4.5.0 evaluate_0.14
#> [75] stringr_1.4.0 fastmap_1.1.0
#> [77] mzID_1.32.0 yaml_2.2.1
#> [79] bit64_4.0.5 knitr_1.36
#> [81] robustbase_0.93-9 caTools_1.18.2
#> [83] purrr_0.3.4 RANN_2.6.1
#> [85] ncdf4_1.17 RBGL_1.70.0
#> [87] nlme_3.1-153 compiler_4.1.1
#> [89] rstudioapi_0.13 plotly_4.10.0
#> [91] png_0.1-7 affyio_1.64.0
#> [93] MassSpecWavelet_1.60.0 tibble_3.1.5
#> [95] bslib_0.3.1 stringi_1.7.5
#> [97] highr_0.9 lattice_0.20-45
#> [99] Matrix_1.3-4 vctrs_0.3.8
#> [101] pillar_1.6.4 lifecycle_1.0.1
#> [103] BiocManager_1.30.16 jquerylib_0.1.4
#> [105] MALDIquant_1.20 data.table_1.14.2
#> [107] bitops_1.0-7 GenomicRanges_1.46.0
#> [109] R6_2.5.1 latticeExtra_0.6-29
#> [111] pcaMethods_1.86.0 affy_1.72.0
#> [113] network_1.17.1 KernSmooth_2.23-20
#> [115] gridExtra_2.3 IRanges_2.28.0
#> [117] codetools_0.2-18 MASS_7.3-54
#> [119] gtools_3.9.2 assertthat_0.2.1
#> [121] SummarizedExperiment_1.24.0 GenomeInfoDbData_1.2.7
#> [123] hms_1.1.1 parallel_4.1.1
#> [125] grid_4.1.1 rpart_4.1-15
#> [127] tidyr_1.1.4 coda_0.19-4
#> [129] rmarkdown_2.11 MatrixGenerics_1.6.0
#> [131] base64enc_0.1-3