Error to create a dds DESeq2 object.
0
0
Entering edit mode
22 months ago
cardon.chc • 0

Dear bioinformatic comunit,

I am new to using DESeq2, and I have a problem generating a dds object, in which I have the following error.

> dds.rsem <- DESeqDataSetFromTximport(tx.rsem, coldata, design = ~ Tissue + Location + Genotype + Time_point + Genotype:Time_point)
Error in validObject(.Object) :
  invalid class “SummarizedExperiment” object:
    nb of cols in 'assay' (1) must equal nb of rows in 'colData' (132)

However, when I look in my tx.rsem and coldata files look normal with the correct number of cols and rows, both with 132.

I would like to know if someone can give me some help, please?

I really appreciate any help you can provide.

DESeq2 RNAseq • 727 views
ADD COMMENT
1
Entering edit mode

No one can help you if they can't see a thing. Post the dimensions and first few lines of tx.rsem and coldata.

ADD REPLY
0
Entering edit mode

Here are the first lines of coldata

                                                    Tissue Location  Genotype
ILWN_RNAseq_G002_ATCACG_Arachis_hypogaea_I801_L1      leaf        n     GTC20
ILWP_RNAseq_G026_TTAGGC_Arachis_hypogaea_I801_L1      leaf        n     GTC20
ILWQ_RNAseq_G050_ACTTGA_Arachis_hypogaea_I801_L1      leaf        n     GTC20
ILWR_RNAseq_T062_GATCAG_Arachis_hypogaea_I801_L1      leaf        n Tifrunner

first lines of tx.rsem:

  ILWN_RNAseq_G002_ATCACG_Arachis_hypogaea_I801_L1
arahy.Tifrunner.gnm1.ann1.0002EG                                             0.00
arahy.Tifrunner.gnm1.ann1.0003EL                                            13.53
arahy.Tifrunner.gnm1.ann1.0008XH                                             4.98
arahy.Tifrunner.gnm1.ann1.002YPW                                           339.12
arahy.Tifrunner.gnm1.ann1.0034KJ                                            15.75
arahy.Tifrunner.gnm1.ann1.0046K4                                             0.10
arahy.Tifrunner.gnm1.ann1.004CIH                                            19.30
arahy.Tifrunner.gnm1.ann1.004J0D                                            56.98
arahy.Tifrunner.gnm1.ann1.005C3Q                                             7.36
arahy.Tifrunner.gnm1.ann1.005S9P                                             0.0
ADD REPLY
1
Entering edit mode

Okay...so are you absolutely positive that tx.rsem is in the right format for importing? It looks like your file has only a single column, and the error message suggests the same.

ADD REPLY
0
Entering edit mode

Yes, I am.

Now I did not use some commands that I was using before and it worked. But I am not sure if it is correct, but all the next commands worked well.

I was using the following command which I am not using now.

colnames(tx.rsem$counts) <- sub("hypogaea","I801_L", colnames(tx.rsem$counts)) tx.rsem$counts <- tx.rsem$counts[rownames(coldata)]

ADD REPLY

Login before adding your answer.

Traffic: 1354 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6