Open chiharusako opened 4 years ago
@chiharusako seems like in the 2 testing cases, segmentation has been warped to atlas space, but survivalpredictor module expects atlas to be warped to the patients space. Can you try warping atlas to patient space and then run again?
I was not aware this changed. In previous versions, it required the segmentation labels 1,2,4 in atlas space instead and sample data was in that format as well. I do confirm that the new sample data includes an atlas warped to patient data as you noted, but this needs to be updated in the documentation as well.
Can you please point me to which atlas should be used? Where is it downloadable for users?
Also, for the segmentation file - please clarify whether you still need the ventricle label (7) or not, and whether all other labels other than 1,2,4 (or 1,2,4,7) will be ignored or not. In the sample data, the segmentation file has label 7 but it's not only the ventricle but also includes CSF, and there are many more labels than 1,2,4.
updated the documentation accordingly. atlas will come with captk's installation in the following folder: ..\CaPTk install directory\data\survival\jakob_labels_ChrisClark_to_glistr.nii.gz
the segmentation file should have the following 4 labels: 1=non-enhancing 2=edema 4=enhancing 7=ventricles
@saimarathore I tried testing with the atlas label warped to patient space, as you described.
Logs below, tested on cubic-login1
$ module load captk/1.8.0.Beta
$ dir=/cbica/home/sakoc/comp_space/lab/captk/180b/survival2
$ SurvivalPredictor -t 1 \
-i $dir/input_2subjects \
-o $dir/output_2subjects \
-m /cbica/home/sakoc/CaPTk/PretrainedModels/SurvivalPredictor_PretrainedModel_1.8.0/
Input directory name:/cbica/home/sakoc/comp_space/lab/captk/180b/survival2/input_2subjects
Output directory name:/cbica/home/sakoc/comp_space/lab/captk/180b/survival2/output_2subjects
Model directory name:/cbica/home/sakoc/CaPTk/PretrainedModels/SurvivalPredictor_PretrainedModel_1.8.0/
Module loaded: Survival Prediction on Existing Model:
Number of subjects with required input: 2
Segmentation fault
@chiharusako can you try on local machine? perhaps the issue is on cluster (we will later figure out why if that is the case). i just ran on my local machine and it worked fine for me.
Input directory name:\cbica-cifs\cbica\home\sakoc\comp_space\lab\captk\180b\sur vival2\input_2subjects Output directory name:E:/SoftwareDevelopmentProjects/testing_1.8.2Alpha/survival /output_2subjects Model directory name:\cbica-cifs\cbica\home\sakoc\CaPTk\PretrainedModels\Surviv alPredictor_PretrainedModel_1.8.0 Module loaded: Survival Prediction on Existing Model: Number of subjects with required input: 2 done Subject No:0 Subject No:1
SPI indices: AAAA_2007.01.21: -1.02645 AAAB_2006.10.28: -5.27295 Finished successfully Press any key to continue . . .
@saimarathore Is your version the same as 1.8.0.Beta? Which version should I use?
I just tried on Mac version CaPTk_1.8.0.nonRelease.20200826.249b89b6 and it gave a Segmentation fault: 11, using the same input
Hi @chiharusako, could you please try this on the latest mac artifact?
Thanks for the continued testing, it is of tremendous help!
@AlexanderGetka-cbica Same error
$ /Applications/CaPTk_1.8.0.nonRelease.20200915.108d5d65.app/Contents/Resources/bin/SurvivalPredictor \
-t 1 \
-i input_2subjects \
-o output_2subjects_mac_1.8.0.nonRelease.20200915.108d5d65 \
-m /Volumes/cbica/home/sakoc/CaPTk/PretrainedModels/SurvivalPredictor_PretrainedModel_1.8.0/
Input directory name:input_2subjects/
Output directory name:output_2subjects_mac_1.8.0.nonRelease.20200915.108d5d65/
Model directory name:/Volumes/cbica/home/sakoc/CaPTk/PretrainedModels/SurvivalPredictor_PretrainedModel_1.8.0/
Module loaded: Survival Prediction on Existing Model:
Number of subjects with required input: 2
Segmentation fault: 11
There are no changes when I am comparing the files Saima sent in email and the current master. Also, I am able to replicate this on Linux (non-cluster) using the subjects in @chiharusako's directory and the latest pre-trained model.
However, it worked on Windows. There might be something very trivial going on regarding how the paths are checked (for example) which is Windows-specific. Probably need to put in a bunch of std::cout
statements to check what is going on in SurvivalPredictor.cpp before L556 (which is never hit on Linux/macOS).
I think I have found the issue. I will push a fix and check it will work.
Alright, so the only change was removing the extra ,
in the pre-trained model's Survival_ZScore_Mean
file. I have uploaded the new model (same link) and I am able to run it from the new builds on the cluster (@chiharusako the version you tested on your macOS should also work).
@sarthakpati Thank you - now it produces an output for testing on cluster. I will test on more subjects and also test the training part, which will both take a little more time as I need to prepare the input
Describe the bug SurvivalPredictor doesn't run on the cluster
To Reproduce Testing:
Training (same error submitting interactively):
Expected behavior Testing outputs scores and Training outputs a model
CaPTk Version 1.8.0.Beta on cbica-cluster
OS centos7