Force an object to belong to a class

Note

Updated 2021-03-09.

DESeqAnalysis

Supported coercion methods will extract any of these internal objects:

  • DESeqDataSet.

  • DESeqTransform.

  • DESeqResultsList.

Author

Michael Steinbaugh

Examples

data(deseq) ## DESeqAnalysis ==== dds <- as(deseq, "DESeqDataSet") print(dds)
#> class: DESeqDataSet #> dim: 500 12 #> metadata(3): version date interestingGroups #> assays(4): counts mu H cooks #> rownames(500): gene001 gene002 ... gene499 gene500 #> rowData names(38): broadClass description ... deviance maxCooks #> colnames(12): sample01 sample02 ... sample11 sample12 #> colData names(3): condition treatment sizeFactor
dt <- as(deseq, "DESeqTransform") print(dt)
#> class: DESeqTransform #> dim: 500 12 #> metadata(3): version date interestingGroups #> assays(1): '' #> rownames(500): gene001 gene002 ... gene499 gene500 #> rowData names(38): broadClass description ... dispGeneIter dispFit #> colnames(12): sample01 sample02 ... sample11 sample12 #> colData names(3): condition treatment sizeFactor
resList <- as(deseq, "DESeqResultsList") print(names(resList))
#> [1] "condition_B_vs_A" "treatment_D_vs_C"