Reads in CSV files created by AutoSpectral or in the same format
(fluorophores in rows, detectors in columns, first row is detector names,
first column contains fluorophore names).
Usage
read.spectra(
spectra.file,
spectra.dir = "./table_spectra",
remove.af = FALSE,
af.param = "AF"
)Arguments
- spectra.file
File name for the spectra CSV file to be read.
- spectra.dir
File path to the folder containing
spectra.file. Default istable_spectra, whereAutoSpectralsaves the spectra files.- remove.af
Logical, default is
FALSE. IfTRUE, returns the spectral matrix without the default autofluorescence spectrum.- af.param
Name of the autofluorescence parameter. Default is
AF. Note that any fluorophores can be removed from the matrix by supplying a character vector, e.g.,c("BUV395", "PE"), if desired.