Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • coralgirl
    Junior Member
    • Nov 2011
    • 6

    DESeq Plot Error

    Hi,

    I'm trying to plot the scatterplot of direct vs. moderated log-ratios and I keep getting an error:

    Error in plot.window(...) : need finite 'ylim' values
    In addition: Warning messages:
    1: In min(x) : no non-missing arguments to min; returning Inf
    2: In max(x) : no non-missing arguments to max; returning -Inf

    This is what I have put in:

    > cdsBlind <- estimateDispersions( cds, method="blind" )
    > vsd <- getVarianceStabilizedData( cdsBlind )
    > mod_lfc <- (rowMeans( vsd[, conditions(cds)=="treated", drop=FALSE] ) -
    + rowMeans( vsd[, conditions(cds)=="untreated", drop=FALSE] ))
    > lfc <- res$log2FoldChange
    > finite <- is.finite(lfc)
    > table(as.character(lfc[!finite]), useNA="always")

    -Inf Inf NaN <NA>
    83 212 285 0
    > largeNumber <- 10
    > lfc <- ifelse(finite, lfc, sign(lfc) * largeNumber)
    > plot( lfc, mod_lfc, pch=20, cex=.3,
    + col = ifelse( finite, "#80808040", "red" ) )

    Is it because I am running analysis on samples with no replicates? (I know - not good, but it's all that I have...). Any ideas? Thanks.
  • Wolfgang Huber
    Senior Member
    • Aug 2009
    • 109

    #2
    Dear Coral Girl

    it looks like your mod_lfc consists of all non-finite values. What are the conditions names in your object cds? Note that in the line

    mod_lfc <- (
    rowMeans( vsd[, conditions(cds)=="treated", drop=FALSE] ) -
    rowMeans( vsd[, conditions(cds)=="untreated", drop=FALSE] ))
    you select columns in the data matrix with the names treated and untreated, and if there are no such columns, rowMeans will return NaN. In this case, you need to modify the above code according to your condition names.

    Hope this helps.
    Wolfgang
    Wolfgang Huber
    EMBL

    Comment

    • coralgirl
      Junior Member
      • Nov 2011
      • 6

      #3
      Hi Wolfgang,

      Thank you very much - that was exactly the problem. A rookie mistake on my behalf!

      Comment

      Latest Articles

      Collapse

      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        Yesterday, 11:43 AM
      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 11:08 AM
      0 responses
      6 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-30-2026, 05:37 AM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-26-2026, 11:10 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      52 views
      0 reactions
      Last Post SEQadmin2  
      Working...