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

Numbat error with custom reference #97

Closed
cv55 opened this issue Jan 19, 2023 · 1 comment
Closed

Numbat error with custom reference #97

cv55 opened this issue Jan 19, 2023 · 1 comment

Comments

@cv55
Copy link

cv55 commented Jan 19, 2023

Hello, thanks for the great tool.
I am trying to use Numbat using the average of my cells as reference. I use the provided function aggregate_counts(..), but i keep getting the error:

Error in mutate():
! Problem while computing p = t.test.pval(...).
ℹ The error occurred in row 1.
Caused by error in t.test.default():
! data are essentially constant
Traceback: ...

This is the first few reference genes and the annotation file to run the aggregate_counts().

Screenshot 2023-01-19 at 16 45 09
Screenshot 2023-01-19 at 16 45 18

@teng-gao
Copy link
Collaborator

Hello, the error message you show might suggest that you're using another function called aggregate_counts from a different package. You can try numbat::aggregate_counts instead.

Your reference gene should be a count matrix not normalized rates. Please refer to numbat::count_mat_ref and numbat::annot_ref for examples.

@teng-gao teng-gao closed this as completed Mar 6, 2023
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