-
Notifications
You must be signed in to change notification settings - Fork 0
/
match-standards-serum-mix13.Rmd
1970 lines (1422 loc) · 68.8 KB
/
match-standards-serum-mix13.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
title: "Identifying mix13 standards in serum"
author: "Marilyn De Graeve, Andrea Vicini, Vinicius Verri Hernandes, Johannes Rainer"
output:
rmarkdown::html_document:
highlight: pygments
toc: true
toc_float: true
toc_depth: 3
fig_width: 5
---
```{r, include = FALSE, cached = FALSE}
knitr::read_chunk("R/match-standards-chunks.R")
MIX <- 13
MATRIX <- "Serum"
POLARITY <- "POS"
## settings to find MS2 spectra for features. Be rather inclusive here.
FEATURE_MS2_PPM <- 20
FEATURE_MS2_TOLERANCE <- 0.05
```
```{r, libraries, echo = FALSE, message = FALSE}
```
```{r, general-settings, echo = FALSE, message = FALSE}
```
**Current version: 0.10.1, 2024-10-29.**
# Introduction
Mixes of standards have been solved in serum or added to human serum sample
pools in two different concentration and these samples were measured with the
LC-MS setup from Eurac (used also to generate the CHRIS untargeted metabolomics
data). Assignment of retention time and observed ion can be performed for each
standard based on MS1 information such as expected m/z but also based on the
expected difference in signal between samples with low and high concentration of
the standards. Finally, experimental fragment spectra provide the third level of
evidence. Thus, the present data set allows to annotate features to standards
based on 3 levels of evidence: expected m/z, difference in measured intensity
and MS2-based annotation.
A detailed description of the approach is given in
[match-standards-introduction.Rmd](match-standards-introduction.Rmd).
The list of standards that constitute the present sample mix are listed below
along with the expected retention time and the most abundant adduct for positive
and negative polarity as defined manually in a previous analysis by Mar
Garcia-Aloy.
```{r, standards-table, echo = FALSE, results = "asis"}
```
# Data import
We next load the data and split it according to matrix and polarity.
```{r, data-import}
```
We next also load the reference databases we will use to compare the
experimental MS2 spectra against. Below we thus load HMDB and MassBank data. We
create in addition *neutral loss* versions of the databases. Since HMDB does not
provide precursor m/z values we assume the fragment spectra to represent `[M+H]+`
ions (respectively `[M-H]-` ions for negative polarity) and add the m/z for
these adducts as *precursor m/z*.
```{r, load-reference-databases, message = FALSE}
```
```{r, setup-ion-db, message = FALSE, echo = FALSE}
```
# Initial evaluation of available MS2 data
Before performing the actual analysis that involves chromatographic peak
detection and evaluation of feature abundances, we compare all experimental MS2
spectra against the reference libraries. This provides already a first hint for
which standards a valid MS2 spectrum was recorded (and hence would allow
annotation based on evidence 3) and what related retention time might be.
We first extract all MS2 spectra from the respective data files and process them
by first removing all peaks with an intensity below 5% of the highest peak
signal, then scaling all intensities to a value range between 0 and 100 and
finally remove all MS2 spectra with less than 2 peaks.
```{r prepare-all-ms2}
fls <- fileNames(data_all)[data_all$polarity == "POS"]
```
```{r, all-ms2}
```
We next match these spectra against all reference spectra from HMDB for the
standards in `r MIX_NAME`.
The settings for the matching are defined below. These will be used for all MS2
spectra similarity calculations. All matching spectra with a similarity larger
0.7 are identified.
```{r, compare-spectra-param}
```
Positive polarity:
Standards for which no MS2 spectrum in HMDB is present are listed in
the table below.
```{r, echo = FALSE, results = "asis"}
tmp <- std_dilution[!(std_dilution$HMDB %in% hmdb_std$compound_id), ]
pandoc.table(tmp[, c("name", "HMDB", "formula")], style = "rmarkdown",
caption = "Standards for which no reference spectrum is available")
```
The table below lists all standards and the number of matching reference spectra
(along with their retention times).
```{r, table-all-ms2-hmdb, echo = FALSE, results = "asis"}
```
Negative polarity:
We repeat the same analysis for the negative polarity data (code not shown
again).
```{r, echo = FALSE}
fls <- fileNames(data_all)[data_all$polarity == "NEG"]
```
```{r, all-ms2, echo = FALSE}
```
```{r, table-all-ms2-hmdb, echo = FALSE, results = "asis"}
```
We next perform the full analysis of the data set involving MS1 and MS2 data.
# Serum, positive polarity
We first perform the analysis on the samples with the standards solved in pure
serum acquired in positive polarity mode.
```{r}
POLARITY <- "POS"
data <- filterFile(data_all, which(data_all$polarity == POLARITY))
hmdb <- hmdb_pos
hmdb_nl <- hmdb_pos_nl
```
## Data pre-processing
We perform the pre-processing of our data set which consists of the
chromatographic peak detection followed by a peak refinement step to reduce peak
detection artifacts, the correspondence analysis to group peaks across samples
and finally the gap-filling to fill in missing peak data from samples in which
no chromatographic peak was detected. For details on settings please refer to
the analysis of *mix 01* samples.
```{r, preprocessing, eval = !file.exists(paste0(RDATA_PATH, "processed_data_", POLARITY, ".RData")), message = FALSE}
```
```{r, echo = FALSE}
load(paste0(RDATA_PATH, paste0("processed_data_", POLARITY, ".RData")))
data_FS <- filterFile(data, which(data$mode == "FS"),
keepFeatures = TRUE)
```
## Signal intensity difference
We compute the difference in (log2) signals between samples with high and low
concentration of the standards and calculate the p-value for this difference
using the Student's t-test.
```{r, abundance-difference}
```
## Identification of features matching standards
We now identify all features matching the any of the pre-defined set of adducts
for the standards of mix `r MIX`. Matching features are further subsetted to
those that show an at least twice as high signal in samples with high
concentration compared to those with low concentrations. Also, features with a
signal in low concentration but no detectable signal in high concentration are
removed. Lastly, from mixture 12 onward the maximum retention time deviation
from the expected 'Target_RT' is less than 10 seconds.
```{r, define-adducts-pos}
```
```{r, match-features}
```
For most of the standards (`r length(unique(mD$target_name))` out of
`r nrow(std_dilution)`) in mix `r MIX` at least one feature was found
matching the standards adducts' m/z.
```{r, table-standard-no-feature, results = "asis", echo = FALSE}
```
In the next sections we investigate for each standard which assignment would be
the correct one or, for those for which no signal was detected, why that was the
case.
## Standards evaluation (all, incl not found/matched)
While for some standards a matching feature was found we still need to evaluate
whether this matching is correct. For each standard we thus first evaluate the
EICs for all matching features, then we match their MS2 spectra (if available)
against reference libraries. To ensure correct assignment of a feature, its
retention time and eventually related MS2 spectra, we consider the following
criteria to determine the annotation confidence:
- feature(s) was/were found with m/z matching those of adduct(s) of the
standard.
- signal is higher for samples with higher concentration.
- MS2 spectra matches reference spectra for the standard (if available).
- MS2 spectra don't match MS2 spectra of other compounds.
### N-Acetyl-beta-alanine
```{r, echo = FALSE}
std <- "N-Acetyl-beta-alanine"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-N-Acetyl-beta-alanine-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-N-Acetyl-beta-alanine-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-N-Acetyl-beta-alanine-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
#### Summary
- No MS2 reference spectra available in HMDB and MassBank.
- D for:
| **FT00672** | 114.1 | 1.804 | 51.93 | 37 | FG.003.001 | [M+H-H2O]+ | 2 | 19.36 | 17.25 |
| **FT00673** | 114.1 | 2.864 | 37.85 | 37 | FG.001.001 | [M+H-H2O]+ | 1 | 17.32 | 16.5 |
| **FT00694** | 115 | 0.7596 | 29.25 | 37 | FG.004.001 | [M+H-NH3]+ | 0 | 11.78 | 10.78 |
| **FT01049** | 132.1 | 0.09946 | 37.83 | 37 | FG.001.001 | [M+H]+ | 0 | 18.19 | 16.9 |
| **FT01051** | 132.1 | 0.1462 | 52.11 | 37 | FG.003.001 | [M+H]+ | 2 | 18.94 | 16.96 |
| **FT01052** | 132.1 | 1.523 | 173.5 | 37 | FG.002.001 | [M+H]+ | 0 | 16.73 | 15.56 |
| **FT01541** | 154 | 0.1341 | 50.8 | 37 | FG.003.001 | [M+Na]+ | 1 | 15.87 | 15.06 |
### Acetylneuraminic Acid
```{r, echo = FALSE}
std <- "Acetylneuraminic Acid"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Acetylneuraminic Acid-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-Acetylneuraminic Acid-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-Acetylneuraminic Acid-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-Acetylneuraminic Acid-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.5, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-Acetylneuraminic Acid-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.7,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- A for:
| **FT05055** | 310.1 | 1.838 | 178.9 | 180 | FG.001.001 | [M+H]+ | 3 | 18.52 | 14.29 |
- B for:
| **FT04433** | 292.1 | 2.007 | 191.3 | 180 | FG.002.001 | [M+H-H2O]+ | 2 | 19.58 | 14.62 |
| **FT05056** | 310.1 | 1.897 | 193.3 | 180 | FG.002.002 | [M+H]+ | 2 | 19.24 | NA |
- D for:
| **FT04452** | 293.1 | 23.95 | 194.8 | 180 | FG.004.001 | [M+H-NH3]+ | 0 | 11.09 | 4.685 |
| **FT05058** | 310.1 | 3.234 | 164.8 | 180 | FG.005.001 | [M+H]+ | 0 | 13.53 | 8.828 |
| **FT05642** | 332.1 | 0.2722 | 179.3 | 180 | FG.001.001 | [M+Na]+ | 4 | 16.77 | 14.18 |
| **FT06063** | 348.1 | 1.309 | 178 | 180 | FG.001.001 | [M+K]+ | 2 | 13.78 | 11.9 |
| **FT06065** | 348.1 | 0.9227 | 190.4 | 180 | FG.002.001 | [M+K]+ | 0 | 13.88 | 7.27 |
| **FT06196** | 354.1 | 1.225 | 179.1 | 180 | FG.001.001 | [M+2Na-H]+ | 1 | 13.43 | 12.12 |
- FT06975 good EIC but probably other compound, high ppm
- Reference MS2: F08.S0691 | FT05055
### Dopamine
```{r, echo = FALSE}
std <- "Dopamine"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Dopamine-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-Dopamine-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-Dopamine-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-Dopamine-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.95, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-Dopamine-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.95,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- B for:
| **FT01546** | 154.1 | 0.4762 | 141.6 | 140 | FG.001.001 | [M+H]+ | 2 | 21.45 | 17.95 |
| **FT01142** | 137.1 | 1.075 | 141.3 | 140 | FG.001.001 | [M+H-NH3]+ | 2 | 20.89 | 17.31 |
| **FT01146** | 137.1 | 3.3 | 48.13 | 140 | FG.003.001 | [M+H-NH3]+ | 3 | 12.45 | 7.954 |
| **FT01143** | 137.1 | 1.126 | 36.94 | 140 | FG.002.001 | [M+H-NH3]+ | 1 | 12.51 | 9.655 |
- bad EICs but good MS2 matches: FT01547, FT01548, FT01550, FT01145, FT01147
- Reference MS2: FT08081 `[M+H]+`: F08.S0507, F07.S0524 (high confidence)
- D for:
| **FT01895** | 171.1 | 17.88 | 32.3 | 140 | FG.002.001 | [M+NH4]+ | 0 | 11.45 | 10.08 |
| **FT02069** | 176.1 | 12.73 | 35.25 | 140 | FG.002.001 | [M+Na]+ | 1 | 18.5 | 17 |
| **FT01125** | 136.1 | 0.5747 | 35.53 | 140 | FG.002.001 | [M+H-H2O]+ | 0 | 11.91 | 10.22 |
| **FT02506** | 198.1 | 7.213 | 35.4 | 140 | FG.002.001 | [M+2Na-H]+ | 0 | 9.71 | 6.632 |
| **FT03142** | 230 | 0.1525 | 141.3 | 140 | FG.001.001 | [M+2K-H]+ | 0 | 13.16 | 8.027 |
### Fructose-1,6-Diphosphate
```{r, echo = FALSE}
std <- "Fructose-1,6-Diphosphate"
```
```{r, table-feature-matches-Fructose-1,6-Diphosphate, results = "asis", echo = FALSE, message = FALSE}
feature_table <- as.data.frame(mD[mD$target_name == std, ])
pandoc.table(feature_table, style = "rmarkdown",
split.tables = Inf,
caption = paste0("Feature to standards matches for ", std))
```
#### Summary
- No MS2 reference spectra available in HMDB and MassBank.
- previous results:
- < D for, very high rt dev:
| | mzmed | ppm_error | rtmed | target_RT | feature_group | adduct | n_ms2 | mean_high | mean_low |
|:-----------:|:-----:|:---------:|:-----:|:---------:|:-------------:|:----------:|:-----:|:---------:|:--------:|
| **FT05422** | 323 | 17.17 | 122.4 | 330 | FG.002.001 | [M+H-H2O]+ | 4 | 18.43 | 16.85 |
| **FT01880** | 171 | 0.1589 | 202.3 | 330 | FG.001.001 | [M+2H]2+ | 0 | 14.53 | 12.26 |
### Ibuprofen
```{r, echo = FALSE}
std <- "Ibuprofen"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Ibuprofen-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
#### Summary
- No MS2 spectra available.
- Results previous:
- D for:
| | mzmed | ppm_error | rtmed | target_RT | feature_group | adduct | n_ms2 | mean_high | mean_low |
|:-----------:|:-----:|:---------:|:-----:|:---------:|:-------------:|:----------:|:-----:|:---------:|:--------:|
| **FT02364** | 189.1 | 0.3078 | 32.39 | 31 | FG.001.001 | [M+H-H2O]+ | 0 | 10.61 | 9.182 |
| **FT04197** | 283 | 12.68 | 194.5 | 31 | FG.011.001 | [M+2K-H]+ | 0 | 13.08 | 9.801 |
- MS2 match but bad EIC and high ppm: FT02358
### Indoleacetic acid
```{r, echo = FALSE}
std <- "Indoleacetic acid"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Indoleacetic acid-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-Indoleacetic acid-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-Indoleacetic acid-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-Indoleacetic acid-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.5, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-Indoleacetic acid-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.7,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- B for:
| **FT02069** | 176.1 | 0.9298 | 35.25 | 35 | FG.001.001 | [M+H]+ | 1 | 18.5 | 17 |
- D for:
| **FT02506** | 198.1 | 4.935 | 35.4 | 35 | FG.001.001 | [M+Na]+ | 0 | 9.71 | 6.632 |
### 1-Methylhistidine
```{r, echo = FALSE}
std <- "1-Methylhistidine"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-1-Methylhistidine-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-1-Methylhistidine-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-1-Methylhistidine-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-1-Methylhistidine-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.1, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-1-Methylhistidine-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.1,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- D for:
| **FT01854** | 170.1 | 1.692 | 182.5 | 182 | FG.001.001 | [M+H]+ | 4 | 22.6 | 13.55 |
| **FT02414** | 192.1 | 2.539 | 182.6 | 182 | FG.002.001 | [M+Na]+ | 1 | 15.6 | 5.131 |
| **FT01499** | 152.1 | 0.5286 | 182.5 | 182 | FG.001.001 | [M+H-H2O]+ | 1 | 11.02 | 1.615 |
| **FT01519** | 153.1 | 2.678 | 182.6 | 182 | FG.002.001 | [M+H-NH3]+ | 0 | 11 | 2.432 |
| **FT01856** | 170.1 | 1.511 | 207.3 | 182 | FG.004.001 | [M+H]+ | 0 | 16.62 | 7.942 |
| **FT01859** | 170.1 | 1.617 | 196.8 | 182 | FG.007.001 | [M+H]+ | 1 | 17.77 | 9.079 |
| **FT02750** | 208 | 0.5569 | 182.6 | 182 | FG.002.001 | [M+K]+ | 0 | 11.88 | 3.893 |
### 8-Oxo-2-Deoxyguanosine
```{r, echo = FALSE}
std <- "8-Oxo-2-Deoxyguanosine"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-8-Oxo-2-Deoxyguanosine-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-8-Oxo-2-Deoxyguanosine-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-8-Oxo-2-Deoxyguanosine-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-8-Oxo-2-Deoxyguanosine-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.1, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-8-Oxo-2-Deoxyguanosine-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.1,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- D for:
| **FT03792** | 266.1 | 1.212 | 141 | 159 | FG.002.001 | [M+H-H2O]+ | 1 | 15.06 | 11.39 |
| **FT04227** | 284.1 | 2.468 | 189.5 | 159 | FG.004.001 | [M+H]+ | 0 | 9.749 | 5.253 |
| **FT04843** | 306.1 | 0.4285 | 159.7 | 159 | FG.001.001 | [M+Na]+ | 2 | 19.03 | 15.94 |
| **FT05546** | 328.1 | 0.6405 | 158.8 | 159 | FG.001.001 | [M+2Na-H]+ | 1 | 17.46 | 14.07 |
| **FT04657** | 301.1 | 12.39 | 35.3 | 159 | FG.005.001 | [M+NH4]+ | 0 | 14.37 | 10.43 |
### Pantothenic Acid
```{r, echo = FALSE}
std <- "Pantothenic Acid"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Pantothenic Acid-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-Pantothenic Acid-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-Pantothenic Acid-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-Pantothenic Acid-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.8, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-Pantothenic Acid-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.8,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- B for:
| **FT02951** | 220.1 | 0.9772 | 38.51 | 38 | FG.002.001 | [M+H]+ | 4 | 20.94 | 19.26 |
| **FT02952** | 220.1 | 0.5312 | 61.84 | 38 | FG.001.001 | [M+H]+ | 3 | 21.96 | 19.51 |
- D for:
| **FT02573** | 202.1 | 1.569 | 38.49 | 38 | FG.002.001 | [M+H-H2O]+ | 3 | 16.99 | 14.77 |
| **FT02574** | 202.1 | 1.629 | 61.84 | 38 | FG.001.001 | [M+H-H2O]+ | 2 | 18.52 | 16.14 |
| **FT03601** | 258.1 | 0.7238 | 38.77 | 38 | FG.002.001 | [M+K]+ | 1 | 14.11 | 12.43 |
| **FT04519** | 296 | 0.9024 | 78.21 | 38 | FG.006.001 | [M+2K-H]+ | 1 | 15.03 | 13.64 |
- nice EIC but other compound: FT03323, FT03325
### Phenylacetic acid
```{r, echo = FALSE}
std <- "Phenylacetic acid"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below
(peaks with an intensity below 5% of the maximum peak and spectra with less
than 2 peaks were removed).
```{r mix13-serum-pos-Phenylacetic acid-ms2, echo = FALSE}
plot_spectra(std_ms2)
```
We next match the extracted MS2 spectra against the reference spectra for
`r std` from HMDB and MassBank.
Heat maps:
```{r mix13-serum-pos-Phenylacetic acid-ms2-hmdb, echo = FALSE, fig.width = 5, fig.height = 5}
hmdb_id <- std_dilution$HMDB[std_dilution$name == std]
std_hmdb <- Spectra(cdb, filter = ~ compound_id == hmdb_id)
sim <- plot_ms2_similarity_heatmap(std_ms2, std_hmdb, csp)
```
```{r mix13-serum-pos-Phenylacetic acid-ms2-mbank, echo = FALSE, fig.width = 5, fig.height = 5}
std_mbank <- get_mbank(mbank, inchikey = unique(std_hmdb$inchikey))
sim <- plot_ms2_similarity_heatmap(std_ms2, std_mbank, csp)
```
For spectra from untargeted features that match with good similarity to some of
the HMDB reference spectra for `r std`, we show the mirror plots of the best
matches.
Mirror plots (check D -> C or B?):
```{r mix13-serum-pos-Phenylacetic acid-mirror-hmdb, echo = TRUE, fig.cap = "Mirror plots"}
std_ms2_sel <- plot_select_ms2(std_ms2, std_hmdb, 0.1, ppm = csp@ppm,
tolerance = csp@tolerance)
```
```{r mix13-serum-pos-Phenylacetic acid-mirror-mbank, echo = TRUE, fig.cap = "Mirror plots"}
tmp_sel <- plot_select_ms2(std_ms2, std_mbank, 0.1,
ppm = csp@ppm, tolerance = csp@tolerance)
```
In addition we match (**all**) the MS2 spectra for the matched features against
all spectra from HMDB or MassBank identifying reference spectra with a
similarity larger than 0.7. The results (if any spectra matched) are shown in
the two following tables.
Highest confidence matches (check B -> A?):
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, hmdb, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
```{r, echo = FALSE, message = FALSE, results = "asis"}
perform_match(std_ms2, mbank, sv = c("rtime", "target_name", "score"),
name = "target_name", param = csp)
```
#### Summary
- D for:
| **FT01142** | 137.1 | 1.072 | 141.3 | 33 | FG.002.001 | [M+H]+ | 2 | 20.89 | 17.31 |
| **FT01143** | 137.1 | 1.129 | 36.94 | 33 | FG.006.001 | [M+H]+ | 1 | 12.51 | 9.655 |
| **FT01546** | 154.1 | 0.4444 | 141.6 | 33 | FG.002.001 | [M+NH4]+ | 2 | 21.45 | 17.95 |
| **FT00768** | 119 | 3.533 | 141.1 | 33 | FG.002.001 | [M+H-H2O]+ | 2 | 14.89 | 10.45 |
| **FT02168** | 181 | 27.61 | 194.5 | 33 | FG.009.001 | [M+2Na-H]+ | 0 | 12.32 | 3.579 |
?? check TODO
| **FT02824** | 213 | 2.973 | 114.5 | 33 | FG.010.001 | [M+2K-H]+ | 0 | 11.13 | 7.49 |
### Phosphorylcholine
```{r, echo = FALSE}
std <- "Phosphorylcholine"
```
```{r, table-feature-matches, results = "asis", echo = FALSE, message = FALSE}
```
Many features have been assigned to this standard based on m/z matching. Based
on their retention times, these seem however to represent ions from different
compounds.
We next plot the EIC for the assigned feature and visually inspect these.
EICs (check D?):
```{r, echo = FALSE}
plot_eics(data, std, feature_table, "WP", std_ms2)
```
The cleaned MS2 spectra for the features matched to `r std` are shown below