@@ -1323,6 +1323,7 @@ f[f != "QC"] <- NA
1323
1323
ref <- filterFeatures(ref, PercentMissingFilter(threshold = 0, f = f))
1324
1324
ref_mz_rt <- featureDefinitions(ref)[, c("mzmed","rtmed")]
1325
1325
head(ref_mz_rt)
1326
+ nrow(ref_mz_rt)
1326
1327
```
1327
1328
1328
1329
This is what the ` lamas ` input should look like for alignment. In terms of
@@ -1396,29 +1397,45 @@ abline(v = mtch[[1]]$obs)
1396
1397
```
1397
1398
1398
1399
The overlay of BPC above provides insight into the correlation between accurate
1399
- alignment and the presence of peaks matching with ` lamas. ` Furthermore, a more
1400
- detailed examination of the matching and the model used for fitting each file
1401
- is possible. Numerical information can be obtained using the
1400
+ alignment and the presence of peaks matching with ` lamas ` . For this particular
1401
+ sample no chromatographic peaks were matched to the ` lamas ` between 2500 and
1402
+ 3000 seconds and hence the alignment in that region was not good. For the second
1403
+ file, chrom peaks could also be matched in that region resulting in a better
1404
+ alignment.
1405
+
1406
+ ``` {r}
1407
+ par(mfrow = c(1, 1))
1408
+ plot(bpc[1, 2], col = "#00000080", main = "Distribution CP matched to Lamas")
1409
+ points(rtime(bpc_tst_adj[1, 2]), intensity(bpc_tst_adj[1, 2]), type = "l",
1410
+ col = "#0000ff80")
1411
+ grid()
1412
+ abline(v = mtch[[2]]$obs)
1413
+ ```
1414
+
1415
+ Furthermore, a more detailed examination of the matching and the model used for
1416
+ fitting each file is possible. Numerical information can be obtained using the
1402
1417
` summarizeLamaMatch() ` function. From this, the percentage of chromatographic
1403
1418
peaks utilized for alignment can be computed relative to the total number of
1404
- peaks in the file. Additionally, it is feasible to directly ` plot() ` the
1405
- ` param ` object for the file of interest, showcasing the distribution of these
1419
+ peaks in the file. Additionally, it is feasible to directly ` plot() ` the ` param `
1420
+ object for the file of interest, showcasing the distribution of these
1406
1421
chromatographic peaks along with the fitted model line.
1407
1422
1408
1423
``` {r}
1409
- #access summary of matches and model information
1424
+ #' access summary of matches and model information
1410
1425
summary <- summarizeLamaMatch(param)
1411
1426
summary
1412
1427
1413
- # coverage for each file
1428
+ #' coverage for each file
1414
1429
summary$Matched_peaks / summary$Total_peaks * 100
1415
1430
1416
- #access the information on the model of for the first file
1431
+ #' access the information on the model of for the first file
1417
1432
summary$Model_summary[[1]]
1418
1433
1419
- # Plot obs vs. ref with fitting line
1434
+ #' Plot obs vs. ref with fitting line
1420
1435
plot(param, index = 1L, main = "ChromPeaks versus Lamas for the first file",
1421
1436
colPoint = "red")
1437
+ abline(0, 1, lty = 3, col = "grey")
1438
+ grid()
1422
1439
```
1423
1440
1424
1441
0 commit comments