theislab / scarches

Reference mapping for single-cell genomics
https://docs.scarches.org/en/latest/
BSD 3-Clause "New" or "Revised" License
331 stars 51 forks source link

Have `_validate_var_names` support `csr_matrix` #179

Closed maarten-devries closed 1 year ago

maarten-devries commented 1 year ago

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.

Koncopd commented 1 year ago

@maarten-devries Than you!