SummarizedExperiment-- Error in all_dims[, 1L] : incorrect number of dimensions
2
0
Entering edit mode
5.1 years ago
hsu ▴ 40

I'M constructing a SummarizedExperiment object by

zinbzywt <- SummarizedExperiment(assays=list(counts=zywtmono2), colData=zywtsampleinfor) in R.

There is an error:Error in all_dims[, 1L] : incorrect number of dimensions

What should I do about it ?

Thank you very much!

SummarizedExperiment R • 2.5k views
ADD COMMENT
0
Entering edit mode

This part:

assays=list(counts=zywtmono2)

Does not make sense to me. Maybe you mean assays=list(zywtmono2) ?

ADD REPLY
0
Entering edit mode

Can you post the results of head(zywtmono2 (make sure it's correctly formatted).

ADD REPLY
1
Entering edit mode
5.1 years ago
panzhang0404 ▴ 10

See if your zywtmono2 object is matrix or data frame. It has to be a matrix.

ADD COMMENT
0
Entering edit mode
5.1 years ago
hsu ▴ 40

This part is right. I tried your answer but still got the same error.

ADD COMMENT
0
Entering edit mode

Reply under my comment, do not post an answer.

ADD REPLY

Login before adding your answer.

Traffic: 1906 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