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

Error in SCE2AnnData() if row/col data is empty #105

Closed
lazappi opened this issue Dec 8, 2023 · 0 comments
Closed

Error in SCE2AnnData() if row/col data is empty #105

lazappi opened this issue Dec 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lazappi
Copy link
Member

lazappi commented Dec 8, 2023

Conversion error if these slots are empty.

counts <- matrix(rpois(100 * 50, 4), nrow = 100, ncol = 50)

sce <- SingleCellExperiment::SingleCellExperiment(
    assays = list(counts = counts)
)

adata <- zellkonverter::SCE2AnnData(sce, X_name = "counts")
#> Error in py_call_impl(callable, call_args$unnamed, call_args$named) : 
#>  ValueError: Observations annot. `obs` must have as many rows as `X` has rows (50), but has 0 rows.
@lazappi lazappi added the bug Something isn't working label Dec 8, 2023
@lazappi lazappi closed this as completed in 7954b4a Mar 9, 2025
lazappi added a commit that referenced this issue Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant