convert_mass_dataset2summarizedexperiment: Convert mass_dataset to SummarizedExperiment Object

View source: R/convert_mass_dataset2summarizedexperiment.R

convert_mass_dataset2summarizedexperimentR Documentation

Convert mass_dataset to SummarizedExperiment Object

Description

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.

Usage

convert_mass_dataset2summarizedexperiment(object)

Arguments

object

A mass_dataset object containing sample_info, variable_info, and expression_data.

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.

Value

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

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
# Assuming 'dataset' is a mass_dataset object
summarized_experiment <- convert_mass_dataset2summarizedexperiment(dataset)

## End(Not run)


tidymass/massdataset documentation built on Jan. 30, 2024, 2:55 p.m.