Skip to content

tidy.DESeqTransform method #20

@tavareshugo

Description

@tavareshugo

Hi,

(firstly, thanks a lot for such a convenient package!)

I was wondering what your view is on having a tidy() method for DESeqTransform objects (coming from rlog() and varianceStabilizingTransform() functions?

Here's a gist with one:
https://gist.github.com/tavareshugo/3973461a7daf8a43e65e3566d5deed14

So, this should work:

# load libraries
library(DESeq2)
library(biobroom)
library(magrittr)

# Source gist
devtools::source_gist("3973461a7daf8a43e65e3566d5deed14", filename = "tidy_DESeqTransform.R")

# Example
dds <- makeExampleDESeqDataSet(betaSD = 1)

# transformations
vst_norm <- varianceStabilizingTransformation(dds)
rlog_norm <- rlog(dds)

# tidying
tidy(vst_norm)
tidy(vst_norm, colData = TRUE)
tidy(rlog_norm)
tidy(rlog_norm, colData = TRUE)

I'm happy to fork and submit a pull request, if you think something along these lines is worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions