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

CleanCellBoundaries error #67

Open
kernco opened this issue Aug 17, 2020 · 3 comments
Open

CleanCellBoundaries error #67

kernco opened this issue Aug 17, 2020 · 3 comments

Comments

@kernco
Copy link

kernco commented Aug 17, 2020

I'm getting this error in the CleanCellBoundaries step of the pipeline. Is this a bug in the code, or something I'm doing wrong?

Traceback (most recent call last):
  File "C:\Users\ckern\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\ckern\Anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\users\ckern\merlin\merlin\__main__.py", line 3, in <module>
    merlin()
  File "c:\users\ckern\merlin\merlin\merlin.py", line 138, in merlin
    e.run(task, index=args.fragment_index)
  File "c:\users\ckern\merlin\merlin\core\executor.py", line 52, in run
    task.run(index)
  File "c:\users\ckern\merlin\merlin\core\analysistask.py", line 329, in run
    raise e
  File "c:\users\ckern\merlin\merlin\core\analysistask.py", line 320, in run
    self._run_analysis(fragmentIndex)
  File "c:\users\ckern\merlin\merlin\analysis\segment.py", line 168, in _run_analysis
    .read_features(currentFOV)
  File "c:\users\ckern\merlin\merlin\util\spatialfeature.py", line 500, in read_features
    self._load_feature_from_hdf5_group(featureGroup[k]))
  File "c:\users\ckern\merlin\merlin\util\spatialfeature.py", line 456, in _load_feature_from_hdf5_group
    zGroup['p_' + str(p)]))
  File "c:\users\ckern\merlin\merlin\util\spatialfeature.py", line 443, in _load_geometry_from_hdf5_group
    return geometry.shape(geometryDict)
  File "C:\Users\ckern\Anaconda3\lib\site-packages\shapely\geometry\geo.py", line 35, in shape
    if not ob["coordinates"]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I'm attaching my analysis tasks file (renamed from .json to .txt because Github wouldn't let me attach a JSON). Let me know if you need any other information.

with_segmentation.txt

@seichhorn
Copy link
Collaborator

Sorry for the delay in getting to this. If you're still having an issue with this, could you tell me what version of Shapely is installed in your environment?

@kernco
Copy link
Author

kernco commented Sep 26, 2020

Shapely was version 1.7.0 when I had this error. I just did an update of my conda environment yesterday and shapely is now updated to 1.7.1. Should I try it again?

@seichhorn
Copy link
Collaborator

Try downgrading to shapely<1.7a2

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

2 participants