se2msn {DEP} | R Documentation

## Deprecated Function to coerce SummarizedExperiment to MSnSet object

### Description

Use `as` instead.

### Usage

    se2msn(se)

### Arguments

`se` | SummarizedExperiment, Object which will be turned into a MSnSet object.

### Value

A MSnSet object.

### Examples

    # Load example
    data <- UbiLength
    data <- data[data$Reverse != "+" & data$Potential.contaminant != "+",]
    data_unique <- make_unique(data, "Gene.names", "Protein.IDs", delim = ";")

    # Make SummarizedExperiment
    columns <- grep("LFQ.", colnames(data_unique))
    exp_design <- UbiLength_ExpDesign
    se <- make_se(data_unique, columns, exp_design)

    # Convert to MSnSet
    data_msn <- as(se, "MSnSet")
    # Convert back to SE
    se_back <- as(data_msn, "SummarizedExperiment")

[Package DEP version 1.2.0 Index]