CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
180 stars 64 forks source link

Module failure: "Glioblastoma Survival Prediction Index" #1245

Closed anahitafk closed 4 years ago

anahitafk commented 4 years ago

Describe the bug The module "Glioblastoma Survival Prediction Index" returns an error : "No patient inside the given input directory has required scans"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Applications'
  2. Click on 'Glioblastoma Survival Prediction Index'
  3. Click on "Use an existing survival prediction model", choose the directory for the downloaded UPenn model, Select the folder for Test Subjects, Choose the output folder, and click "Confirm"
  4. See error: "No patient inside the given input directory has required scans"

Expected behavior The data has been organized according to the guidelines of CaPTk; the expected behavior is a prediction of survival

Screenshots image Capture

CaPTk Version Cancer Imaging Phenomics Toolkit (CaPTk) v.1.8.0.Beta

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

AlexanderGetka-cbica commented 4 years ago

@anahitafk Thank you for the bug report. In order to help us resolve this issue, could you please provide a few additional details? Specifically, it would be helpful to know:

  1. The directory/file structure of your input. On Windows, the easiest way to get this is to navigate to your Test Subjects input directory in the Command Prompt (or PowerShell) and enter the command tree /f .. Please copy-and-paste the output (either here as a separate message or in a text file). Alternatively, if the data is fully anonymized, you may zip it up and send that.

  2. Does the Survival Prediction Index work for you when using it with the provided sample data? The sample data should be accessible from Help -> Sample Data -> SurvivalPredictor.

  3. The location of the documentation you used to construct your input, so that we can correct it if needed.

anahitafk commented 4 years ago

Hi Alex, Please find answers to your questions here:

1) The directory/file structure of your input. On Windows, the easiest way to get this is to navigate to your Test Subjects input directory in the Command Prompt (or PowerShell) and enter the command tree /f . . Please copy-and-paste the output (either here as a separate message or in a text file). Alternatively, if the data is fully anonymized, you may zip it up and send that. https://upenn.box.com/s/yhbe4wxzn61br4fl8auqnt1qnbu3orms

2) Does the Survival Prediction Index work for you when using it with the provided sample data? The sample data should be accessible from Help -> Sample Data -> SurvivalPredictor.

3) The location of the documentation you used to construct your input, so that we can correct it if needed. Help--> Usage--> How To Guides--> Specialized Applications (SAs) Usage--> Brain Cancer: Glioblastoma Survival Prediction Index

AlexanderGetka-cbica commented 4 years ago

Thank you for the quick response!

Could you please perform an additional test? Create a directory called "subjects" or similar, and copy one or more of the subject directories (AAAA_2007.01.21, AAAB_2006.10.28, etc...) into that "subjects" directory. Then call SurvivalPredictor.exe and pass the "subjects" directory as the input to -i instead of the individual subject.

Or, from the GUI, select the "subjects" directory as the Test Subjects field instead of the individual subject dir.

anahitafk commented 4 years ago

Thanks Alex for your message. I tested it and it still doesn't work: with GUI, I get the same error and with CLI, it stops working as in the below figure, but in my opinion, if creating a "subjects" directory is necessary, it should have be explicitly mentioned in the guidelines.

image

saimarathore commented 4 years ago

@AlexanderGetka-cbica Hi Alex, were you able to reproduce this bug? i ran from GUI and CLI using the sample data, and it worked fine for me.

AlexanderGetka-cbica commented 4 years ago

@saimarathore The first reported case in this issue appears to have been that survival didn't detect any subjects. When following the "samples/subject_name/modality.nii.gz" structure, the subject detection works for me from both CLI and GUI, but doesn't seem to work for Anahita on the GUI. The latter case shows a crash when running the algorithm after some subjects have been detected... I have had this happen when my machine is out of memory, but this is situational.

saimarathore commented 4 years ago

works fine on CLI and GUI.