-
Notifications
You must be signed in to change notification settings - Fork 44
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
ASHLAR registers tiles as cycles/fileseries not working #197
Comments
Sorry for the late response, but did you figure this out? Your command line looks OK if your files are named |
Hi,
|
Hi guys,
I am using ashlar to read two .ome.tiff images with 18 channels each that are two tiles of a bigger image. Unfortunately, ASHLAR initially added the images on top of each other, creating one image with 36 channels (18 channels x 2 cycles).
When I used the fileseries command: ashlar 'fileseries|/folderpath|pattern=tile{series:2}.ome.tiff|width=2|height=1|pixel_size=0.182|overlap=0.02' --output-channels 15 I got the following error:
aligning edge 1/1Traceback (most recent call last):
File "/home/t141g/.local/lib/python3.9/site-packages/ashlar/reg.py", line 674, in register_pair
shift, error = self._cache[key]
KeyError: (0, 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xxxxx/.local/bin/ashlar", line 8, in
sys.exit(main())
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/scripts/ashlar.py", line 212, in main
return process_single(
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/scripts/ashlar.py", line 243, in process_single
edge_aligner.run()
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/reg.py", line 485, in run
self.register_all()
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/reg.py", line 596, in register_all
self.register_pair(t1, t2)
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/reg.py", line 697, in register_pair
error = utils.nccw(o1, o2, self.filter_sigma)
File "/home/xxxxx/.local/lib/python3.9/site-packages/ashlar/utils.py", line 55, in nccw
correlation = np.abs(np.sum(img1w * img2w))
ValueError: operands could not be broadcast together with shapes (2976,109) (3695,109)
I don't really get the problem her, is there somebody who could help?
Thank you!
The text was updated successfully, but these errors were encountered: