View source: R/import_biotyper_spectra.R
import_biotyper_spectra | R Documentation |
This function is a wrapper around the readBrukerFlexData::readBrukerFlexDir()
to read both acqus
and acqu
MALDI files.
import_biotyper_spectra(
biotyper_directory,
remove_calibration = c("BTS", "Autocalibration")
)
biotyper_directory |
A path to the folder tree with the spectra to be imported. |
remove_calibration |
A vector of characters used as regex to indicate which (calibration) spectra are going to be removed. |
When using readBrukerFlexData::readBrukerFlexDir()
on acqus
files (instead of the native acqu
files), the function will fail with the following error message:
Error in .readAcquFile(fidFile = fidFile, verbose = verbose) : File ‘/data/maldi_dir/targetA/0_D10/1/1SLin/acqu’ doesn't exists!
But it turns out that acqu
and acqus
files are the same, so the function here create acqu
symbolic links that point to acqus
files.
A list of MALDIquant::MassSpectrum objects
check_spectra, process_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 spectra
spectra_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.