powered by
Reads peak lists from specified folders or vector of paths.
read_peaklist( paths, find_files, format_in = c("chemstation", "shimadzu_fid", "shimadzu_dad", "shimadzu_lcd", "shimadzu_gcd"), pattern = NULL, data_format = c("chromatographr", "original"), metadata_format = c("chromconverter", "raw"), read_metadata = TRUE, progress_bar, cl = 1 )
A list of chromatograms in matrix or data.frame format, according to the value of format_out.
matrix
data.frame
format_out
Paths to files or folders containing peak list files.
Logical. Set to TRUE (default) if you are providing the function with a folder or vector of folders containing the files. Otherwise, set toFALSE.
TRUE
FALSE
Format of files to be imported/converted. Current options include: chemstation, shimadzu_fid, shimadzu_dad, shimadzu_lcd, and shimadzu_gcd.
chemstation
shimadzu_fid
shimadzu_dad
shimadzu_lcd
shimadzu_gcd
pattern (e.g. a file extension). Defaults to NULL, in which case file extension will be deduced from format_in.
format_in
Either chromatographr or original.
chromatographr
original
Format to output metadata. Either chromconverter or raw.
chromconverter
raw
Logical, whether to attach metadata (if it's available). Defaults to TRUE.
Logical. Whether to show progress bar. Defaults to TRUE if pbapply is installed.
pbapply
Argument to pbapply specifying the number of clusters to use or a cluster object created by makeCluster. Defaults to 1.
makeCluster
Ethan Bass
if (FALSE) { # interactive() path <- "tests/testthat/testdata/dad1.uv" chr <- read_chroms(path, find_files = FALSE, format_in = "chemstation_uv") }
Run the code above in your browser using DataLab