View source: R/gather_spectra_stats.R
gather_spectra_stats | R Documentation |
Aggregate spectra quality-check statistics
gather_spectra_stats(check_vectors)
check_vectors |
A list of logical vectors from check_spectra |
A tibble of one row with the following 5 columns of integers:
n_spectra
: total number of raw spectra.
n_valid_spectra
: total number of spectra passing all quality checks
is_empty
, is_outlier_length
and is_not_regular
: total of spectra flagged with these irregularities.
check_spectra
# Get an example directory of six Bruker MALDI Biotyper spectra
directory_biotyper_spectra <- system.file(
"toy-species-spectra",
package = "maldipickr"
)
# Import the six spectra
spectra_list <- import_biotyper_spectra(directory_biotyper_spectra)
# Display the list of checks, with FALSE where no anomaly is detected
checks <- check_spectra(spectra_list)
# Aggregate the statistics of quality-checked spectra
gather_spectra_stats(checks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.