convertMASTClassicToSingleCellAssay {MAST} | R Documentation

## Convert a MASTClassic SingleCellAssay

### Description

Convert a SingleCellAssay object created with the MASTClassic package to an object recognized by the new MAST package

### Usage

    convertMASTClassicToSingleCellAssay(object = NULL)

### Arguments

`object` | of class `SingleCellAssay` created by MASTClassic

### Details

The function will extract the relevant information from the attributes of the old object and construct a new SingleCellAssay that is recognized by MAST. This function checks that the object is a MASTClassic SingleCellAssay object. It will stop if it is not a SingleCellAssay, return a converted SingleCellAssay if object was created by MASTClassic, and return the original object if the object is already compatible.

### Value

A MAST SingleCellAssay object.

### Note

Type checking for old object is not performed.

### Examples

    data(vbetaFA)
    convertMASTClassicToSingleCellAssay(vbetaFA)

[Package MAST version 1.8.2 Index]