This is a test version of Biostars. For the public version, visit https://www.biostars.org.
SummarizedExperiment-- Error in all_dims[, 1L] : incorrect number of dimensions

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

This part:

assays=list(counts=zywtmono2)

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

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

2 answers

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

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

Reply under my comment, do not post an answer.

Log in to answer this question.