DESeq2 Error: “Duplicate 'row.names' Are Not Allowed” When Using miRDeep2 Quantifier Output

Hi everyone,

I am analyzing microRNA sequencing data using Galaxy org. I successfully mapped my reads to the reference genome using miRDeep2 Mapper, followed by quantification using miRDeep2 Quantifier.

However, when I submitted the Quantifier output to DESeq2 for differential expression analysis, I encountered the following error (attached).

In the miRDeep2 quantifier output, I noticed that several mature miRNAs appear multiple times, each associated with different precursor miRNAs. I suspect these duplicate mature miRNA identifiers may be causing the error when DESeq2 attempts to import the count data.

My questions are:

  1. How should these duplicate entries be handled before submitting the count data to DESeq2? Should the counts for identical mature miRNAs be summed across their precursor entries, or is there a recommended alternative approach?

  2. Is there a recommended Galaxy workflow or preprocessing step to convert the miRDeep2 Quantifier output into a suitable count matrix for DESeq2?

I would appreciate any guidance on resolving this issue while ensuring that the resulting count matrix is appropriate for differential expression analysis.

Thank you!

Hi @Bhargavi

Yes, DESeq2 will require that the top level counts for each sample maps to a unique feature.

An example for how to sum up is described in this tutorial:

The important difference is in the content of the reference data. The tutorial has a one-to-one relationship between the mature and precursor miRnas. When for your data content, there is a one-to-many relationship:

You are correct about these repeated terms being the root technical problem. We have discussed this in a topic here at the forum before at EdgeR doesn´t run with count matrix in tabular format (obtained from mirDeep2 Quantifier) - #2 by jennaj

So, you’ll need to investigate to see which way to handle the data is best for your work. The parameters used with with the tools can also matter (summing weighted counts, handling fractional counts). Below are a few non-Galaxy resource as examples – the situation isn’t really covered but maybe I’ve missed it again.

For how to merge the counts (the technical part we can help with here), using the Group tool is probably the easiest. Or, you could not merge and create compound identifiers as discussed in the prior topic above.

Then for question 2,

The workflow associated with the tutorial could be modified for your use case. Several of the tools are older versions, so be sure to update to the latest version of each for the best performance! → Whole transcriptome analysis of Arabidopsis thaliana / Whole transcriptome analysis of Arabidopsis thaliana / Transcriptomics

Once you have count files, running DESeq2 is about the same for any data. That means a workflow like this one could be used, too! You could add in your steps to manipulate the count files at the start, or add it to the end of your current preprocessing workflow that runs the upstream tools.

I hope this gives some ideas. If you locate a scientific reference or decision tree for how to handle this type of specific type count data, please consider sharing it back! :slight_smile:

Thank you for that detailed answer. I’ll try what works for our sample data and report back which one worked.