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

Getting segmentation fault(core dumped) error while converting anndata to SCE object across multiple function calls #85

Open
ankur26197-acog opened this issue Jul 14, 2022 · 1 comment
Labels
needs info The reported information is incomplete

Comments

@ankur26197-acog
Copy link

ankur26197-acog commented Jul 14, 2022

Hi,
I am analysing scRNA seq data using R for implementing all the steps and anndata2ri for interchangeability of anndata to SCE objects. I have wrapped these steps into separate functions. After running the first step i.e. QC, when I tried to execute the next step, I got segmentation fault(core dumped) while converting anndata to SCE object. Interestingly if I execute these functions in separate notebooks, it works.

I tried a couple of approaches like increasing memory for notebook, upgrading packages but nothing worked . At last when I passed the copy of anndata instead of the actual object, the issue was resolved. I am wondering what could be the reason for that.

Steps to reproduce-

  1. Load a scRNA dataset in anndata.
  2. Write functions for analysis like QC, normalisation, integration, clustering, etc. in R
  3. Source each of these function using r from rpy2.robjects module and call them from a notebook/python file. Make sure all these functions calling the respective R functions are in the same notebook/python file. Pass the same anndata object modified after every function call.
  4. After running QC, during the next function call while converting anndata to SCE, the kernel will die if running in a notebook else you will get a segmentation fault if running in a python file. Use faulthandler for a detailed stacktrace.

Ubuntu 20.04 Python version 3.8.8 anndata version 0.8.0 anndata2ri version 1.0.3 rpy version 3.2.7

Docker is used for complete setup.

@ankur26197-acog ankur26197-acog changed the title Getting segmentation fault(core dumped) error while updating anndata in multiple function calls Getting segmentation fault(core dumped) error while updating anndata across multiple function calls Jul 14, 2022
@ankur26197-acog ankur26197-acog changed the title Getting segmentation fault(core dumped) error while updating anndata across multiple function calls Getting segmentation fault(core dumped) error while converting anndata to SCE object across multiple function calls Jul 14, 2022
@flying-sheep
Copy link
Collaborator

Hi, unfortunately those steps don’t help. You’ll need to be far more specific before we can help you.

Please check out this tutorial: http://sscce.org/

@flying-sheep flying-sheep added the needs info The reported information is incomplete label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info The reported information is incomplete
Projects
None yet
Development

No branches or pull requests

2 participants