Closed bhavyaac closed 2 years ago
Closing this issue since I no longer need help. The problem was that the pySCENIC results (stored in auc
) only contained a subset of the cells present in the Seurat object.
For reference, after removing all cells from z_scores
, counts
, and clusters
that did not exist in the auc
file and retrying create_domino()
, I received another error which I was unable to resolve:
Error in dom@z_scores[rec, keep_id] : subscript out of bounds
For any others with similar issues in the future, I am updating about the error from my previous comment:
Error in dom@z_scores[rec, keep_id] : subscript out of bounds
The issue in the end was that my Seurat object's scale.data
slot contained only the top 2000 genes (as is the default for the ScaleData()
function), and so dom@z_scores
did not contain all of the genes that were in dom@counts
. I resolved it by rerunning ScaleData()
for all genes.
Since this likely to be a common issue, I think that the package would benefit from a warning to the user if this is detected.
Hello!
I got the following strange error message when trying to run the function
create_domino()
in an R script:Do you have any idea what could be causing this error?
This is my code for your reference:
Thank you for your help!