Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #16
    Ah, yes, that's correct. I always forget that it uses a "." rather than ":".

    Comment

    • frymor
      Senior Member
      • May 2010
      • 151

      #17
      Sorry to be so picky, but I still have some difficulties understanding it, even if it might not seems this way.

      What would be the difference between the two models:
      Code:
      ~condition + stimulation
      and
      Code:
      ~condition + stimulation + condition:stimulation
      in term of the question answered by the model?
      I know what the user guide says about interactions, but to be honest, I'm not sure what it really means.
      Is there a way to simplify it better?

      my try would be this:
      the first model try to identify the differences in the two groups of stimulation, buy accounting for the differences in the condition groups (this is reformulating the user guide). Does it means, that I sort of trying to discard all changes happening due to conditions and concentrate only on the effect causes by the stimulation?

      the second model adds an interaction. according to the user guide, it means that i am trying to calculate the differences of one condition (here my term condition) based on the second condition (here my term stimulation)?
      Does this means here that I'm trying to see the differences happening in my samples between the WT and KO based on the stimulation changes?

      This doesn't sound very simplified, but maybe someone can do it better

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #18
        No worries about being picky, this is important to get correct

        This boils down to, "so what's an interaction anyway?". Let's take your experiment as the example and consider the design:
        Code:
        ~condition + stimulation
        Let's just consider one example gene, called foo. Suppose in the WT unstimulated case, foo has a value of 1. Upon stimulation, that increases to 2. If don't stimulate but instead knock out some other gene, the value instead goes to 3. That covers 3 of the 4 groups. What this model says is that in the case of both stimulating AND knocking out some other gene, we expect the resulting value to be 2*3=6 (the fold changes multiply).

        But suppose the effect due to knocking out some gene is dependent upon stimulation (e.g., the stimulation activates a pathway that we've partly inactivated due to the knockout). We then would have what's referred to as an interaction between the stimulation and the condition. So we would no longer expect the knockout and stimulated group to have a value of 6, but something else entirely. The resulting interaction coefficient tells you the fold change from what you would expect if the knockout and stimulation effect don't interfere with each other (or have a synergistic effect). It could well be the case that instead of this group having a value of 6 we instead see no change from the baseline WT unstimulated group, so the value is 1, meaning that the fit coefficient is 1/6. Interactions always describe the additional change on top of what would be expected if your various conditions acted independently.

        Hope that helps.

        Comment

        • frymor
          Senior Member
          • May 2010
          • 151

          #19
          Yes, it helps a lot. I think I start understanding it.

          I have another question about the colData. Does the order of the samples here must be the same as in the count table.
          I am asking because I have done the analysis mentioned above and found no DE genes. When I than changed the colData file to that:

          Code:
          name	condition	stimulation
          Vav_KO_1	KO	no
          Vav_KO_2	KO	no
          Vav_KO_5	KO	no
          Vav_KO_2_C	KO	yes
          Vav_KO_4_C	KO	yes
          Vav_KO_5_C	KO	yes
          Vav_WT_1	wildtype	no
          Vav_WT_2	wildtype	no
          Vav_WT_4	wildtype	no
          Vav_WT_4_C	wildtype	yes
          Vav_WT_1_C	wildtype	yes
          Vav_WT_2_C	wildtype	yes
          I suddenly get 106 genes with an adjp<=0.1

          the sample names was not changed and is identical to the column names of the count table.
          Now I also get a different last comparison possiblity:
          Code:
          > resultsNames(dds)
          [1] "Intercept"                        "condition_wildtype_vs_KO"        
          [3] "stimulation_yes_vs_no"            "conditionwildtype.stimulation[B]yes[/B]"
          compared to "conditionwildtype.stimulationnone" from before.
          Is there an explanation for this kind of changes?

          thanks in advance

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #20
            That's...weird. I don't have a good explanation for that. Well, actually I don't know why you got "Curdlan" as part of a coefficient name before given that it wasn't in the original colData. The coefficient names at least make sense this time. Given that, my only guess is that something went wonky previously.

            Comment

            • frymor
              Senior Member
              • May 2010
              • 151

              #21
              Originally posted by dpryan View Post
              No worries about being picky, this is important to get correct

              But suppose the effect due to knocking out some gene is dependent upon stimulation (e.g., the stimulation activates a pathway that we've partly inactivated due to the knockout). We then would have what's referred to as an interaction between the stimulation and the condition. So we would no longer expect the knockout and stimulated group to have a value of 6, but something else entirely. The resulting interaction coefficient tells you the fold change from what you would expect if the knockout and stimulation effect don't interfere with each other (or have a synergistic effect). It could well be the case that instead of this group having a value of 6 we instead see no change from the baseline WT unstimulated group, so the value is 1, meaning that the fit coefficient is 1/6. Interactions always describe the additional change on top of what would be expected if your various conditions acted independently.
              Hi Devon,

              you mentioned, being picky can be a virtue, so I'm being picky again.

              I was wondering about my first question for the comparison between the knock-out and the stimulation. I wanted to find the deregulated genes independently from the stimulation effect. What I did was a Wald test between the contrasts KO and wildtype. But with this comparison, I have taken both the stimulated and the non-stimulated samples in one go.
              Does it make sense to do it this way, or is it better to take only the not stimulated samples.

              I think that for the genes affected by the stimulation, the not-stimulated vs. stimulated samples might cancel each other, but it is a risk.
              Taking all samples though gives me a higher statistical power (six instead of only three samples).

              But this might also give me genes changing due to the combination of knock-out and stimulation, which I don't want to have in the first question.

              What do you think is a better way of doing this analysis?


              thanks
              Assa

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #22
                Yes, you'll get slightly better results taking everything at once and using the contrast like you did. The reason for this is simply due to the additional samples being used in dispersion estimation. If you include the interaction term in the design then you won't have that affecting things.

                Comment

                • EVELE
                  Junior Member
                  • Jun 2015
                  • 9

                  #23
                  Hi,
                  Sorry for the resurrection of such old dialogues but I am quite confused.
                  I was thinking of doing a time-course analysis (as Assa did) having only 1 condition , 4 time points and 3 replicates for each time point. But what Ryan says here "not to use replicates as a factor" is contradictory to the answer that Michael Love gives in this link 4 months ago:


                  Should I finally consider replicates as a factor in my model or better to forget them?

                  Thanks for your answer in advance,
                  Eva
                  Last edited by EVELE; 02-18-2019, 03:34 PM. Reason: First time I sent only the first sentence of my message

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Today, 12:17 PM
                  0 responses
                  5 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, Yesterday, 11:41 AM
                  0 responses
                  10 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  37 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...