-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update utils.py #51
Update utils.py #51
Conversation
Removed those lines concerning the leaves_only change which made these names different. We could keep them as well, but with the updated name given by the leaves_only change.
Hmm, interesting problem: this means we completely lose the ability to run this code on the "stock" AIBS atlas. Do you think there are other places where a similar workaround is necessary? |
These filters were very specific to the ccfbbp version (version from Csaba). They had very little effect on ccfv2 because they improved the fibers and none on ccfv3. |
I think the best solution is to remove this hardcoded list of region names and pass it via a configuration file where one can just change "Cerebellum" with "Cerebellum: Other" or whatever new name that region got in the input hierarchy/annotation (or just drop it as in this PR). |
This would require a lot more work to deal with configurations that hold region names and make sure that the provided values makes sense. In that case we might as well refactor the whole pipeline to use my method instead of Csaba's for the cell and neuron densities estimation |
It's already the case: and many other configuration files I am not aware of. |
@Sebastien-PILUSO > Remove those line which involved region names that are different from the ones updated by the leaves_only step.
I'm still confused as to what the ramifications of this are: when I look at the underlying voxels that this removes (ie: Which seems like a non-trivial change. What results does this correct? |
Based on the discussion at today's SBO stand-up, one way forward would be to replace the five hardcoded region names in the fiber_tracts_ids with a configuration file containing the region names (and the corresponding
and the pipeline will customize it based on the input hierarchy/annotation. |
That fixes the case of the In addition, it still requires the person running the pipeline to examine the code to know what config file does, so it's, imo brittle in the same way as embedding it in the code. Finally, the fact that just removing the |
Agree. We can find a fix for the general case later on as it requires much more work/time.
The current config files in the repo are accompanied by a ReadMe, we can do the same for this one.
Why? Once the hardcoded region names are replaced with a loop over the region names in the configuration file, one can update just the config file. |
Hi @mgeplf, To respond to one of your comment earlier.
In very short, in older versions of the annotations, fibers and main regions were in separated files (ccfv2 / ccfbbp). So for ccfbbp and ccfv2, Csaba Erö and I decided that these voxels should be counted as fibers. Now with the renaming of the regions, obviously the filters did not work anymore... 2 possible solutions:
|
@drodarie > [....] Which means that for most of the voxels annotated to Basic cell groups and regions, they correspond to fibers [...] Thanks, that's very helpful. I will add commentary on the code to that effect. |
I'd prefer not to accumulate more technical debt like this. I will give a shot to writing a DSL this afternoon. |
Ok, I have a draft of a DSL that covers the features that are currently in the group_ids code: I still need to plumb it through the app, but most of the backend code is workikng. |
I have everything in #55; I have tried running it with the default configs, and I seem to get the same output as before, so that's a promising sign. |
Since #55 is merged, I think we can close this. |
Remove those line which involved region names that are different from the ones updated by the leaves_only step.
We could keep them as well, but with their updated names given by the leaves_only change ("_other").
See https://bbpteam.epfl.ch/project/issues/browse/BBPP134-837?focusedId=223892&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-223892