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

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘assay’ for signature ‘"dgRMatrix", "character"’ #96

Open
houruiyan opened this issue Dec 10, 2021 · 1 comment

Comments

@houruiyan
Copy link

Hello, thank you for your effort to develop this good tools.

I meet some trouble when I use it.
My kcadata is a sce data type.
image
But when I run clusters <- quickCluster(kcadata@assays@data$X) It can run smoothly.

However, when I run computeSumFactors, It has another new question. Hope to get your help. Thank you!
image

@LTLA
Copy link
Collaborator

LTLA commented Jan 18, 2022

For quickCluster, it's expecting an assay called counts. If your count data is differently named, specify it in assay.type.

Same for your first error using computeSumFactors.

For the second error, all compute*Factors functions expect an SCE input. If you have a matrix, use scran::calculateSumFactors instead - see the documentation for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants