Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R package 'Error in t.default(W) : argument is not a matrix' #1

Closed
ltosti opened this issue Jun 12, 2018 · 1 comment
Closed

R package 'Error in t.default(W) : argument is not a matrix' #1

ltosti opened this issue Jun 12, 2018 · 1 comment
Labels

Comments

@ltosti
Copy link

ltosti commented Jun 12, 2018

Hi there,

When I try to run:

sce_10x<- ssc.reduceDim(sce_10x,method="pca",seed = 9997, assay.name="counts")

I get the error above. Could you help fixing it?

Thanks!

@Japrin
Copy link
Owner

Japrin commented Jun 13, 2018

I think the bug is fixed now. Can you try it again?

In the last implementation, the assay data sored in the SingleCellExperiment object (sce_10X here) was assumed to be class matrix, so the transpose function from base package (base::t()) was used. Maybe in your data, the assay data is compressed matrix class such as class dgTMatrix, so base::t() didn't work. I changed it to BiocGenerics::t(). In my end, it works well now.

@Japrin Japrin closed this as completed Jun 23, 2018
@Japrin Japrin added the wontfix label Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants