Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • SylvainL
    Senior Member
    • Feb 2012
    • 180

    Differential Expression in different patients

    Dear all,

    I have a project to analyze where the researchers used 3 different patients (human primary cells) and applied different stimuli on each of them. Here is a short description of the experiment:
    Patient A: no stimulus, stimulus 1, stimuli 1+2
    Patient B: no stimulus, stimulus 1, stimuli 1+2
    Patient C: no stimulus, stimulus 1, stimuli 1+2

    Then, I have biological triplicates for each condition (no stimulus, stimulus 1 and stimuli 1+2) but by qPCR they noticed the basal level of some of their genes or interest were no similar but after the different stimuli, when they look at the fold-changes (normalized by the no stimulus condition), they get similar fold-changes between the patients.

    Now, I have to analyze mRNAseq of these patients in each condition and I wanted to do a Differential Expression analysis (with DESeq) but I have a doubt. If I take the 3 patients in one condition, the raw counts will be different for a gene (actually even in RPKM)... Then, I am not sure I can really consider my 3 patients as triplicates.

    Or, should I do DE analysis of each patient separatly considering I do not have replicates and then compare the obtained fold-changes?

    Or even better, is there any DE package (I love R) which may take into consideration the patients?

    Sylvain
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    1) Use DESeq2 rather than DESeq

    2) Don't use RPKM for statistics unless you really really know what you're doing (in which case you probably wouldn't want to use it anyway).

    3) Use patient as a blocking factor in a GLM (you can do this with DESeq2, edgeR, limma, etc.).

    4) Human experiments are pretty noisy, advise the biologists to drastically increase the number of patients (if possible) next time.

    Comment

    • SylvainL
      Senior Member
      • Feb 2012
      • 180

      #3
      Hi dpryan,

      Yes, I will use the raw counts as explained in both manuals of DESeq and DESeq2.

      I noticed in the vignette of DESeq2 that you can use "patient" as parameter and I wondered if it will do what I want. So you confirm I can NOT do it with DESeq... (pity because I'm using an old version of R, version 2.14, because of lack of compatibility with R 3.0 with some of other packages I really need for other analyses. But it's ok, I will see if I can install two versions of R on the same machine).

      Considering the noise, that's also why I first wanted to really consider all the triplicates without the patient factor... expecting that the noise would be not significant and then be able to focus on the real changes due to the different stimuli; but actually, doing so, I do not have in the differentially expressed genes one of their interest genes (and confirmed by qPCR).

      These experiments are much more complexed than I did described (many stimuli and time-courses) so getting triplicates was already not that bad considering they work with primary cells...

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        You can do that with DESeq as well, it just lacks a lot of beneficial functionality.

        Comment

        • SylvainL
          Senior Member
          • Feb 2012
          • 180

          #5
          How can I do it with DESeq? Can I add the "patient" parameter in addition of the "condition" one, like count ~patient + condition Sorry if my question seem naive...

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Yup, exactly. You'll have to use the GLM commands rather than nbinomLRT (or whatever it's called in DESeq), but that's not a problem. I should note that the same design (~patient+condition or more complicated things like ~patient+treatment*condition*time) can be used in edgeR, limma, and pretty much any other similar R package.

            Comment

            • SylvainL
              Senior Member
              • Feb 2012
              • 180

              #7
              Hi,

              I have an additional question: Once I did both fit on the full and the reduced models (in my case patient + condition; and condition alone since I want to see how taking into consideration the patient improves the DE analysis) and calculating the adjusted pvalues, I am a bit stuck...

              Here is the part of my script...

              fit1 <- fitNbinomGLMs(cds, count ~ patient + condition)
              fit0 <- fitNbinomGLMs(cds, count ~ condition)
              pvalsGLM <- nbinomGLMTest(fit1, fit0)
              padjGLM <- p.adjust(pvalsGLM, method="BH")

              Now, how can I get the final fold-changes? Are they the same than simply calculated by the function nbinomTest (in this case the fitNbinomGLMs I guess) and I have to replace the pvalues by the padlGLM?

              I looked in the vignette and it is still unclear for me...

              Sorry if my question is really too stupid.

              Sylvain

              Comment

              • SylvainL
                Senior Member
                • Feb 2012
                • 180

                #8
                Actually I have some doubts...

                When I look at the DE genes between two conditions (without considering the patient), I get 450 significant differentially expressed genes...
                When I do the script above, I have only 13!!

                So it seems obvious I do something wrong. I am a bit comcerned about the fact that when I compare patient + condition to condition only, I will get as output the genes which are behaving differently between the patients. And it is exactly the opposite I want, but I am not really sure how to get the interest guys.

                So what I want are the genes which have similar fold-changes after the stimulus, but these genes may have different basal expression between the patients...

                I wonder if I should not just consider every patient separately, then do DE without replicates and then simply compare the 3 fold-changes obtained by each gene in each patient... Not the most elegant and probably not the fastest...

                Sylvain

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  It's quite possible that what you're seeing is an effect due to the uncontrolled patient effect (i.e., false positives) in the result with 450 DE genes. This is particularly true given the N=3 (your residual degrees of freedom are pretty much shot).

                  The comparison you're interested is ~patient+condition vs. ~patient (or just use a Wald test and look at the appropriate coefficient in the ~patient+condition test).

                  Comment

                  • SylvainL
                    Senior Member
                    • Feb 2012
                    • 180

                    #10
                    Hi dpryan,

                    so to summarize, if I want to get the genes affected by a stimulus in all 3 patients, meaning in fold-changes, even if the basal levels of these genes may differ in all 3 patients, I have to compare ¬condition+patient to ~patient...

                    And then I take the padjGLM to know which genes are significant and the fold-changes will be in the fit1?

                    Is it ok doing like that?

                    The differences between no patient taken into consideration and being taken into consideration is really more important than I thought... Really good to know!!

                    Thanks in advance

                    s.

                    Comment

                    • dpryan
                      Devon Ryan
                      • Jul 2011
                      • 3478

                      #11
                      Note that comparing ~patient+condition versus ~patient will be looking for changes due to any condition (it's like a one-way ANOVA). Maybe you want this, maybe not, depends on the question you're trying to answer. But yes, the "patient" factor absorbs the differences in basal expression.

                      Yes, use p.adjust() and use the adjusted p-values to determine significance (note that you can use a looser cut off than the normal 0.05).

                      Comment

                      • SylvainL
                        Senior Member
                        • Feb 2012
                        • 180

                        #12
                        Thanks,

                        actually, after calculating the dispersion on the whole dataset, I wanted to subset it only to the two conditions I want to compare to get only the changes due to one stimulus (oif compared to the "no stimulus" condition).

                        s.

                        Comment

                        • SylvainL
                          Senior Member
                          • Feb 2012
                          • 180

                          #13
                          Hi,

                          after one night thinking about this analysis, I have one more question (sorry to bother but I really dislike doing something without understanding at least a minimum):
                          When I compare ~patient+condition to ~patient, I understand I will get in the output (meaning after sorting by pvalue threshold) the guys which are differentially expressed between my conditions, even if the basal level of expression is different between the patients... I want to be sure I will also get the guys affected by the treatment, even if the basal expressions are similar in the patients...

                          To make it sure, will I get all the genes having similar fold-chanages after the treatment, with or without similar basal expression levels between patients?

                          Many thanks in advance,

                          s.

                          Comment

                          • dpryan
                            Devon Ryan
                            • Jul 2011
                            • 3478

                            #14
                            I assume that "treatment" and "condition" are the same here (otherwise, just show an example of how your samples are grouped).

                            Comparing ~patient+condition to ~patient will find everything affected by condition regardless of whether there's a patient-effect. So don't worry that you'll be screwing things up for genes for which there is no patient effect (you will get slightly different results for them, but I think most people would argue that that's OK).

                            Comment

                            • SylvainL
                              Senior Member
                              • Feb 2012
                              • 180

                              #15
                              Yes, treatment and condition are the same...

                              My data are pooled like that:
                              sample#1: patient A, no stimulus
                              sample#2: patient A, stimulus 1
                              sample#3: patient A, stimulus 2
                              sample#4: patient B, no stimulus
                              sample#5: patient B, stimulus 1
                              sample#6: patient B, stimulus 2
                              sample#7: patient C, no stimulus
                              sample#8: patient C, stimulus 1
                              sample#9: patient C, stimulus 2

                              Let's say for gene a, the basal level of expression (in the no stimulus condition) are the same in all the patients, but this gene is induced 10-fold by stimulus 1 in each patient. I expect to have this guy in the significant genes (if the basal expression level is high enough...).
                              Now, for gene b, let's say this guy is still induced 10-fold by stimulus1 in all the patients, but it's level in patient B was 5-fold lower than in patients A and C (so it's expression level in patient B in the stimulus 1 condition is still more or less 5-fold lower than in both patients A and C in the stimulus 1 condition). I still expect to have this guy in the significantly differentially expressed genes...

                              s.

                              Comment

                              Latest Articles

                              Collapse

                              • mylaser
                                Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by mylaser
                                Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                                If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                                This guide explains everything you need to know about...
                                Yesterday, 01:13 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, 07-09-2026, 10:04 AM
                              0 responses
                              17 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-08-2026, 10:08 AM
                              0 responses
                              10 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-07-2026, 11:05 AM
                              0 responses
                              25 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-02-2026, 11:08 AM
                              0 responses
                              31 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...