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 run.CSIDE.replicates: 'object RCTD_controls not found' #163

Open
krademaker opened this issue Jun 13, 2023 · 2 comments
Open

Error in run.CSIDE.replicates: 'object RCTD_controls not found' #163

krademaker opened this issue Jun 13, 2023 · 2 comments

Comments

@krademaker
Copy link

Hello Dylan,

Running the run.CSIDE.replicates function with de_mode = 'general' will throw the following error:

run.CSIDE.replicates: running CSIDE for replicate 1

Error in rownames(RCTD_controls@RCTD.reps[[i]]@results$weights): object 'RCTD_controls' not found
Traceback:

1. run.CSIDE.replicates(Polioudakis_broad.RCTD.subset, cell_types = all_cell_types, 
 .     X.replicates = X.replicates, gene_threshold = 5e-05, cell_type_threshold = 10, 
 .     fdr = 0.01, weight_threshold = 0.5, doublet_mode = FALSE, 
 .     de_mode = "general")
2. setdiff(rownames(X), rownames(RCTD_controls@RCTD.reps[[i]]@results$weights))
3. as.vector(y)
4. rownames(RCTD_controls@RCTD.reps[[i]]@results$weights)

The error originates at this line, where the RCTD.replicates object that is passed as parameter to the function is being called as RCTD_controls instead, which doesn't exist.

Best,
Koen

@Dillon214
Copy link

Getting this problem as well. I imagine it is a typo and meant to be the variable RCTD.replicates? I'm not sure...
Did you determine a good workaround for this, by any chance?

@krademaker
Copy link
Author

krademaker commented Oct 18, 2023

@Dillon214 For now I simply replaced the line RCTD_controls@RCTD.reps with RCTD.replicates@RCTD.reps

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