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

Not able to calculate mean_exp #1

Open
GabyBG opened this issue Aug 17, 2023 · 1 comment
Open

Not able to calculate mean_exp #1

GabyBG opened this issue Aug 17, 2023 · 1 comment

Comments

@GabyBG
Copy link

GabyBG commented Aug 17, 2023

Hello,

I am trying to test your tool in my scRNA-seq data. I had a h5ad object, that I converted to Seurat but when I try to run:

mean_exp=calculate_avg_exp(myseurat = seu_sub,myident = 'Response', n_bootstrap=100,seed=1)

I get the following error

Error in if (any(data.use == Inf)) {: missing value where TRUE/FALSE needed
Traceback:

1. calculate_avg_exp(myseurat = seu_sub, myident = "Ongoing_response", 
 .     n_bootstrap = 1, seed = 1)
2. lapply(1:n_bootstrap, get_ave_exp, myseurat, samples, myident)
3. FUN(X[[i]], ...)
4. AverageExpression(SeuratObject, group.by = myident, return.seurat = T)
5. PseudobulkExpression(object = object, pb.method = "average", 
 .     assays = assays, features = features, return.seurat = return.seurat, 
 .     group.by = group.by, add.ident = add.ident, slot = slot, 
 .     verbose = verbose, ...)

I am using
R 4.3.0
Seurat ‘4.3.0.1’
Seurat object 4.1

Thank you for your guidance

@qaz-94
Copy link

qaz-94 commented Aug 21, 2023

Hi Thank you for testing out our tool. Could you please share the rds file so that we can take a look at it?

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