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

Please update nipype with slicer support #218

Merged
merged 0 commits into from Jan 5, 2012
Merged

Please update nipype with slicer support #218

merged 0 commits into from Jan 5, 2012

Conversation

hjmjohnson
Copy link
Contributor

Chris,

We are trying to integrate SEM compatible tools from Slicer with nipype. I had this working nicely back in June, but so much has happened with nipype since then that we have fallen out of sync.

This pull request simply rebases the slicer branch on the latest master as of today. We would like to work on getting this integrated with Slicer, and then address generating all the .py files automatically once Slicer4 starts to settle down.

I have been working on improving the SEM system, and I have kept nipype integration as one of the desired goals.

The sooner this branch can make it into nipype master, the more extensively we can test it.

Thanks,
Hans

@satra
Copy link
Member

satra commented Sep 9, 2011

we'll tackle this at the sprint tomorrow.

@chrisgorgo
Copy link
Member

Merging it will not be a big problem. The problem is how to maintain it.

  1. During the installation (either through deb package, or distutil mechanisms) we need to figure out the list of all SEM interfaces, get their XMLs and generate .py files. I understand that half of XMLs can be accessed through Slicer launcher and half through calling individual BRAINS tools.
  2. After the initial installation of nipype, Slicer or BRAINS tools might get installed/updated. In such case the .py files with interfaces need to be regenerated. We need to provide this functionality (and this might require root).

I would like to start with 1. Any ideas how can I get the list of all SEM command lines (both slicer and BRAINS)?

@msscully
Copy link

msscully commented Sep 9, 2011

Do you just need a list or the programs themselves as they currently stand?

To get the programs themselves:
Clone slicer4 from https://github.com/Slicer/Slicer.git
Build using cmake, setting Slicer_BUILD_BRAINSTOOLS=ON
After build completes, SEM based tools will be available under build-dir/Slicer-build/plugins/

@chrisgorgo
Copy link
Member

Thanks. Is there another way to get the list of all SEM tools other than listing a directory?

@msscully
Copy link

msscully commented Sep 9, 2011

Do you mean another way to do it from a program, that you want me to add a current list of the program names here, or something else?

@hjmjohnson
Copy link
Contributor Author

Chris,

What do you mean by all SEM tools?

This is similar to asking for all tools that can read nifti image files.
There is no definitive registry for such things. There are many tools in
Slicer4 that are compliant with the SEM command line argument methodolgy.
That list is constantly changing, and is dependent on which extensions are
chosen to be installed.

Keep in mind that the SEM command line parser is gainging popularity
outside of slicer, and is often used outside of the slicer infrastructure.

From todays build of Slicer4, here are the names of the tools that are SEM
compliant, and the XML files for describing them:

