Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in microbial count object: Error in hatmatrix/non-conformable arguments

    I imported a phyloseq object to DESEQ2 for obtaining the log2fold change in the number of OTU's per sample. My condition is the disease_stat: cancer, healthy, adenoma

    Following is the code i used:

    phyloseq_to_deseq2(biom_otu_tax, ~disease_stat)
    cts=counts(DESeq2BIOM)
    geoMeans = apply(cts, 1, function(row) if (all(row == 0)) 0 else exp(mean(log(row[row != 0]))))
    DESeq2BIOM = estimateSizeFactors(DESeq2BIOM, geoMeans = geoMeans)
    #It stopped working after this point
    DESeq2BIOM = estimateDispersions(DESeq2BIOM)
    DESeq2BIOMRES = DESeq(DESeq2BIOM,test = "Wald", betaPrior = "FALSE")
    DESeq2BIOMRES = DESeq(DESeq2BIOM,test = "Wald")

    The error I get is Error in t(hatmatrix %*% t(y)) :
    "error in evaluating the argument 'x' in selecting a method for function 't': Error in hatmatrix %*% t(y) : non-conformable arguments"

    I browsed a few other solutions before posting a question: http://seqanswers.com/forums/archive...p/t-46009.html
    They did not address my issue.

    What does this error indicate? Help in troubleshooting much appreciated!

  • #2
    I moved this to Bioinformatics where you'll have better luck.

    Comment


    • #3
      Error in hatmatrix %*% t(y) : non-conformable arguments"

      Thanks for moving it here. New to the community and would appreciate some direction to troubleshoot the issue!

      Comment


      • #4
        What version of DESeq2 software are you using? Type: sessionInfo(). The latest release is 1.8, so I'd recommend first checking if updating helps.

        Note that DESeq() includes estimateDispersions() as a step, so you can just proceed from your custom size factor calculation to DESeq().

        Comment


        • #5
          Hello,

          I happen to have a similar problem to what the original poster had:

          > DiffAbund <- DESeq(DiffAbund, test="Wald", fitType="parametric")
          estimating size factors
          estimating dispersions
          gene-wise dispersion estimates
          Error in t(hatmatrix %*% t(y)) :
          error in evaluating the argument 'x' in selecting a method for function 't': Error in hatmatrix %*% t(y) : non-conformable arguments



          The DESeq2 version I'm running is 1.8.2.

          Any suggestions on what might be the problem and how to solve it? I have a bunch of variables in the model, so I guess taking a few out could solve the issue with the matrix operations, but I'm trying to avoid that. Any help would be very mucho appreciated.

          Comment


          • #6
            I know this is an old thread, but in my case the error was because I had collapsed technical replicates

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Latest Developments in Precision Medicine
              by seqadmin



              Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

              Somatic Genomics
              “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
              05-24-2024, 01:16 PM
            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 05-24-2024, 07:15 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-23-2024, 10:28 AM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-23-2024, 07:35 AM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-22-2024, 02:06 PM
            0 responses
            10 views
            0 likes
            Last Post seqadmin  
            Working...
            X