This is a test version of Biostars. For the public version, visit https://www.biostars.org.
DESEQ2:Error in rownames, what is the problem?

Hi there,

I am using DESEQ2 for RNAseq analysis but i do not understand why I get this error.

> dds <- DESeqDataSetFromMatrix(countData = data, 
+                               colData = labeldata, 
+                               design =~ subtype, tidy = TRUE)

**Error** in `.rowNamesDF<-`(x, value = value) : 
  duplicate 'row.names' are not allowed

I really do not know what is the issue. Could you please help?

Thanks,

rna-seq r

1 answer

Hi,

The error is as stated:

duplicate 'row.names' are not allowed

You should try to find out which rownames are duplicated, and why, via:

rownames(data)[duplicated(rownames(data))]

If you wish to proceed irrespective of this, then change them / make them unique via:

rownames(data) <- make.names(rownames(data))

Log in to answer this question.