Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BraTSPipeline executable not built for CaPTk 1.8.1 #1488

Open
camarasu opened this issue Mar 21, 2022 · 4 comments
Open

BraTSPipeline executable not built for CaPTk 1.8.1 #1488

camarasu opened this issue Mar 21, 2022 · 4 comments
Assignees

Comments

@camarasu
Copy link

camarasu commented Mar 21, 2022

Describe the bug

Having issues with the lastest BraTSPipeline executable (see #1487) and since one of my colleagues has successefully used the Desktop/GUI CaPTk version 1.8.1, I have tried to build a Docker image using https://github.com/CBICA/CaPTk/archive/refs/tags/1.8.1.zip (instead of the current github version). However, this time no BraTSPipeline was generated.

ls /work/CaPTk/bin

binaries_linux.zip          cmake_install.cmake      DeepMedic               Eigen-prefix          install                  libCaPTk_FeatureExtractor.a    OpenCV-source               RecurrenceEstimator  Utilities
BreastTexturePipeline       Confetti                 DiffusionDerivatives    Eigen-source          install_manifest.txt     libConfettiCore.so             PerfusionAlignment          SBRT_Analysis        VTK-build
CaPTk                       CPackConfig.cmake        DirectionalityEstimate  externalApps          ITK-build                libGeodesicTrainingCaPTkLib.a  PerfusionDerivatives        SBRT_LungField       VTK-prefix
CMakeCache.txt              CPackSourceConfig.cmake  docs_sources            FeatureExtraction     ITKFactoryRegistration   Makefile                       PerfusionPCA                SBRT_Nodule          VTK-source
CMakeDoxyfile.in            DCMTK-build              doxy.log                GeodesicSegmentation  ITK-prefix               MolecularSubtypePredictor      PopulationAtlases           src                  WhiteStripe
CMakeDoxygenDefaults.cmake  DCMTK-prefix             EGFRvIIIIndexPredictor  GeodesicTraining      ITK-source               OpenCV-build                   Preprocessing               SurvivalPredictor
CMakeFiles                  DCMTK-source             EGFRvIIISurrogateIndex  GreedyRegistration    libCaPTk_Applications.a  OpenCV-prefix                  PseudoProgressionEstimator  TrainingModule

To Reproduce
Buid a Docker image with this Dockerfile:

FROM cbica/captk_centos7:devtoolset-4_superbuild

LABEL authors="CBICA_UPenn <[email protected]>"

RUN yum update -y

RUN yum install git unzip

RUN wget https://github.com/CBICA/CaPTk/archive/refs/tags/1.8.1.zip; unzip 1.8.1.zip ;mv CaPTk-1.8.1 CaPTk;

RUN cd CaPTk/bin; \
    if [ ! -d "`pwd`/externalApps" ] ; then wget https://github.com/CBICA/CaPTk/raw/master/binaries/precompiledApps/linux.zip -O binaries_linux.zip; fi ; \
    cmake -DITK_DIR=./bin/ITK-build -DDCMTK_DIR=./bin/DCMTK-build -DCMAKE_INSTALL_PREFIX="./install/appdir/usr" -DBUILD_TESTING=OFF ..; \
    make && make install/strip;

RUN rm -rf CaPTk/bin/binaries_linux.zip

ENV QT_X11_NO_MITSHM=1
ENV QT_GRAPHICSSYSTEM="native"

Expected behavior
BraTSPipeline executable is not to be found

CaPTk Version
1.8.1

@AlexanderGetka-cbica
Copy link
Contributor

Hi @camarasu , thanks for reporting this! I'm investigating this and will report back to you soon with any updates or workarounds.

@AlexanderGetka-cbica
Copy link
Contributor

As a workaround, can you please try pulling the following tag from Docker Hub:
cbica/captk:2021.03.29

This contains a previous 1.8.1 build and I am certain it includes the BraTSPipeline executable. Inside the container it is in the following location:
/opt/captk/1.8.1/usr/bin/BraTSPipeline

Hope this helps! Let me know if that works for you. I will also continue to look into why the Docker builds aren't generating BraTSPipeline.

@AlexanderGetka-cbica
Copy link
Contributor

I forgot to mention -- you can override the container entrypoint by passing --entrypoint="/opt/captk/1.8.1/usr/bin/BraTSPipeline" to docker run, so that it uses the right command in the pulled image without needing to re-build from a Dockerfile.

@AlexanderGetka-cbica AlexanderGetka-cbica self-assigned this Mar 24, 2022
@camarasu
Copy link
Author

Thank you very much @AlexanderGetka-cbica !
I confirm that the workaround using cbica/captk:2021.03.29 with an entrypoint for executing /opt/captk/1.8.1/usr/bin/BraTSPipeline in batch mode works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants