Title: | CentroidR |
---|---|
Description: | CentroidR provides the infrastructure to centroid profile spectra. |
Authors: | Adriano Rutz [aut, cre] |
Maintainer: | Adriano Rutz <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.0.9000 |
Built: | 2025-03-11 15:28:23 UTC |
Source: | https://github.com/adafede/CentroidR |
This function processes an mzML file to apply centroiding with detailed controls for peak picking, smoothing, and noise estimation. It allows fine-tuning of MS1 and MS2 peak detection, optimizing spectral data analysis for various experimental needs.
centroid_one_file( file, pattern, replacement, min_datapoints_ms1 = 2L, min_datapoints_ms2 = 1L, mz_tol_da_ms1 = 0.002, mz_tol_da_ms2 = 0.005, mz_tol_ppm_ms1 = 5, mz_tol_ppm_ms2 = 10, mz_fun = base::mean, int_fun = base::sum, mz_weighted = TRUE )
centroid_one_file( file, pattern, replacement, min_datapoints_ms1 = 2L, min_datapoints_ms2 = 1L, mz_tol_da_ms1 = 0.002, mz_tol_da_ms2 = 0.005, mz_tol_ppm_ms1 = 5, mz_tol_ppm_ms2 = 10, mz_fun = base::mean, int_fun = base::sum, mz_weighted = TRUE )
file |
|
pattern |
|
replacement |
|
min_datapoints_ms1 |
|
min_datapoints_ms2 |
|
mz_tol_da_ms1 |
|
mz_tol_da_ms2 |
|
mz_tol_ppm_ms1 |
|
mz_tol_ppm_ms2 |
|
mz_fun |
|
int_fun |
|
mz_weighted |
|
The function processes both MS1 and MS2 data with user-defined smoothing, peak-picking, and noise estimation.
File path modifications are supported via pattern
and replacement
.
logical(1)
Returns TRUE
if centroiding was successful, otherwise FALSE
.
Johannes Rainer, Adriano Rutz