R/convert_mass_dataset2summarizedexperiment.R
convert_mass_dataset2summarizedexperiment.Rd
This function converts a mass_dataset
object to a SummarizedExperiment
object.
It extracts the sample_info
, variable_info
, and expression_data
from the mass_dataset
object
and constructs a new SummarizedExperiment
object.
convert_mass_dataset2summarizedexperiment(object)
A SummarizedExperiment
object containing the same data as the input mass_dataset
object.
The function checks if the input object is of class mass_dataset
. If it is, it extracts the sample_info
,
variable_info
, and expression_data
and uses these to create a new SummarizedExperiment
object.
if (FALSE) { # \dontrun{
# Assuming 'dataset' is a mass_dataset object
summarized_experiment <- convert_mass_dataset2summarizedexperiment(dataset)
} # }