newType: Add a new type definition to a DGEobj

View source: R/types.R

newTypeR Documentation

Add a new type definition to a DGEobj

Description

Add a new type definition to a DGEobj

Usage

newType(dgeObj, itemType, baseType, uniqueItem = FALSE)

Arguments

dgeObj

A class DGEobj created by function initDGEobj()

itemType

The name of the new type to create

baseType

The baseType of the new item. One of [row, col, assay, meta]

uniqueItem

If set to TRUE, only one instance of the new type is allowed in a DGEobj

Value

A DGEobj

Examples

    # example DGEobj
    exObj <- readRDS(system.file("miniObj.RDS", package = "DGEobj"))

    exObj <- newType(exObj,
                     itemType   = "AffyRMA",
                     baseType   = "assay",
                     uniqueItem = TRUE)


DGEobj documentation built on May 16, 2022, 9:06 a.m.