Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mistrm
    Junior Member
    • Apr 2014
    • 5

    Contrasts with DESeq2

    Hi;

    I am working with an interesting design and have setup the contrasts with DESeq2 and unsure if it setup correct as I get quite alot significant genes.

    The setup is as follows:
    6 neurontypes (each with three replicates) which can be subdivided into 2 groups (LTMR and Nociceptors). I want to compare each neurontype against all neurontypes of the opposite group. So for example given that neurontype1 is in LTMR - what genes are DE between neurontype1 and all Nociceptor samples? The code I used is pasted below:

    # Create DESeq2 dataset
    se <-SummarizedExperiment(assays=SimpleList(counts=exprs(sub.eset)), colData=DataFrame(pData(sub.eset)))
    dds <- DESeqDataSet(se=se, design = ~ neurontype)
    dds <- DESeq(dds)

    # Create list object for the results
    resultsAll <- vector("list", 6)

    # adding the effects across all neurontypes within a group to create background contrast
    bg.ltmr <- resultsNames(dds)[grep("LTMR", resultsNames(dds))]
    bg.nociceptor <- resultsNames(dds)[grep("Nociceptor", resultsNames(dds))]

    # Extract data of specified contrasts with appropriate background
    for (n in 2:length(resultsNames(dds))){
    r <- resultsNames(dds)[n]
    if (r %in% bg.ltmr) contrast <- list(r, c(bg.nociceptor))
    if (r %in% bg.nociceptor) contrast <- list(r, c(bg.ltmr))
    res <- results(dds, contrast=contrast)
    resultsAll[n-1] <- list(res)
    }
    names(resultsAll) <- resultsNames(dds)[-1]

    I get about ~3000 genes significant for each of the neurontypes which seems a bit high to me. Any thoughts on if there is a better way to do this?

    Thanks!
  • Richard Finney
    Senior Member
    • Feb 2009
    • 701

    #2
    Others have noted the large number of genes identified in deseq2 : http://seqanswers.com/forums/showthread.php?t=30907

    I notice it too.

    If you really, really need a smaller number of genes, then change the statistical significance cut off.

    Comment

    • Michael Love
      Senior Member
      • Jul 2013
      • 333

      #3
      I'd recommend you look at a PCA plot (see vignette for example). This just sounds like you have small within group variance compared to the between group differences, which you will see by looking at the top 500 genes with plotPCA. You can either reduce the FDR cutoff as Richard recommends, or increase the lfcThreshold if you are interested in larger fold changes (as Simon just responded there http://seqanswers.com/forums/showpos...3&postcount=21).

      Comment

      • mistrm
        Junior Member
        • Apr 2014
        • 5

        #4
        That makes sense, the within group variance for the single neurontype is going to be much smaller since the samples are just replicates. Thanks, I'll probably just increase lfcThreshold and take genes from there

        Comment

        Latest Articles

        Collapse

        • 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
        • SEQadmin2
          From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
          by SEQadmin2


          Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


          The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
          ...
          06-02-2026, 10:05 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        39 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-09-2026, 11:58 AM
        0 responses
        102 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-05-2026, 10:09 AM
        0 responses
        123 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-04-2026, 08:59 AM
        0 responses
        114 views
        0 reactions
        Last Post SEQadmin2  
        Working...