./Applications/CLI/Add/Add.xml
./Applications/CLI/AffineRegistration/AffineRegistration.xml
./Applications/CLI/BSplineDeformableRegistration/BSplineDeformableRegistrat
ion.xml
./Applications/CLI/BSplineToDeformationField/BSplineToDeformationField.xml
./Applications/CLI/BatchMakeApplications/DiffusionTensorEstimationBatchMake
Module/DiffusionTensorEstimationBatchMakeModule.xml
./Applications/CLI/BatchMakeApplications/EMSegmentBatchMakeModule/EMSegment
BatchMakeModule.xml
./Applications/CLI/BatchMakeApplications/GaussianBlurBatchMakeModule/Gaussi
anBlurBatchMakeModule.xml
./Applications/CLI/BatchMakeApplications/RegisterImagesBatchMakeModule/Regi
sterImagesBatchMakeModule.xml
./Applications/CLI/BatchMakeApplications/ResampleVolumeBatchMakeModule/Resa
mpleVolumeBatchMake.xml
./Applications/CLI/Cast/Cast.xml
./Applications/CLI/CheckerBoard/CheckerBoard.xml
./Applications/CLI/ComputeSUVBodyWeight/ComputeSUVBodyWeight.xml
./Applications/CLI/ConfidenceConnected/ConfidenceConnected.xml
./Applications/CLI/CurvatureAnisotropicDiffusion/CurvatureAnisotropicDiffus
ion.xml
./Applications/CLI/DicomToNrrdConverter/DicomToNrrdConverter.xml
./Applications/CLI/DicomToNrrdConverter/ExtendedTesting/DWICompare.xml
./Applications/CLI/DiffusionApplications/ResampleDTI/ResampleDTI.xml
./Applications/CLI/DiffusionApplications/dwiNoiseFilter/dwiNoiseFilter.xml
./Applications/CLI/DiffusionApplications/dwiUNLM/dwiUNLM.xml
./Applications/CLI/DiffusionApplications/jointLMMSE/jointLMMSE.xml
./Applications/CLI/DiffusionTensorEstimation/DiffusionTensorEstimation.xml
./Applications/CLI/DiffusionTensorMathematics/DiffusionTensorMathematics.xm
l
./Applications/CLI/DiffusionTensorTest/DiffusionTensorTest.xml
./Applications/CLI/DiffusionWeightedMasking/DiffusionWeightedMasking.xml
./Applications/CLI/DiffusionWeightedTest/DiffusionWeightedTest.xml
./Applications/CLI/ExecutionModelTour/ExecutionModelTour.xml
./Applications/CLI/ExtractSkeleton/ExtractSkeleton.xml
./Applications/CLI/FreesurferSurfaceSectionExtraction/FreesurferSurfaceSect
ionExtraction.xml
./Applications/CLI/GaussianBlurImageFilter/GaussianBlurImageFilter.xml
./Applications/CLI/GradientAnisotropicDiffusion/GradientAnisotropicDiffusio
n.xml
./Applications/CLI/GrayscaleFillHoleImageFilter/GrayscaleFillHoleImageFilte
r.xml
./Applications/CLI/GrayscaleGrindPeakImageFilter/GrayscaleGrindPeakImageFil
ter.xml
./Applications/CLI/GrayscaleModelMaker/GrayscaleModelMaker.xml
./Applications/CLI/HistogramMatching/HistogramMatching.xml
./Applications/CLI/ImageLabelCombine/ImageLabelCombine.xml
./Applications/CLI/ImageReadDicomWrite/ImageReadDicomWrite.xml
./Applications/CLI/LabelMapSmoothing/LabelMapSmoothing.xml
./Applications/CLI/LinearRegistration/LinearRegistration.xml
./Applications/CLI/MIDASApplications/DownloadSlicerTutorials/DownloadSlicer
Tutorials.xml
./Applications/CLI/MRIBiasFieldCorrection/MRIBiasFieldCorrection.xml
./Applications/CLI/Mask/Mask.xml
./Applications/CLI/MedianImageFilter/MedianImageFilter.xml
./Applications/CLI/MergeModels/MergeModels.xml
./Applications/CLI/ModelMaker/ModelMaker.xml
./Applications/CLI/MultipleModelsExample/MultipleModelsExample.xml
./Applications/CLI/Multiply/Multiply.xml
./Applications/CLI/N4ITKBiasFieldCorrection/N4ITKBiasFieldCorrection.xml
./Applications/CLI/OrientImage/OrientImage.xml
./Applications/CLI/OtsuThresholdImageFilter/OtsuThresholdImageFilter.xml
./Applications/CLI/OtsuThresholdSegmentation/OtsuThresholdSegmentation.xml
./Applications/CLI/PolyDataToLabelmap/PolyDataToLabelmap.xml
./Applications/CLI/ProbeVolumeWithModel/ProbeVolumeWithModel.xml
./Applications/CLI/Realign/Realign.xml
./Applications/CLI/RegisterImagesModule/Applications/RegisterImagesSlicer.x
ml
./Applications/CLI/RegisterImagesModule/Applications/TransformFromFiducials
.xml
./Applications/CLI/RegisterImagesModule/MultiResApplications/RegisterImages
MultiRes.xml
./Applications/CLI/ResampleVolume/ResampleVolume.xml
./Applications/CLI/ResampleVolume2/ResampleVolume2.xml
./Applications/CLI/RigidRegistration/RigidRegistration.xml
./Applications/CLI/RobustStatisticsSegmenter/RobustStatSegmenter.xml
./Applications/CLI/RobustStatisticsSegmenter/SFLSRobustStat3DTest.xml
./Applications/CLI/Seeding/Seeding.xml
./Applications/CLI/SparseFieldLevelSetContour/SparseFieldLevelSetContour.xm
l
./Applications/CLI/Subtract/Subtract.xml
./Applications/CLI/TestGridTransformRegistration/TestGridTransformRegistrat
ion.xml
./Applications/CLI/Threshold/Threshold.xml
./Applications/CLI/VotingBinaryHoleFillingImageFilter/VotingBinaryHoleFilli
ngImageFilter.xml
./Applications/CLI/ZeroCrossingBasedEdgeDetectionImageFilter/ZeroCrossingBa
sedEdgeDetectionImageFilter.xml
./BRAINSABC/TestSuite/simpleEM.xml
./BRAINSABC/brainseg/BRAINSABC.xml
./BRAINSABC/brainseg/BRAINSCleanMask.xml
./BRAINSABC/brainseg/ESLR.xml
./BRAINSABC/brainseg/GenerateLabelMapFromProbabilityMap.xml
./BRAINSABC/brainseg/normalA-30.xml
./BRAINSCommonLib/BuildScripts/brains.kws.xml
./BRAINSCommonLib/Test_FindCenterOfBrainFilter/FindCenterOfBrain.xml
./BRAINSConstellationDetector/TestSuite/LandmarksCompare.xml
./BRAINSConstellationDetector/gui/BRAINSConstellationDetectorGUI.xml
./BRAINSConstellationDetector/src/BRAINSAlignMSP.xml
./BRAINSConstellationDetector/src/BRAINSClipInferior.xml
./BRAINSConstellationDetector/src/BRAINSConstellationDetector.xml
./BRAINSConstellationDetector/src/BRAINSConstellationModeler.xml
./BRAINSConstellationDetector/src/BRAINSEyeDetector.xml
./BRAINSConstellationDetector/src/BRAINSLinearModelerEPCA.xml
./BRAINSConstellationDetector/src/BRAINSLmkTransform.xml
./BRAINSConstellationDetector/src/BRAINSTrimForegroundInDirection.xml
./BRAINSConstellationDetector/src/TransformFromFiducials.xml
./BRAINSConstellationDetector/src/fcsv_to_matlab_new.xml
./BRAINSCut/BRAINSCut.xml
./BRAINSCut/FeatureCreators/CannyEdge/CannyEdge.xml
./BRAINSCut/FeatureCreators/CoOccurrenceMatrix/CoOccurrenceMatrix.xml
./BRAINSCut/FeatureCreators/CombineLabels/ImageLabelCombine.xml
./BRAINSCut/FeatureCreators/DilateImage/DilateImage.xml
./BRAINSCut/FeatureCreators/DistanceMaps/DistanceMaps.xml
./BRAINSCut/FeatureCreators/ErodeImage/ErodeImage.xml
./BRAINSCut/FeatureCreators/FlippedDifference/FlippedDifference.xml
./BRAINSCut/FeatureCreators/GradientAnisotropicDiffusionFilter/GradientAnis
otropicDiffusionImageFilter.xml
./BRAINSCut/FeatureCreators/HammerAttributesCreater/HammerAttributeCreator.
xml
./BRAINSCut/FeatureCreators/HistogramMatchingFilter/HistogramMatchingFilter
.xml
./BRAINSCut/FeatureCreators/ImageRegionPlotter/ImageRegionPlotter.xml
./BRAINSCut/FeatureCreators/JointHistogram/JointHistogram.xml
./BRAINSCut/FeatureCreators/NeighborhoodMean/NeighborhoodMean.xml
./BRAINSCut/FeatureCreators/NeighborhoodMedian/NeighborhoodMedian.xml
./BRAINSCut/FeatureCreators/TestImageGeneration/GenerateTestImage.xml
./BRAINSCut/GenerateBrainClippedImage.xml
./BRAINSCut/GenerateSummedGradientImage.xml
./BRAINSCut/Template.xml
./BRAINSCut/Tools/CannyEdgeLevelSetFilter/CannySegmentationLevelSetImageFil
ter.xml
./BRAINSCut/Tools/CombineLabelToMask/CombineLabelToMask.xml
./BRAINSCut/Tools/DilateMask/DilateMask.xml
./BRAINSCut/TrainedModels/2010_SIEMENS/ExampleConfigurationFIle.xml
./BRAINSCut/TrainedModels/2011_SIEMENS/ExampleConfigurationFIle_For_t1t2cls
g_AllInOne_model.xml
./BRAINSDemonWarp/BRAINSDemonWarp.xml
./BRAINSDemonWarp/VBRAINSDemonWarp.xml
./BRAINSFit/BRAINSFit.xml
./BRAINSInitializedControlPoints/BRAINSInitializedControlPoints.xml
./BRAINSMultiModeSegment/BRAINSMultiModeSegment.xml
./BRAINSMush/BRAINSMush.xml
./BRAINSROIAuto/BRAINSROIAuto.xml
./BRAINSResample/BRAINSResample.xml
./GTRACT/Cmdline/compareTractInclusion.xml
./GTRACT/Cmdline/extractNrrdVectorIndex.xml
./GTRACT/Cmdline/future_work/gtractCoRegAnatomyRigid.xml
./GTRACT/Cmdline/future_work/gtractFreeTracking.xml
./GTRACT/Cmdline/future_work/gtractGraphSearchTracking.xml
./GTRACT/Cmdline/future_work/gtractGuidedTracking.xml
./GTRACT/Cmdline/future_work/gtractStreamlineTracking.xml
./GTRACT/Cmdline/gtractAnisotropyMap.xml
./GTRACT/Cmdline/gtractAverageBvalues.xml
./GTRACT/Cmdline/gtractClipAnisotropy.xml
./GTRACT/Cmdline/gtractCoRegAnatomy.xml
./GTRACT/Cmdline/gtractCoRegAnatomyBspline.xml
./GTRACT/Cmdline/gtractConcatDwi.xml
./GTRACT/Cmdline/gtractCopyImageOrientation.xml
./GTRACT/Cmdline/gtractCoregBvalues.xml
./GTRACT/Cmdline/gtractCostFastMarching.xml
./GTRACT/Cmdline/gtractCreateGuideFiber.xml
./GTRACT/Cmdline/gtractFastMarchingTracking.xml
./GTRACT/Cmdline/gtractFiberTracking.xml
./GTRACT/Cmdline/gtractImageConformity.xml
./GTRACT/Cmdline/gtractInvertBSplineTransform.xml
./GTRACT/Cmdline/gtractInvertDeformationField.xml
./GTRACT/Cmdline/gtractInvertRigidTransform.xml
./GTRACT/Cmdline/gtractResampleAnisotropy.xml
./GTRACT/Cmdline/gtractResampleB0.xml
./GTRACT/Cmdline/gtractResampleCodeImage.xml
./GTRACT/Cmdline/gtractResampleDWIInPlace.xml
./GTRACT/Cmdline/gtractResampleFibers.xml
./GTRACT/Cmdline/gtractTensor.xml
./GTRACT/Cmdline/gtractTransformToDeformationField.xml

