Exports the contents of a mass_dataset object to files. The files can be in CSV or XLSX format.
Additionally, MS2 data can be exported in MSP or MGF format.
Arguments
- object
A
mass_datasetobject to be exported.- file_type
The type of file to export the data to. Options are "csv" or "xlsx". Default is "csv".
- ms2_file_type
The type of file to export the MS2 data to. Options are "msp" or "mgf". Default is "msp".
- path
The directory where the exported files will be saved. Default is the current directory.
Author
Xiaotao Shen xiaotao.shen@outlook.com
Examples
if (FALSE) { # \dontrun{
data("expression_data")
data("sample_info")
data("variable_info")
object <- create_mass_dataset(
expression_data = expression_data,
sample_info = sample_info,
variable_info = variable_info
)
export_mass_dataset(object, file_type = "csv", path = tempdir())
} # }
