You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error when following the guidance for running scanorama with reticulate as below:
# List of datasets (matrices of cells-by-genes):
datasets <- list( list of matrix )
# List of gene lists:
genes_list <- list( list of list of string )
library(reticulate)
scanorama <- import('scanorama')
# Integration.
integrated.data <- scanorama$integrate(datasets, genes_list)
# Batch correction.
corrected.data <- scanorama$correct(datasets, genes_list, return_dense=TRUE)
# Integration and batch correction.
integrated.corrected.data <- scanorama$correct(datasets, genes_list,
return_dimred=TRUE, return_dense=TRUE)
My datasets object is a list of matrices.
class(datasets[[1]])
[1] "matrix" "array"
When I pass these to the integrate function, I get the following error: ERROR: Data sets must be numpy array or scipy.sparse.csr_matrix, received type <class 'str'>.
Do I need to convert my R matrices to a different class before passing to the integrate function?
Best wishes,
Lucy
The text was updated successfully, but these errors were encountered:
Hi,
I am getting an error when following the guidance for running scanorama with reticulate as below:
My datasets object is a list of matrices.
class(datasets[[1]])
[1] "matrix" "array"
When I pass these to the integrate function, I get the following error:
ERROR: Data sets must be numpy array or scipy.sparse.csr_matrix, received type <class 'str'>.
Do I need to convert my R matrices to a different class before passing to the integrate function?
Best wishes,
Lucy
The text was updated successfully, but these errors were encountered: