Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • slowsmile
    Member
    • May 2011
    • 22

    Input data structure for SAMseq

    I know this might be a silly question but since we just started using the SAMseq method from CRAN R package samr to search for differentially expressed genes between two groups, I cannot find a definite description on the input structure from their manual.

    Should I use raw gene counts (e.g. generated from HTseq) or normalized gene counts (e.g. RPKM values) as the input data for SAMseq?

    Anyone who is familiar with the method can give me a quick answer?

    Thanks a lot
  • kopi-o
    Senior Member
    • Feb 2008
    • 319

    #2
    Based on reading the paper (http://www-stat.stanford.edu/~tibs/ftp/Li_Tibs.pdf), they definitely developed the method with raw counts in mind, and I have used it with some success in that way. However since it appears to be strictly based on rank (non parametric) statistics, it should in principle work on RPKM too, I think.
    Last edited by kopi-o; 06-01-2012, 01:01 PM.

    Comment

    • slowsmile
      Member
      • May 2011
      • 22

      #3
      Thanks very much. I tried the SAMseq with our two class unpaired comparison. It resulted in a lot more significant genes than I what I get from edgeR or DESeq. Did you also experience the same problem?
      Then I realized that their default FDR cut-off is 0.2, which is weird. I changed it to 0.05 as most people normally worked with. Then the method got me thousands of up-regulated genes but 0 down-regulated genes....It's so different from the edgeR and DESeq results.

      What FDR cutoff do you normally use in your practice?


      Thanks a lot

      PS:
      The R code I used on SAMseq is:
      samfit <- SAMseq(g.counts, group, resp.type = "Two class unpaired", fdr.output = 0.05);
      #their default setting is fdr.output = 0.2
      Last edited by slowsmile; 06-01-2012, 12:57 PM.

      Comment

      • kopi-o
        Senior Member
        • Feb 2008
        • 319

        #4
        Interesting - I also see only up-regulated genes in the data set I am using SAMSeq on - maybe it's some kind of bug?

        No, I don't get too many significantly DE genes - for my data set SAMSeq is far more conservative than edgeR and baySeq (the two others I've tried). But its results make more sense when I look at them on a case by case basis.

        I usually use FDR < 0.05.

        Comment

        • slowsmile
          Member
          • May 2011
          • 22

          #5
          In my case, edgeR and DESeq gave me 3000~5000 up-regulated genes and ~1000 down-regulated genes, while SAMseq got me 9000 up-regulated but no down-regulated ones based on FDR cutoff of 0.05.
          I used raw gene counts from HTseq as input data. In my mind, the SAMSeq result is way off track...

          I have 3 biological replicates in each group. Do you think the sample size plays a role in the parametric vs nonparametric method descrepancy?

          Also, do you couple your DE gene selection process with fold change cutoff?

          Comment

          • kopi-o
            Senior Member
            • Feb 2008
            • 319

            #6
            OK, sounds strange - as far as I know, non-parametric methods usually need more replicates than parametric ones to achieve significance. In my case, I have dozens of replicates per group.

            I usually don't use a fold change cutoff but many people do.
            Last edited by kopi-o; 06-02-2012, 12:22 AM.

            Comment

            • dietmar13
              Senior Member
              • Mar 2010
              • 107

              #7
              npSeq

              three biological replicates seems to less for SAMseq.

              if you have problems with the distribution of up- and down-regulated genes you could try npSeq (very similar algorithm but npSeq uses symmetric cutoffs for the nonparametric statistic, while SAMseq uses asymmetric cutoffs).:



              i had no problem with the distribution of up- and downregulated genes (12 vs 12 matched pairs) and got more significant genes compared to all other methods, and the obtained gene list looked (e.g. pathway analysis)
              meaningfull regarding the raised biological question.

              Comment

              • nickschurch
                Junior Member
                • Jul 2012
                • 6

                #8
                Originally posted by kopi-o View Post
                Based on reading the paper (http://www-stat.stanford.edu/~tibs/ftp/Li_Tibs.pdf), they definitely developed the method with raw counts in mind, and I have used it with some success in that way. However since it appears to be strictly based on rank (non parametric) statistics, it should in principle work on RPKM too, I think.
                I think SAMSeq can work with a range of data. Section 10.1 of the SAM manual (http://www-stat.stanford.edu/~tibs/SAM/sam.pdf) lists several response formats, including Quantitative, Two Class, Paired etc... all of which have different coding formats and apply to different data types from different experimental setups. help(SAMseq) in R shows that is has a corresponding resp.type attribute.

                The 'Two class unpaired' and 'Paired' options here look typical for common formats of RNA-Seq experiments.

                Section 10.5 also indicated that "the user is required to normalize the data from the different experiments before running SAM".

                Comment

                • Paul_McMurdie
                  Junior Member
                  • Dec 2015
                  • 1

                  #9
                  Don't use RPKM, or other normalized counts for SAMSeq

                  For SAMSeq, although it is a nonparametric method, it does nevertheless expect original counts, not normalized counts. This is evident in a careful reading of the SAMSeq article, and also explicitly stated in the "npSeq" instructions:

                  "The normalization will be done by npSeq. RPKM cannot be used as the input data matrix"
                  --Page 3


                  npSeq is a variant of SAMSeq, also written by Li, and using the same resampling algorithm.

                  Note that, an earlier comment citing a suggestion in the SAM manual is irrelevant, as it is referring to a microarray method in SAM. NGS Seq counts are different.
                  Last edited by Paul_McMurdie; 12-11-2015, 03:17 PM. Reason: typo in package name

                  Comment

                  Latest Articles

                  Collapse

                  • 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
                  • 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.
                    07-01-2026, 11:43 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  24 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-09-2026, 10:04 AM
                  0 responses
                  34 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  21 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  34 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...