S3 Methods for printing metabodecon objects as described in the Metabodecon Classes.
Usage
# S3 method for class 'spectrum'
print(x, name = FALSE, ...)
# S3 method for class 'decon1'
print(x, name = FALSE, ...)
# S3 method for class 'decon2'
print(x, name = FALSE, ...)
# S3 method for class 'align'
print(x, name = FALSE, ...)
# S3 method for class 'spectra'
print(x, ...)
# S3 method for class 'decons1'
print(x, ...)
# S3 method for class 'decons2'
print(x, ...)
# S3 method for class 'aligns'
print(x, ...)
Arguments
- x
The object to print.
- name
Logical. If TRUE, the name of the object is printed before the object.
- ...
Not used. Only accepted to comply with generic
base::print()
.
Examples
print(sim[[1]])
#> spectrum object (2048 dp, 3.6 to 3.3 ppm)
print(sim[[1]], name = TRUE)
#> sim_01: spectrum object (2048 dp, 3.6 to 3.3 ppm)
print(sim)
#> spectra object consisting of 16 spectrum objects:
#> sim_01 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_02 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_03 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_04 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_05 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_06 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_07 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_08 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_09 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_10 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_11 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_12 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_13 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_14 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_15 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_16 (2048 datapoints from 3.28 - 3.59 ppm)
decon <- deconvolute(sim[[1]], sfr = c(3.55, 3.35))
#> 2025-04-17 14:52:04.71 Starting deconvolution of 1 spectrum using 1 worker
#> 2025-04-17 14:52:04.71 Starting deconvolution of sim_01
#> 2025-04-17 14:52:04.71 Removing water signal
#> 2025-04-17 14:52:04.71 Removing negative signals
#> 2025-04-17 14:52:04.71 Smoothing signals
#> 2025-04-17 14:52:04.72 Starting peak selection
#> 2025-04-17 14:52:04.73 Detected 314 peaks
#> 2025-04-17 14:52:04.73 Removing peaks with low pscores
#> 2025-04-17 14:52:04.73 Removed 287 peaks
#> 2025-04-17 14:52:04.73 Initializing Lorentz curves
#> 2025-04-17 14:52:04.73 MSE at peak tiplet positions: 4.0838805770844048836921
#> 2025-04-17 14:52:04.73 Refining Lorentz Curves
#> 2025-04-17 14:52:04.73 MSE at peak tiplet positions: 0.1609359876216345797140
#> 2025-04-17 14:52:04.74 MSE at peak tiplet positions: 0.0228015051613790313556
#> 2025-04-17 14:52:04.74 MSE at peak tiplet positions: 0.0071638016610617799920
#> 2025-04-17 14:52:04.74 Formatting return object as decon2
#> 2025-04-17 14:52:04.74 Finished deconvolution of sim_01
#> 2025-04-17 14:52:04.74 Finished deconvolution of 1 spectrum in 0.032 secs
print(decon)
#> decon2 object (2048 dp, 3.6 to 3.3 ppm, 27 peaks)