Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • greigite
    Senior Member
    • Mar 2009
    • 145

    #1

    DESeq2: problem with variance stabilization

    I think I am probably missing something obvious here with DESeq2. I used to use DESeq frequently to normalize count data but somehow cannot get the same process to work in DESeq2. I am able to create a DESeqDataSet object and run analysis with the DESeq function without difficulty, but then can't retrieve a normalized matrix of counts from a DESeqDataSet object following variance stabilization. The problem seems to be that the entry "counts" in the "assays" slot disappears after running varianceStabilizingTransformation.

    Code:
    dds_blind=DESeqDataSetFromMatrix(countData=sample_otu_table,colData=BRR_env,formula(~1))
    
    dds_blind<-DESeq(dds_blind,fitType=c("parametric"))
    Results:
    Code:
    > dds_blind
    class: DESeqDataSet 
    dim: 70232 92 
    exptData(0):
    assays(1): counts
    rownames(70232): OTU_1 OTU_3 ... OTU_46831 OTU_34574
    rowData metadata column names(0):
    colnames(92): 35 52 ... 211 281
    colData names(5): collection_type block Zhao_name CGN crop
    > dds_blind<-DESeq(dds_blind,fitType=c("parametric"))
    estimating size factors
    estimating dispersions
    gene-wise dispersion estimates
    mean-dispersion relationship
    final dispersion estimates
    fitting model and testing
    > dds_blind
    class: DESeqDataSet 
    dim: 70232 92 
    exptData(0):
    assays(3): counts mu cooks
    rownames(70232): OTU_1 OTU_3 ... OTU_46831 OTU_34574
    rowData metadata column names(19): baseMean baseVar ... deviance maxCooks
    colnames(92): 35 52 ... 211 281
    colData names(6): collection_type block ... crop sizeFactor
    Now trying variance stabilization, note that "counts" vanishes from the assays slot after running the function:
    Code:
    > vsd<-varianceStabilizingTransformation(dds_blind,blind=TRUE)
    you had estimated gene-wise dispersions, removing these
    you had estimated fitted dispersions, removing these
    > vsd
    class: SummarizedExperiment 
    dim: 70232 92 
    exptData(0):
    assays(1): ''
    rownames(70232): OTU_1 OTU_3 ... OTU_46831 OTU_34574
    rowData metadata column names(23): baseMean baseVar ... dispGeneEstConv.1 dispFit
    colnames(92): 35 52 ... 211 281
    colData names(6): collection_type block ... crop sizeFactor
    > getVarianceStabilizedData(vsd)
    Error in (function (classes, fdef, mtable)  : 
      unable to find an inherited method for function ‘dispersionFunction’ for signature ‘"SummarizedExperiment"’
    > counts(vsd)
    Error in (function (classes, fdef, mtable)  : 
      unable to find an inherited method for function ‘counts’ for signature ‘"SummarizedExperiment"’
    Last edited by greigite; 02-17-2014, 07:15 PM.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Try
    Code:
    getVarianceStabilizedData(dds_blind)
    BTW, I don't think "SummarizedExperiment" objects have a "counts()" accessor.

    Comment

    • Michael Love
      Senior Member
      • Jul 2013
      • 333

      #3
      Yes,

      the normalized values are accessible with the assay() function for SummarizedExperiments

      Comment

      Latest Articles

      Collapse

      • kinpict.com
        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by kinpict.com
        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
        Today, 06:37 PM
      • SEQadmin2
        16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by SEQadmin2





        NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
        10-30-2026, 06:46 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 11-12-2026, 07:59 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-05-2026, 09:25 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-03-2026, 11:54 AM
      2 responses
      56 views
      0 reactions
      Last Post kinpict.com  
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      175 views
      0 reactions
      Last Post SEQadmin2  
      Working...