setAttributes {DGEobj}R Documentation

Set attributes

Description

Set one or more attributes on a DGEobj or on a specific item within a DGEobj.

Usage

setAttributes(dgeObj, attribs)

Arguments

dgeObj

A DGEobj

attribs

A named list of attribute/value pairs

Details

This function adds attributes without deleting the attributes that are already present. Any named attribute that already exists in the object will be updated. To remove an attribute from an object pass NULL as the attribute value.

Value

A DGEobj

Examples

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

    # Assign attributes to a DGEobj
    MyAttributes <- list(Platform       = "RNA-Seq",
                         Instrument     = "HiSeq",
                         Vendor         = "Unknown",
                         readType       = "PE",
                         readLength     = 75,
                         strandSpecific = TRUE)
    exObj <- setAttributes(exObj, MyAttributes)

    # Set attributes on an item inside a DGEobj
    MyAttributes <- list(normalized   = FALSE,
                         LowIntFilter = "FPK >5 in >= 1 group")
    exObj[["counts"]] <- setAttributes(exObj[["counts"]], MyAttributes)


[Package DGEobj version 1.0.3 Index]