Neural-Systems-at-UIO / nutil

https://nutil.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 5 forks source link

Error: Report must have unique names for : _s #277

Closed taminastelzer closed 11 months ago

taminastelzer commented 1 year ago

Hi,

thanks for this amazing tool. I really would like to use it for my analysis. However, I encountered some issues. I followed the QUINT workflow: Atlas Registration with DeepSlice, QuickNII -> object segmentation with Ilastik -> Now I want to do the quantificaiton with Nutil using the generated data.

I labeled all the files in the mentioned way (_sXXX). Nevertheless, I receive following error message in Nutil: Error: Report must have unique names for : _s

Labeled Files Input for Nutil

Labeling Segmentation labeling atlas-brain

Thanks a lot!

sharoncy commented 1 year ago

Hi. Glad to hear you're using the tools. If you send me a segmentation, corresponding atlas map, the .xml or .json file from QuickNII and your .nut file from Nutil I'll investigate further. Email s.c.yates@medisin.uio.no Sharon.

sharoncy commented 1 year ago

This issue has been solved. As a summary, there was a problem with the unique ID (extra _s in filename). Close 17.02.23.

WelcomeKon commented 1 year ago

Hi, i have a similar issue. It specifically notes: _Error: Report must have unique names for : s019 image

But this is already the unique ID I created.

image

As a result I dont get any reports just these few images: image (the atlas is meant to be turned that way since I am trying to focus only on one hemisphere)

Is there something, that I am missing?

Thanks in advance for any help. Konstantin.

Majpuc commented 1 year ago

Could you have a look at this @sharoncy ?

sharoncy commented 1 year ago

Hi Konstantin, I agree that the segmentation looks like it's been named correctly. The unique ID must also be present in the xml/json file from QuickNII or VisuAlign and in the corresponding atlas map. If you send me an example dataset (the xml or json from QuickNII/VisuAlign, the segmentation with ID: s019, atlasmap with ID _s019 and a copy of the .nut file from Nutil), I'd be happy to investigate for you. Email s.c.yates@medisin.uio.no

Another point. Since you are working with hemibrain sections, it's also good idea to run your analysis with masks to exclude the missing tissue. These can be automatically generated with the QuickMask application (available on nitrc with the QuickNII or VisuAlign software) (https://nutil.readthedocs.io/en/latest/QuantifierMasks.html). If you send me the files above, I can also give you a demo of this,

Best wishes Sharon

sharoncy commented 1 year ago

@WelcomeKon Let me know if you need any more help. If I don't hear from you, this issue will be closed.

WelcomeKon commented 1 year ago

Thank you very much for the quick answer! I have sent the files as requested and I will take a look at the Quick Mask application!

inininNotFound commented 1 year ago

Hello, I am having a similar issue too, can you help me take a look pls? Thank you! Capture2 Capture3 Capture

sharoncy commented 1 year ago

Hi @inininNotFound. In order to work, Nutil requires atlas maps in .flat format, segmentation files in .png format and the .json file from VisuAlign containing the registration information. It looks like you have followed the naming convention correctly (_s11), but I don't see the atlas map or segmentation file for this section in the screenshot (these should be named: "_s11_nl.flat" and "_s11_simple_segmentation.png". First, could you check that you have these files in place and in not, do a re-run? If this doesn't fix the problem, feel free to send me the files for one section (atlas map, png and json) and I'll test it out for you. Best regards, Sharon Yates, s.c.yates@medisin.uio.no

inininNotFound commented 1 year ago

Hi @inininNotFound. In order to work, Nutil requires atlas maps in .flat format, segmentation files in .png format and the .json file from VisuAlign containing the registration information. It looks like you have followed the naming convention correctly (_s11), but I don't see the atlas map or segmentation file for this section in the screenshot (these should be named: "_s11_nl.flat" and "_s11_simple_segmentation.png". First, could you check that you have these files in place and in not, do a re-run? If this doesn't fix the problem, feel free to send me the files for one section (atlas map, png and json) and I'll test it out for you. Best regards, Sharon Yates, s.c.yates@medisin.uio.no

Hello, I added the missing file and it still didn't work. I sent you my files. Can you help me take a look? thank you!