Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pthom010
    Junior Member
    • May 2021
    • 1

    #1

    Need Help Doing Complex Contrasts in DESeq2

    I recently completed a 22 day time course with a resistant and susceptible plant with five timepoints (0hr - control), 1dpi, 7dpi, 14dpi, and 22dpi. I was able to do three replicates and sequenced my smaples t get RNAseq libraries (30 libraries total). I now have begun my RNA seq analysis in DESeq2. I have set up my samples object for the comparisons like so:

    Code:
    sample
    
             timepoint treatment genotype
    S1A_rep1         0        SA        S
    S1A_rep2         0        SA        S
    S1A_rep3         0        SA        S
    S1B_rep1         1        SB        S
    S1B_rep2         1        SB        S
    S1B_rep3         1        SB        S
    S1C_rep1         7        SC        S
    S1C_rep2         7        SC        S
    S1C_rep3         7        SC        S
    S1D_rep1        14        SD        S
    S1D_rep2        14        SD        S
    S1D_rep3        14        SD        S
    S1E_rep1        22        SE        S
    S1E_rep2        22        SE        S
    S1E_rep3        22        SE        S
    R1A_rep1         0        RA        R
    R1A_rep2         0        RA        R
    R1A_rep3         0        RA        R
    R1B_rep1         1        RB        R
    R1B_rep2         1        RB        R
    R1B_rep3         1        RB        R
    R1C_rep1         7        RC        R
    R1C_rep2         7        RC        R
    R1C_rep3         7        RC        R
    R1D_rep1        14        RD        R
    R1D_rep2        14        RD        R
    R1D_rep3        14        RD        R
    R1E_rep1        22        RE        R
    R1E_rep2        22        RE        R
    R1E_rep3        22        RE        R
    I am using my treatment column to design my comparisons. I have done the following comparisons so far:

    RA-SA
    RB-SB
    RC-SC
    RC-SD
    RE-SE
    RB-RA
    RC-RA
    RD-RA
    RE-RA
    SB-SA
    SC-SA
    SD-SA
    SE-SA

    My DESEq2 comparison is done withe the follwing code:

    Code:
    dds <- DESeqDataSetFromTximport(txi, sample, ~treatment)
    And my results are retrieved like so:
    Code:
    results(deseqData, contrast=c("treatment","RB","RA"))
    I now want to do the following comparisons:

    Code:
    (RB - SB) - (RA - SA) (compare RB and SB, then compare that to RA and SA, compared)
    (RE + SE) - (RA + SA)
    (RE + RD) - (RC + RB)
    [(RE + RD) - (RC + RB)] - [(SE + SD) - (SC - SB)] (compare the early vs late response of the R plants to that of the susceptible)
    I am not sure of what code to use. Would anybody be able to point me in the right direction? Any help appreciated.
  • BigOmics
    Junior Member
    • Jul 2021
    • 1

    #2
    You have probably solved your issue by now, but if you still struggle with your transcriptomic data, you could try using our Omics Playground platform. We have an interactive GUI that allows you to generate pairwise comparisons with a high degree of flexibility when you input your data into the platform. You can also intersect the results of pairwise comparisons and represent them as Venn diagrams and scatterplots.

    If you want to give it a shot, you can try our free access demo version: https://public.bigomics.ch/app/omicsplayground_contrib

    Hope that addresses your need!

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    28 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    21 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    38 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    44 views
    0 reactions
    Last Post SEQadmin2  
    Working...