thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyanndata-0.2.1/src/anndata.rs:36:60:
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 323
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
Discussed in https://github.com/kaizhang/SnapATAC2/discussions/229
Originally posted by Susan920715 February 2, 2024
hello,everyone!
when I run snap.pp.filter_cells(adi_adatas, min_tsse=7,n_jobs=1)
It always makes the following error,,how can I solve it? thanyou very much
25%|██▌ | 1/4 [00:05<00:16, 5.54s/it]thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyanndata-0.2.1/src/anndata.rs:36:60:
called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 7294 to 12257
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process SpawnPoolWorker-81:
Traceback (most recent call last):
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 315, in _bootstrap
self.run()
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/snapatac2/_utils.py", line 30, in _func
adata = internal.read(x[1])
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 7294 to 12257
thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyanndata-0.2.1/src/anndata.rs:36:60:
called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 4716 to 6140
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process SpawnPoolWorker-82:
Traceback (most recent call last):
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 315, in _bootstrap
self.run()
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/snapatac2/_utils.py", line 30, in _func
adata = internal.read(x[1])
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 4716 to 6140
thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyanndata-0.2.1/src/anndata.rs:36:60:
called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 5137 to 9573
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process SpawnPoolWorker-83:
Traceback (most recent call last):
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 315, in _bootstrap
self.run()
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/data/wangjiamin/miniconda3/envs/py3.9/lib/python3.9/site-packages/snapatac2/_utils.py", line 30, in _func
adata = internal.read(x[1])
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: dimension cannot be changed from 5137 to 9573
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with snap.pp.filter_cells(adi_adatas, min_tsse=7, n_jobs=1). Start by reading snapatac2/_utils.py at line 30 and the reported pyanndata anndata.rs location, then trace the dimension mismatch during worker reads. Done means the filtering operation completes without a pyo3_runtime.PanicException and preserves valid dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- bioinformatics, data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100