ENHANCE-PET / MOOSE

MOOSE (Multi-organ objective segmentation) a data-centric AI solution that generates multilabel organ segmentations to facilitate systemic TB whole-person research.The pipeline is based on nn-UNet and has the capability to segment 120 unique tissue classes from a whole-body 18F-FDG PET/CT image.
https://enhance.pet
GNU General Public License v3.0
180 stars 28 forks source link

running MOOSE issue #83

Closed Ompsda closed 9 months ago

Ompsda commented 10 months ago

Dear MOOSE group,

I am trying to use moose for the segmentation of a patient's CT data using the bellow commands but I get an error suggesting there is no moose complying subject. Is this the write way to run moose? any suggestions, please?

(moose-env) PATH-TO\moose-env>moosez -d "C:\\Users\NAME\\Box\SEG\\CLINICAL\\S1\\AC-CT"  -m clin_ct_organs

Imaging: Clinical | Modality: CT | Tissue of interest: Organs Required modalities: ['CT'] | No. of modalities: 1 | Required prefix for non-DICOM files: ['CT_'] Warning: Subjects which don't have the required modalities [check file prefix] will be skipped. CUDA is available on this device with 2 GPU(s). Predictions will be run on GPU.

šŸŒ MODEL DOWNLOAD:

A local instance of Dataset123_Organs has been detected.

šŸ” STANDARDIZING INPUT DATA TO NIFTI:

Processing subjects... ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā” 0% -:--:-- Standardization complete. Number of moose compliant subjects: 0 out of 0 āŒ No moose compliant subject found to continue! šŸ’” See: https://github.com/QIMP-Team/MOOSE#directory-structure-and-naming-conventions-for-moose-%EF%B8%8F

Thank you

LalithShiyam commented 10 months ago

Hi @Ompsda It looks like you don't have moose compatible directory. Can you please share your folder structure, so that I can pinpoint the error?

Ideally if you look at the readme, you should point to the directory where the subject folders are stored. Right now you are pointing it to the AC_CT of the individual subject.

Ompsda commented 10 months ago

thank you for the prompt response: C:\Users\hamdi.m\Box\Vision_E7tools\clinical_data\S1

image

Ompsda commented 10 months ago

As far as I know, I have already tried using what is described in the readme file. It

Thanks,

LalithShiyam commented 10 months ago

Hi @Ompsda I am afraid not. I looked at the folder structure you shared and it is definitely not the one posted in the readme.

You need to have a root folder, and inside it you need to have your individual subject folders. And each subject folder should have their own PT and CT (can be named anything). And keep in mind this subject folder ideally shouldn't have anything other than the PT and the CT. Right now you have a bunch of other files (your python scripts and other stuff). The input for moosez when you use it as a command line is pretty much the root directory which contains the subject folders and NOT the CT folder of the individual subject.

Hope it helps.

Keyn34 commented 10 months ago

Hey @Ompsda,

Create a folder that you call subjects in C:\Users\hamdi.m\Box\Vision_E7tools\clinical_data. In the folder subjects, create a folder called S1. You place your AC-CT and AC-PET folder inside folder S1. Then you run moosez again and supply the -d argument with the path to the subjects folder: moosez -d C:\Users\hamdi.m\Box\Vision_E7tools\clinical_data\subjects -m clin_ct_organs

LalithShiyam commented 9 months ago

Hi @Ompsda Kindly let us know if you managed to run moose :)

Ompsda commented 9 months ago

Hi Guys, I was able to run moose now. Many thanks for your help. I truly appreciate it.

LalithShiyam commented 9 months ago

Fantastic @Ompsda, then I will close this issue šŸ” !

Have fun MOOSE-ing.