GithubHelp home page GithubHelp logo

GUI: Alignment Issue about clearmap2 HOT 4 CLOSED

cardinger avatar cardinger commented on July 26, 2024
GUI: Alignment Issue

from clearmap2.

Comments (4)

crousseau avatar crousseau commented on July 26, 2024

Before optimising with landmarks, I would first check that the automated alignment gives a reasonable result.
Since you are using the dev version, you are missing the button to revert from landmarks based to automated (whch already exists in the test branch). What you can do is remove the .pts files in the elastix subfolders of your sample folder.
Also, the kind of result yo get could be expected if your orientation, resolution or crop parameters are erroneous, please check those before trying again.

from clearmap2.

cardinger avatar cardinger commented on July 26, 2024

Removing the .pts files and fixing a typo in the resolution has helped. Thanks!

If you have time for one more question - is there an easy way to export the cell counts labeled by brain region from the GUI? I don't see an option like this under the Cellmap tab, but maybe it is somewhere else?

Screencast.from.05-31-2023.12.54.37.PM.webm

from clearmap2.

crousseau avatar crousseau commented on July 26, 2024

After running the cell detection, there should be 2 new files. a cells.feather file which is a binary table format with one line per cell and a .csv file where there is only the total number of cell for each brain region (x2 because they are split by hemisphere).
The .feather format was chosen for performance reasons because a text format like csv is not suited for millions of points

from clearmap2.

cardinger avatar cardinger commented on July 26, 2024

Thanks!

I see the cells.feather file. However, I do not see the .csv.

When I run the cell detection, I get this error:

File "/home/lapishla/miniconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/gui/tabs.py", line 627, in run_cell_map self.cell_detector.post_process_cells() # FIXME: save cfg and use progress File "/home/lapishla/miniconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/processors/cell_map.py", line 126, in post_process_cells self.export_collapsed_stats() File "/home/lapishla/miniconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/processors/cell_map.py", line 371, in export_collapsed_stats tmp['Structure order'] = grouped['order'].first() File "/home/lapishla/miniconda3/envs/ClearMapUi39/lib/python3.9/site-packages/pandas/core/frame.py", line 3950, in __setitem__ self._set_item_frame_value(key, value) File "/home/lapishla/miniconda3/envs/ClearMapUi39/lib/python3.9/site-packages/pandas/core/frame.py", line 4104, in _set_item_frame_value raise ValueError( ValueError: Cannot set a DataFrame with multiple columns to the single column Structure order

I see there is a comment in there: # FIXME: save cfg and use progress - are there any updates which have fixed this issue? I believe this is why I am missing the .csv. Thanks again

from clearmap2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.