-
Notifications
You must be signed in to change notification settings - Fork 2
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
add option to overwrite a previous atlas import #19
Conversation
a couple of additional questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @carlocastoldi ,
Thanks for the PR. Just a few changes:
- I think we can keep the old API and mark it as deprecated while implementing the new API.
- I'm not sure what overwrite does
- Please keep the def keywords. That's for consistency with Fiji behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much fancyness! I prefer the simple notation
src/main/resources/scripts/Compute_cell_centroid_atlas_coordinates.groovy
Outdated
Show resolved
Hide resolved
Not really, I think it could return the root annotation without any problem.
Sure, if you know how to do that, that'd be nice.
Hmm, why not. But this one is simple, and people like simplicity. Why not adding another one if you need more fine tuning. But more importantly, what do you have in mind in terms of complexity? Thanks for the PR! |
All good, thanks! |
So, here's the commit message:
Should I merge like that or do you plan to add other stuff in this PR ? |
… the same atlas version. Overwrite will only work if the previous atlas's hierarchy wasn't disrupted * AtlasTools.loadWarpedAtlasAnnotations() now returns the Root annotation * the Root annotation is now classified by the corresponding atlas version name * the Root annotation is locked * if a previous atlas import was modified but its hierarchy is not disrupted (i.e. everything is still a child of Root), it can be re-imported without resulting in duplicate annotations * removes the atlasName from some API calls when the onthology is passed too. The old API is deprecated * fixes deprecated calls
actually, when was the last time that the script with all the repeated Do you still want to put a non-compilable script just so that people have to read and copy the parts that are interesting to them?
|
I did it, in the end
Perhaps this can be done in a future PR. I feel like it's something more important for the long-term support of this extension, rather than for immediate need
I'd say the ability to display and choose between available atlas alignments |
Oups, missed your replies, you were too fast...
Yes that's right. We can remove the script. We could add a command that would open the documentation instead. And the documentation needs to be rewritten.
Wait, you have several alignments for the same image ? |
Not personally, no. But I've helped other laboratories that work on non-adult mice. Since their mice don't have an atlas perfectly designed on their age, they have to choose the lesser evil between the younger and the older one. For this, they wanted to import both and compare the atlases on the single images, side by side |
I beg your pardon for askin, but is there any reason this wasn't merged yet? :o |
No reason, I asked above for your formal 'OK' and if you wanted to add additional stuff but this got lost with the other posts. But I suppose it's all ok on your side and there's nothing to add, so let's go for it. |
Thank you! |
With this PR:
Root
annotation is now classified by the corresponding atlas version nameRoot
annotation is lockedRoot
), it can be re-imported without resulting in duplicate annotationsatlasName
from some API calls when the onthology is passed too. May be breaking, but it is redundant and misleading