When reference and query dataset have different var_names, and adata.X is a scipy.sparse.csr_matrix, then _validate_var_names fails with a ValueError: zero-dimensional arrays cannot be concatenated.
It might be nice to support sparse matrices as input, since it's often the default in AnnData.
When reference and query dataset have different
var_names
, andadata.X
is ascipy.sparse.csr_matrix
, then_validate_var_names
fails with aValueError: zero-dimensional arrays cannot be concatenated
. It might be nice to support sparse matrices as input, since it's often the default in AnnData.