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)

Arguments

object

A mass_dataset object containing sample_info, variable_info, and expression_data.

Value

A SummarizedExperiment object containing the same data as the input mass_dataset object.

Details

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.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) { # \dontrun{
# Assuming 'dataset' is a mass_dataset object
summarized_experiment <- convert_mass_dataset2summarizedexperiment(dataset)
} # }