Neural-Systems-at-UIO / QuickNII

https://quicknii.readthedocs.io
MIT License
6 stars 3 forks source link

Translate coordinates into slice's number #30

Closed Noy987 closed 8 months ago

Noy987 commented 9 months ago

Is there a way to translate the coordinates into the slice's number in QuickN11 ?

Thanks, appreciate it!

Majpuc commented 9 months ago

Hi Noy,

I am not sure I understand what you are asking. Could you explain what you are trying to do?

Noy987 commented 9 months ago

After I adjust the brain slice in QuickN11, I export the JSON file load it to Nutil. Nutil asks for the slice number (for example _s281) which I have to find manually by using the ABBA brain atlas. Wanted to know if QuickN11 could give me the slice number automatically by having the coordinates of the slice, shown in the screenshot at the top bar under the name "COR" on the right.

Thanks!

quickN11

Majpuc commented 9 months ago

Dear Noy, I understand the issue. QNII cannot give you the section number. Your files should already tbe named according to our naming convention _sXXX. Nutil Quantifier is looking for the section number in your file name. In Nutil quantifier, choose between the options _sXXX or use a custom RegEx if you have an alternative file name. The section number is corresponding to the antero-posterior position of the brain, usually starting with the apical end (olfactory bulb) and ending with the cerebellum. See instructions here: https://nutil.readthedocs.io/en/latest/QuantifierInput.html#file-naming-requirement.

I hope this helps,

Best, Maja

Noy987 commented 8 months ago

Thanks so much! Do you know of a program that can tell the section number automatically?

Majpuc commented 8 months ago

Dear Nøy,

If you are working with coronal mouse brain sections, you can try our automatic section registration tool DeepSlice www. deepslice.org

Best, Maja

Noy987 commented 8 months ago

Thanks Maja!

I am working with DeepSlice, but unfortunately once I load my slices to DeepSlice, the output files that I download don't have the slice number in their files' name. The downloaded files are simply named "results" (shown in the screenshots). Inside them, the "file name" is its original name saved on my computer, for example "slice1-dapi_resized" (shown in the screenshots). Is the slice number somewhere else in the files or the website?

image file name file

Majpuc commented 8 months ago

Dear Noy,

The slice number is the one you give to your images. Naming them 1,2,3,4 etc.. is ok. From DeepSlice you will obtain a JSON file containing the coordinates of each 2D image in the atlas space. You can open this Json file in QuickNII and VisuAlign if you want to correct the alignment manually. Further, when you are satisfied with the registration results, and have obtained segmentation files of your cells, you can use Nutil to obtain the number of objets/cells per atlas region or the area coverage (load) in each region. In Nutil quantifier, you will have to use "user defined" naming of your sections. More info here: https://nutil.readthedocs.io/en/latest/QuantifierInput.html

The name of you images will remain the name you gave to your files.

I hope this clarifies your issue.

Best, Maja

Noy987 commented 8 months ago

Okay I understand, thank you very much!