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

Issue with BPCells::write_matrix_dir: Column Name Error #57

Closed
lisch7 opened this issue Nov 13, 2023 · 2 comments
Closed

Issue with BPCells::write_matrix_dir: Column Name Error #57

lisch7 opened this issue Nov 13, 2023 · 2 comments

Comments

@lisch7
Copy link

lisch7 commented Nov 13, 2023

Hello,

I am encountering an issue with the BPCells::write_matrix_dir function and am seeking some assistance.

Background:
I have processed my dataset using Scanpy and am now looking to transition this data into Seurat for further analysis. During this transition, I encountered problems with the BPCells::write_matrix_dir function. My code is as follows:

data <- BPCells::open_matrix_anndata_hdf5(
  path = "02.preprocess/seu_shiftlog_pearson_hvg2000_scale_pca_leiden_res1.0_umap_anno_scvi_by_sample_anno_1113_filter.h5ad"
)
BPCells::write_matrix_dir(mat = data, dir = "02.preprocess/sce_BP")

Problem Description:
When attempting to use this function, I encountered an error stating that the matrix has some column names, but they are not equal to the number of columns. The error message is:

Warning: Matrix compression performs poorly with non-integers.Consider calling convert_matrix_type if a compressed integer matrix is intended.
This message is displayed once every 8 hours.
Error: Matrix has some colnames, but not equal to col number

Request for Assistance:

  • How should I go about debugging the mismatch in column names?

Any help or suggestions would be greatly appreciated.

Thank you!

bnprks added a commit that referenced this issue Nov 15, 2023
The AnnData logic was slightly off when row/col names
were passed in from memory rather than read from
disk. This should provide a fix
@bnprks
Copy link
Owner

bnprks commented Nov 15, 2023

Hi, I think this was due to a bug in BPCells which should be fixed now.

Could you try re-installing with the updated BPCells version and see if that fixes your issue?

@immanuelazn
Copy link
Collaborator

Closing due to inactivity

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

3 participants