Does this help?


Hans J. Johnson
hans.j.johnson@ mailto:hans-johnson@uiowa.edugmail.com
Phone: 319-621-7185

-----Original Message-----
From: Chris Filo Gorgolewski
reply@reply.github.com
Date: Fri, 9 Sep 2011 08:17:58 -0700
To: Hans Johnson hans.j.johnson@gmail.com
Subject: Re: [nipype] Please update nipype with slicer support (#218)

Thanks. Is there another way to get the list of all SEM tools other than
listing a directory?

Reply to this email directly or view it on GitHub:
#218 (comment)

@chrisgorgo
Copy link
Member

I am glad that SEM command line parser is gainging popularity outside of slicer, but for now we should focus on Slicer.

So far I was getting the XML files through calling "Slicer --launch <module_name> --xml", but for this I need the names of all modules. I am not keen on hardcoding them. I would prefer to get them from Slicer somehow. I'll look into listing the plugins directory first.

@hjmjohnson
Copy link
Contributor Author

JC,

Is there an easy way (or could there be added) to get a listing of all CLI
compliant tools available in Slicer4?

"Slicer --no-splash --list-plugins"
-OR-
"Slicer --no-splash --python-script GetCLIlisting.py"

Would this be an easy addition?

Thanks,
Hans


Hans J. Johnson
hans.j.johnson@ mailto:hans-johnson@uiowa.edugmail.com
Phone: 319-621-7185

-----Original Message-----
From: Chris Filo Gorgolewski
reply@reply.github.com
Date: Fri, 9 Sep 2011 13:00:31 -0700
To: Hans Johnson hans.j.johnson@gmail.com
Subject: Re: [nipype] Please update nipype with slicer support (#218)

I am glad that SEM command line parser is gainging popularity outside of
slicer, but for now we should focus on Slicer.

So far I was getting the XML files through calling "Slicer --launch
<module_name> --xml", but for this I need the names of all modules. I am
not keen on hardcoding them. I would prefer to get them from Slicer
somehow. I'll look into listing the plugins directory first.

Reply to this email directly or view it on GitHub:
#218 (comment)

@satra
Copy link
Member

satra commented Sep 15, 2011

@chris, @hans : what's the status of this?

i think this is a good use case where you want to include the python files for a particular version of slicer/brains in the library. this goes back to a discussion we had at the sprint that one should be able to install nipype and create nipype interface objects without having the underlying software installed on the system. this is especially important for clusters, where a client can create a workflow and execute it remotely on the grid.

proposed solution: include the generated python files for slicer/brains in the repo.

future: if we want a more dynamic approach we will get to it in a future version of nipype when we don't write any wrappers :)

@chrisgorgo
Copy link
Member

Ok - this definitely will be easiest. I will use Slicer4 trunk and the list provided by Hans.

@chrisgorgo
Copy link
Member

I have problems building newest slicer

In file included from /usr/include/c++/4.5/bits/stl_iterator.h:64:0,
from /usr/include/c++/4.5/iterator:64,
from /usr/include/qt4/QtCore/qlist.h:50,
from /usr/include/qt4/QtCore/qhash.h:48,
from /usr/include/qt4/QtCore/qdebug.h:46,
from /usr/include/qt4/QtCore/QDebug:1,
from /home/filo/workspace/Slicer4-SuperBuild/qCDashAPI/qCDashAPI.cpp:22:
/usr/include/c++/4.5/bits/cpp_type_traits.h:436:5: error: stray ‘\212’ in program

Where should I look for help? Slicer dev mailing list?

@msscully
Copy link

The slicer dev mailing list or the bug tracker:
http://na-mic.org/Mantis/view_all_bug_page.php

-Mark

On 9/22/11 12:53 PM, "Chris Filo Gorgolewski"
reply@reply.github.com
wrote:

I have problems building newest slicer

In file included from /usr/include/c++/4.5/bits/stl_iterator.h:64:0,
from /usr/include/c++/4.5/iterator:64,
from /usr/include/qt4/QtCore/qlist.h:50,
from /usr/include/qt4/QtCore/qhash.h:48,
from /usr/include/qt4/QtCore/qdebug.h:46,
from /usr/include/qt4/QtCore/QDebug:1,
from
/home/filo/workspace/Slicer4-SuperBuild/qCDashAPI/qCDashAPI.cpp:22:
/usr/include/c++/4.5/bits/cpp_type_traits.h:436:5: error: stray Œ\212¹ in
program

Where should I look for help? Slicer dev mailing list?

Reply to this email directly or view it on GitHub:
#218 (comment)


Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.


@chrisgorgo
Copy link
Member

I managed to build slicer4! Yay! with the flag you have provided BRAINS gets build as well, but not in the same folders as Slicer (Slicer-build) but into SlicerBRAINSTools-build. Maybe this is the reason why SLicer4 does not see those modules:

 filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$ ./Slicer-build/Slicer --launch BRAINSFit
 error: Application does NOT exists [BRAINSFit]

@msscully
Copy link

Congratulations on building Slicer4!

You currently have to give it the full path to the CLI you¹re launching.

There¹s a bug filed here: http://www.na-mic.org/Bug/view.php?id=1455

-Mark

On 9/24/11 7:52 AM, "Chris Filo Gorgolewski"
reply@reply.github.com
wrote:

I managed to build slicer4! Yay! with the flag you have provided BRAINS
gets build as well, but not in the same folders as Slicer (Slicer-build)
but into SlicerBRAINSTools-build. Maybe this is the reason why SLicer4
does not see those modules:

filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$

./Slicer-build/Slicer --launch BRAINSFit
error: Application does NOT exists [BRAINSFit]

Reply to this email directly or view it on GitHub:
#218 (comment)


Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.


@chrisgorgo
Copy link
Member

I was quite excited to see that this bug has been fixed, so I have updated my sources and rebuild slicer. Unfortunately this functionality still does not seem to work. Despite the fact a module (for example "Add") is loaded when you run GUI:

filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$ Slicer-build/Slicer --launch Add
error: Application does NOT exists [Add]
filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$ Slicer-build/Slicer
646 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerFiducialsIO
Number of registered modules: 121 
Loading module "Cameras" 
Loading module "EventBroker" 
Loading module "VolumeRendering" 
3105 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerVolumeRenderingIO
Loading module "CropVolume" 
Loading module "SceneViews" 
Loading module "EMSegment" 
Loading module "ViewControllers" 
Loading module "Annotations" 
Loading module "ModuleTemplate" 
Loading module "Models" 
3131 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerModelsIO
3131 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerScalarOverlayIO
Loading module "Transforms" 
3194 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerTransformsIO
Loading module "Tractography" 
Loading module "TractographyFiducialSeeding" 
Loading module "Data" 
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerSceneIO
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerSlicer2SceneReader
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerXcedeCatalogIO
Loading module "EMSegmentQuick" 
Loading module "Welcome" 
Loading module "Colors" 
3208 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerColorsIO
Loading module "Volumes" 
3731 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerVolumesIO
Loading module "TractographyDisplay" 
3740 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager  - registerIO qSlicerFiberBundleIO
Loading module "PerformanceTests" 
Loading module "LabelStatistics" 
Loading module "Endoscopy" 
Loading module "EMSegmentPy" 
Loading module "SampleData" 
Loading module "DICOM2FullBrainTractography" 
Loading module "DataProbe" 
Loading module "DICOM" 
Loading module "ChangeTracker" 
Loading module "Editor" 
Loading module "EMSegmentQuickPy" 
Loading module "Add" 
Loading module "extractNrrdVectorIndex" 
Loading module "MedianImageFilter" 
Loading module "BSplineDeformableRegistration" 
Loading module "VBRAINSDemonWarp" 
Loading module "BRAINSResample" 
Loading module "gtractClipAnisotropy" 
Loading module "PolyDataToLabelmap" 
Loading module "dwiNoiseFilter" 
Loading module "N4ITKBiasFieldCorrection" 
Loading module "SparseFieldLevelSetContour" 
Loading module "gtractInvertDeformationField" 
Loading module "CheckerBoard" 
Loading module "GrayscaleFillHoleImageFilter" 
Loading module "gtractImageConformity" 
Loading module "OtsuThresholdSegmentation" 
Loading module "RigidRegistration" 
Loading module "ImageLabelCombine" 
Loading module "ComputeSUVBodyWeight" 
Loading module "Realign" 
Loading module "gtractFiberTracking" 
Loading module "LinearRegistration" 
Loading module "Multiply" 
Loading module "GrayscaleGrindPeakImageFilter" 
Loading module "DicomToNrrdConverter" 
Loading module "HistogramMatching" 
Loading module "compareTractInclusion" 
Loading module "gtractResampleDWIInPlace" 
Loading module "ImageReadDicomWrite" 
Loading module "MultipleModelsExample" 
Loading module "TestGridTransformRegistration" 
Loading module "OtsuThresholdImageFilter" 
Loading module "gtractConcatDwi" 
Loading module "BSplineToDeformationField" 
Loading module "ConfidenceConnected" 
Loading module "ExtractSkeleton" 
Loading module "gtractAverageBvalues" 
Loading module "MergeModels" 
Loading module "GaussianBlurImageFilter" 
Loading module "AffineRegistration" 
Loading module "Cast" 
Loading module "ResampleVolume" 
Loading module "gtractAnisotropyMap" 
Loading module "gtractTransformToDeformationField" 
Loading module "gtractInvertBSplineTransform" 
Loading module "Threshold" 
Loading module "gtractTensor" 
Loading module "BRAINSFit" 
Loading module "gtractCoRegAnatomy" 
Loading module "GradientAnisotropicDiffusion" 
Loading module "ResampleDTI" 
Loading module "gtractResampleB0" 
Loading module "ResampleVolume2" 
Loading module "gtractResampleAnisotropy" 
Loading module "VotingBinaryHoleFillingImageFilter" 
Loading module "gtractCreateGuideFiber" 
Loading module "CurvatureAnisotropicDiffusion" 
Loading module "BRAINSROIAuto" 
Loading module "OrientImage" 
Loading module "gtractCoregBvalues" 
Loading module "jointLMMSE" 
Loading module "BRAINSDemonWarp" 
Loading module "Subtract" 
Loading module "gtractCopyImageOrientation" 
Loading module "RobustStatSegmenter" 
Loading module "gtractCostFastMarching" 
Loading module "gtractInvertRigidTransform" 
Loading module "MRIBiasFieldCorrection" 
Loading module "gtractResampleCodeImage" 
Loading module "ModelMaker" 
Loading module "ExecutionModelTour" 
Loading module "gtractFastMarchingTracking" 
Loading module "LabelMapSmoothing" 
Loading module "CLI4Test" 
Loading module "dwiUNLM" 
Loading module "DiffusionTensorTest" 
Loading module "gtractResampleFibers" 
Loading module "Mask" 
Loading module "RegisterImagesMultiRes" 
Loading module "DiffusionWeightedMasking" 
Loading module "EMSegmentTransformToNewFormat" 
Loading module "RegisterImages" 
Loading module "Seeding" 
Loading module "TransformFromFiducials" 
Loading module "IntensityDifferenceMetric" 
Loading module "DemonsSegmentationMetric" 
Loading module "EMSegmentCommandLine" 
Loading module "DiffusionTensorMathematics" 
Loading module "ProbeVolumeWithModel" 
Loading module "DiffusionTensorEstimation" 
Loading module "GrayscaleModelMaker" 
Number of loaded modules: 121 
Show module (name): "Welcome" 

When I try to use the "--launch" parameter id does not work.

filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$ Slicer-build/Slicer --launch Add
error: Application does NOT exists [Add]

Before I post it back to Slicer bug tracker I would like to make sure I'm not making any silly mistakes.

@msscully
Copy link

Looks like that bug has been re-opened, so I guess it¹s not fixed.

-Mark

On 11/11/11 4:14 AM, "Chris Filo Gorgolewski"
reply@reply.github.com
wrote:

I was quite excited to see that this bug has been fixed, so I have
updated my sources and rebuild slicer. Unfortunately this functionality
still does not seem to work. Despite the fact a module (for example
"Add") is loaded when you run GUI:

  filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$

Slicer-build/Slicer --launch Add
error: Application does NOT exists [Add]
filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$
Slicer-build/Slicer
646 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerFiducialsIO
Number of registered modules: 121
Loading module "Cameras"
Loading module "EventBroker"
Loading module "VolumeRendering"
3105 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerVolumeRenderingIO
Loading module "CropVolume"
Loading module "SceneViews"
Loading module "EMSegment"
Loading module "ViewControllers"
Loading module "Annotations"
Loading module "ModuleTemplate"
Loading module "Models"
3131 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerModelsIO
3131 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerScalarOverlayIO
Loading module "Transforms"
3194 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerTransformsIO
Loading module "Tractography"
Loading module "TractographyFiducialSeeding"
Loading module "Data"
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerSceneIO
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerSlicer2SceneReader
3198 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerXcedeCatalogIO
Loading module "EMSegmentQuick"
Loading module "Welcome"
Loading module "Colors"
3208 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerColorsIO
Loading module "Volumes"
3731 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerVolumesIO
Loading module "TractographyDisplay"
3740 [] TRACE org.slicer.base.qtcore.qSlicerCoreIOManager - registerIO
qSlicerFiberBundleIO
Loading module "PerformanceTests"
Loading module "LabelStatistics"
Loading module "Endoscopy"
Loading module "EMSegmentPy"
Loading module "SampleData"
Loading module "DICOM2FullBrainTractography"
Loading module "DataProbe"
Loading module "DICOM"
Loading module "ChangeTracker"
Loading module "Editor"
Loading module "EMSegmentQuickPy"
Loading module "Add"
Loading module "extractNrrdVectorIndex"
Loading module "MedianImageFilter"
Loading module "BSplineDeformableRegistration"
Loading module "VBRAINSDemonWarp"
Loading module "BRAINSResample"
Loading module "gtractClipAnisotropy"
Loading module "PolyDataToLabelmap"
Loading module "dwiNoiseFilter"
Loading module "N4ITKBiasFieldCorrection"
Loading module "SparseFieldLevelSetContour"
Loading module "gtractInvertDeformationField"
Loading module "CheckerBoard"
Loading module "GrayscaleFillHoleImageFilter"
Loading module "gtractImageConformity"
Loading module "OtsuThresholdSegmentation"
Loading module "RigidRegistration"
Loading module "ImageLabelCombine"
Loading module "ComputeSUVBodyWeight"
Loading module "Realign"
Loading module "gtractFiberTracking"
Loading module "LinearRegistration"
Loading module "Multiply"
Loading module "GrayscaleGrindPeakImageFilter"
Loading module "DicomToNrrdConverter"
Loading module "HistogramMatching"
Loading module "compareTractInclusion"
Loading module "gtractResampleDWIInPlace"
Loading module "ImageReadDicomWrite"
Loading module "MultipleModelsExample"
Loading module "TestGridTransformRegistration"
Loading module "OtsuThresholdImageFilter"
Loading module "gtractConcatDwi"
Loading module "BSplineToDeformationField"
Loading module "ConfidenceConnected"
Loading module "ExtractSkeleton"
Loading module "gtractAverageBvalues"
Loading module "MergeModels"
Loading module "GaussianBlurImageFilter"
Loading module "AffineRegistration"
Loading module "Cast"
Loading module "ResampleVolume"
Loading module "gtractAnisotropyMap"
Loading module "gtractTransformToDeformationField"
Loading module "gtractInvertBSplineTransform"
Loading module "Threshold"
Loading module "gtractTensor"
Loading module "BRAINSFit"
Loading module "gtractCoRegAnatomy"
Loading module "GradientAnisotropicDiffusion"
Loading module "ResampleDTI"
Loading module "gtractResampleB0"
Loading module "ResampleVolume2"
Loading module "gtractResampleAnisotropy"
Loading module "VotingBinaryHoleFillingImageFilter"
Loading module "gtractCreateGuideFiber"
Loading module "CurvatureAnisotropicDiffusion"
Loading module "BRAINSROIAuto"
Loading module "OrientImage"
Loading module "gtractCoregBvalues"
Loading module "jointLMMSE"
Loading module "BRAINSDemonWarp"
Loading module "Subtract"
Loading module "gtractCopyImageOrientation"
Loading module "RobustStatSegmenter"
Loading module "gtractCostFastMarching"
Loading module "gtractInvertRigidTransform"
Loading module "MRIBiasFieldCorrection"
Loading module "gtractResampleCodeImage"
Loading module "ModelMaker"
Loading module "ExecutionModelTour"
Loading module "gtractFastMarchingTracking"
Loading module "LabelMapSmoothing"
Loading module "CLI4Test"
Loading module "dwiUNLM"
Loading module "DiffusionTensorTest"
Loading module "gtractResampleFibers"
Loading module "Mask"
Loading module "RegisterImagesMultiRes"
Loading module "DiffusionWeightedMasking"
Loading module "EMSegmentTransformToNewFormat"
Loading module "RegisterImages"
Loading module "Seeding"
Loading module "TransformFromFiducials"
Loading module "IntensityDifferenceMetric"
Loading module "DemonsSegmentationMetric"
Loading module "EMSegmentCommandLine"
Loading module "DiffusionTensorMathematics"
Loading module "ProbeVolumeWithModel"
Loading module "DiffusionTensorEstimation"
Loading module "GrayscaleModelMaker"
Number of loaded modules: 121
Show module (name): "Welcome"

When I try to use the "--launch" parameter id does not work.

  filo@filo-Precision-M6500:~/workspace/Slicer4-SuperBuild$

Slicer-build/Slicer --launch Add
error: Application does NOT exists [Add]

Before I post it back to Slicer bug tracker I would like to make sure I'm
not making any silly mistakes.


Reply to this email directly or view it on GitHub:
#218 (comment)


Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.


@fedorov
Copy link

fedorov commented Nov 11, 2011

Chris, this is a separate issue from what you would like to have fixed. See earlier comments from JC on that bug report.

The bug is about the situation where you have one plugin calling another from within CLI by using system():

Slicer --launch <full_path_to_plugin1>

in plugin1.cxx you have system('<just_name_of_plugin2>')

What you want to have fixed (and I would like it fixed too) is

Slicer --launch <just_name_of_plugin1>

@fedorov
Copy link

fedorov commented Nov 11, 2011

oops, looks like whatever is in < ... > brackets is discarded from comments! Let me repost:

The bug is about the situation where you have one plugin calling another from within CLI by using system():

Slicer --launch full_path_to_plugin1

in plugin1.cxx you have system(just_name_of_plugin2)

What you want to have fixed (and I would like it fixed too) is

Slicer --launch just_name_of_plugin1

@chrisgorgo
Copy link
Member

Thanks for letting us know Andrey. The summary and description of bug are very ambiguous. I'm even afraid that if I would open a new bug to fix our problem it would be flagged as a duplicate of this one! Shall we report one anyway?

BTW if not using Slicer executable - what is the normal way to call CLI modules now?

@fedorov
Copy link

fedorov commented Nov 12, 2011

I suggest you submit a separate bug report and mark it as "related" to the existing one. I do think this is a separate issue, but JC will know better.

FYI, we are working towards RSNA deadline right now, and this bug is not in a critical path. So I would expect this bug could be addressed December or in January during NAMIC programming week.

@hjmjohnson hjmjohnson merged commit d03894f into nipy:master Jan 5, 2012
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

Successfully merging this pull request may close these issues.

None yet

5 participants