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
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin


              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
              Yesterday, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            45 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            46 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            39 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X