-
Notifications
You must be signed in to change notification settings - Fork 28
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
double free or corruption (out) #112
Comments
Hi. From a quick internet search this looks this a C error. We don't directly use any C code in {zellkonverter} so it could be coming from another R package, a Python package or maybe something to do with the SLURM job you seem to be using. Finding out exactly where would be difficult but it might help to do things interactively so that you can see the full output. It could have something to do with your R/Python installation so I would check that (the warnings when you load packages also suggest this). We don't use {SeuratObject} in {zellkonverter} so I'm not sure why that is loaded unless you are doing other things in this script. |
i tried only with library(zellkonverter) and the issue persisted. Yes, I am using slurm and conda environment. Registered S3 methods overwritten by 'zellkonverter': ℹ Converting AnnData to SingleCellExperiment ℹ Converting uns$citation ℹ Converting uns$schema_reference ℹ Converting uns$schema_version ℹ Converting uns$title ✔ uns converted [133ms] ✔ Converting uns to metadata ... done ℹ Converting X matrix to assayCellExperiment
Matrix products: default locale: time zone: Asia/Riyadh attached base packages: other attached packages: loaded via a namespace (and not attached): |
Running Would it be possible for you to share the file? That would help work out if it is something to do with the file or your system. If that's not possible maybe you have another machine you could try running it on? |
Thank you. I will give the AnnData2SCE() a try. It is the neurons object at https://cellxgene.cziscience.com/collections/283d65eb-dd53-496d-adb7-7570c7caa443 (wget https://datasets.cellxgene.cziscience.com/a5463d8f-07df-4870-8cae-bc504de762c8.h5ad) |
I tried AnnData2SCE() with and without conda and still got the same issue : double free or corruption (out). With module load R Java Development Kit version 19.0.1 is now loaded R 4.3.2, JDK 19.0.1 and GNU 12.2.0 are now loaded Loading R/4.3.2/gnu-12.2.0 Registered S3 methods overwritten by 'zellkonverter':
Matrix products: default locale: tzcode source: system (glibc) attached base packages: other attached packages: loaded via a namespace (and not attached): double free or corruption (out) With a new conda environment:
Matrix products: default locale: tzcode source: system (glibc) attached base packages: other attached packages: loaded via a namespace (and not attached): |
I was able to load the file in Python but I ran out of memory trying to read it with {zellkonverter}. Maybe we are hitting the limits of what R can handle in a normal array. Can you please try:
At the moment, I'm not sure if it's a problem with file, R limitations, a bug in {zellkonverter}, something to do with your setup or something else. |
@Flu09 Were you able to try any of these things? |
Closing this issue. Please comment if you want to follow up. |
sce <- zellkonverter::readH5AD(h5ad_path, verbose = TRUE)
Registered S3 methods overwritten by 'zellkonverter':
method from
py_to_r.numpy.ndarray reticulate
py_to_r.pandas.core.arrays.categorical.Categorical reticulate
Loading required package: SeuratObject
Loading required package: sp
‘SeuratObject’ was built with package ‘Matrix’ 1.6.3 but the current
version is 1.6.5; it is recomended that you reinstall ‘SeuratObject’ as
the ABI for ‘Matrix’ may have changed
Attaching package: ‘SeuratObject’
The following object is masked from ‘package:base’:
ℹ Using the Python reader
ℹ Using anndata version 0.10.2
⠙ Reading '/.../.../.../.../a5463d8f-07df-4870-8cae-bc504de762c8.h5ad '
✔ Read '/.../.../.../.../a5463d8f-07df-4870-8cae-bc504de762c8.h5ad' [18m 37.6s]
ℹ Converting AnnData to SingleCellExperiment
ℹ Converting uns to metadata
ℹ Converting uns
ℹ Converting uns$batch_condition
✔ uns$batch_condition converted [11ms]
ℹ Converting uns$citation
✔ uns$citation converted [12ms]
ℹ Converting uns$schema_reference
✔ uns$schema_reference converted [12ms]
ℹ Converting uns$schema_version
✔ uns$schema_version converted [12ms]
ℹ Converting uns$title
✔ uns$title converted [12ms]
✔ uns converted [181ms]
✔ Converting uns to metadata ... done
ℹ Converting X matrix to assayCellExperiment
double free or corruption (out)
/var/spool/slurm/job32682951/slurm_script: line 26: 2767444 Aborted
I am trying to convert an h5ad object into sce and I have encountered this issue. I will if you can help. Thank you.
The text was updated successfully, but these errors were encountered: