Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74eceb4

Browse files
authored
Merge pull request #13 from jorainer/jomain
Jomain
2 parents ded827a + 829c7ee commit 74eceb4

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: xcmsTutorials
22
Title: Exploring and Analyzing LC-MS data with Spectra and xcms
3-
Version: 1.0.2
3+
Version: 1.0.3
44
Authors@R: c(
55
person(given = "Johannes", family = "Rainer",
66
email = "[email protected]",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# xcmsTutorials 1.0
22

3+
## Changes in 1.0.3
4+
5+
- Add reference to the `MsQuality` paper.
6+
37
## Changes in 1.0.2
48

59
- Add the `msdata` to *depends* to ensure it's going to be installed.

vignettes/references.bib

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,21 @@ @article{gattoMSnbaseEfficientElegant2020a
117117
language = {eng},
118118
pmid = {32902283}
119119
}
120+
121+
@article{naake_msquality_2023,
122+
title = {{MsQuality} - an interoperable open-source package for the calculation of standardized quality metrics of mass spectrometry data},
123+
issn = {1367-4811},
124+
doi = {10.1093/bioinformatics/btad618},
125+
abstract = {MOTIVATION: Multiple factors can impact accuracy and reproducibility of mass spectrometry data. There is a need to integrate quality assessment and control into data analytic workflows.
126+
RESULTS: The MsQuality package calculates 43 low-level quality metrics based on the controlled mzQC vocabulary defined by the HUPO-PSI on a single mass spectrometry-based measurement of a sample. It helps to identify low-quality measurements and track data quality. Its use of community-standard quality metrics facilitates comparability of quality assessment and control (QA/QC) criteria across datasets.
127+
AVAILABILITY: The R package MsQuality is available through Bioconductor at https://bioconductor.org/packages/MsQuality.
128+
SUPPLEMENTARY INFORMATION: Supplementary data are available at Bioinformatics online.},
129+
language = {eng},
130+
journal = {Bioinformatics (Oxford, England)},
131+
author = {Naake, Thomas and Rainer, Johannes and Huber, Wolfgang},
132+
month = oct,
133+
year = {2023},
134+
pmid = {37812234},
135+
keywords = {mass spectrometry, metabolomics, proteomics, quality control, R},
136+
pages = {btad618},
137+
}

vignettes/xcms-preprocessing.Rmd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ intensity(sp) |>
339339

340340
The same operation can also be applied to the full data set. As an example we
341341
calculate below the total ion signal for each spectrum in the first file and
342-
determine the distribution of these using the `quantiles` function.
342+
determine the distribution of these using the `quantile` function.
343343

344344
```{r}
345345
#' Calculate the distribution of total ion signal of the first file
@@ -363,8 +363,8 @@ The total ion signals of the two data files is (as expected) similar. Through
363363
the `Spectra` object we have thus the possibility to inspect and explore the
364364
(raw) MS data of an experiment and use its functionality to create own quality
365365
assessment functions. Alternatively, also the `r Biocpkg("MsQuality")` package
366-
could be to calculate core MS quality metrics on a full experiment
367-
(`MsExperiment`) or individual data files (`Spectra`).
366+
[@naake_msquality_2023] could be to calculate core MS quality metrics on a full
367+
experiment (`MsExperiment`) or individual data files (`Spectra`).
368368

369369

370370
## Data visualization
@@ -602,7 +602,7 @@ data |>
602602
filterRt(rt = c(175, 189)) |>
603603
filterMz(mz = serine_mz + c(-0.05, 0.05)) |>
604604
chromatogram() |>
605-
plot()
605+
plot()
606606
```
607607

608608
The area of such a chromatographic peak is supposed to be proportional to the
@@ -636,7 +636,7 @@ focus on the mass peak for serine.
636636
#' Visualize the profile-mode mass peak for [M+H]+ of serine
637637
sps[1] |>
638638
filterMzRange(c(106.02, 106.07)) |>
639-
plotSpectra()
639+
plotSpectra(lwd = 2)
640640
abline(v = serine_mz, col = "#ff000080", lty = 3)
641641
```
642642

@@ -1455,7 +1455,8 @@ the definition of the features and display the first 6 rows
14551455

14561456
```{r correspondence-featureDefinitions}
14571457
#' Definition of the features
1458-
featureDefinitions(data) |> head()
1458+
featureDefinitions(data) |>
1459+
head()
14591460
```
14601461

14611462
Each row defines one feature and provides information on it's *m/z* (column
@@ -1480,7 +1481,8 @@ abundances and show the first 6 rows.
14801481

14811482
```{r}
14821483
#' Get abundances for the first 6 features
1483-
featureValues(data, method = "sum") |> head()
1484+
featureValues(data, method = "sum") |>
1485+
head()
14841486
```
14851487

14861488
We could now use this feature matrix for any downstream analysis. Such feature
@@ -1704,7 +1706,8 @@ simply use the `assay` function.
17041706

17051707
```{r}
17061708
#' Get feature values
1707-
assay(res) |> head()
1709+
assay(res) |>
1710+
head()
17081711
```
17091712

17101713
The `SummarizedExperiment` can be subset by rows and/or columns.

0 commit comments

Comments
 (0)