Please, follow the installation instructions given here
http://www.itksnap.org/pmwiki/pmwiki.php?n=CMREP.Documentation
Let me know if you have any additional questions,
Caroline.
2012/3/27 张碧云 <biank...@126.com>:
--
Caroline Brun, PhD,
Penn Image Computing and Science Laboratory
Radiology Department, University of Pennsylvania
3600 Market Street, Suite 370
Philadelphia, PA, 19104
tel: +1 215 662 7646
http://picsl.upenn.edu/
In the installation of cmrep,whether I need download all the following library ? Before compiling the cmrep code, you need install the following library first: ITK (http://www.itk.org/), VTK (http://www.vtk.org/), PARDISO (http://www.pardiso-project.org/) and the LAPACK library and G2C library.In order to get the cmrep ,we should download Fink,and Xcode. So many softwares are used in cmrep, which confused with us, clinical doctors without mathematics knowledge. We are a little frustrated.
Please help us to install the cmrep with some simply tutorials.
Thanks for following up with us.
Cmrep is indeed needed in the final step of the analysis (see
http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.TsaCasual
last paragraph "Statistical Analysis"), as it uses a function called
meshglm embedded in the tsa_stats_glm.
Cheers,
Caroline.
2012/3/28 张碧云 <biank...@126.com>:
--
Thank you for your patience and persistence. While you might run into
a few issues while installing these
softwares, I am sure you will manage to and learn a lot on your way!
No problem to help you out here. A few points:
1- what machine do you work with (linux, window, mac?)
2- if you work with linux 64, you can download the binaries here:
http://sourceforge.net/projects/cmrep/files/
3- if not, then I believe you have to build cmrep from the source
code. If you have compiled dti-tk from the source code then you should
have ITK and VTK installed on your machine. If not, then you will have
to go through this but it is not very complicated.
4- Depending on your machine, you could need Pardiso and Lapack, but
we'll solve this later.
Let me know the answers to the questions above and we'll go from there.
Cheers,
Caroline.
2012/3/28 张碧云 <biank...@126.com>:
--
Please help me to setup the CMREP. Your help is very important for me!
Thank you again!
Best wish!
Bianca
You are right, as per my last email, cmrep binaries only exist for linux 64.
So, you will need to compile cmrep. and you need to get
- ITK
- VTK
before being able to compile cmrep
While this seems like a lot of steps, it should not be too complicated
to set up if you follow these steps precisely.
- ITK --> go here: http://www.itk.org/ITK/resources/software.html
1- download the version: InsightToolkit-3.20.1.tar.gz (hosted at SourceForge)
2- untar the package
3- Follow all the steps indicated here:
http://www.itk.org/Wiki/ITK/Insight_Applications
In particular from the paragraph "Build Instruction"
- VTK --> go to http://www.vtk.org/VTK/resources/software.html
1- download version; Download the previous release (5.6.1)
2- untar pakage
3- Compile the code the same way you compiled ITK.
You can get information at http://www.vtk.org/Wiki/VTK#Building_VTK
Focus in particaulr on "Building VTK"
Please go through these and let me know if you have any questions along the way.
Once this is done, then we can go through compiling cmrep.
Cheers,
Caroline.
2012/3/28 张碧云 <biank...@126.com>:
--
CMake Error at /Users/apple/Downloads/DTI_tools/about cmrep/cmake-2.8.7-Darwin64-universal/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/FindITK.cmake:48 (FIND_PACKAGE):
Could not find a configuration file for package "ITK" that is compatible
with requested version "3.14".
The following configuration files were considered but not accepted:
/Users/apple/Downloads/DTI_tools/ITK/ITKConfig.cmake, version: unknown
Call Stack (most recent call first):
CMakeLists.txt:21 (FIND_PACKAGE)
CMake Error at CMakeLists.txt:22 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.
CMake Error at /Users/apple/Downloads/DTI_tools/about cmrep/cmake-2.8.7-Darwin64-universal/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/FindVTK.cmake:135 (MESSAGE):
VTK not found. Set the VTK_DIR cmake cache entry to the directory
containing VTKConfig.cmake. This is either the root of the build tree, or
PREFIX/lib/vtk for an installation.
Call Stack (most recent call first):
CMakeLists.txt:25 (FIND_PACKAGE).
You are right cmrep does not find ITK and VTK.
Can you please describe what were the general steps and commands that
you used to compile either vtk or itk?
Thanks!
Caroline.
2012/3/30 张碧云 <biank...@126.com>:
BUILD_SHARED_LIBS ON
BUILD_TESTING OFF
CMAKE_BUILD_TYPE Release
2. And compiled the code of VTK as the same way which compiled ITK, In the last displaying: 1 warning generated. Linking CXX shared library ../bin/libvtkCharts.dylib [100%] Built target vtkCharts.
However,I don't know where are wrong. How will do?Thank you very much
It looks like you were able to configure and compile VTK properly, but
you had trouble compiling ITK.
I am no expert in ITK, but I think you should reconfigure it again
(ccmake step) and set the option BUILD_EXAMPLES to OFF.
Then, compile it (make) and then let me know what happens.
Cheers,
Caroline.
2012/3/31 张碧云 <biank...@126.com>:
--
Hi Caroline,
Thank you for your replay! I have tried compiling the ITK again according to your suggestion. In the last, bash display: [100%] Built target ITKFEM. It looks like configuring and compiling VTK properly.
However,when I compiling the cmrep, the errors always happens as before which display: CMake Error at /Users/apple/Downloads/DTI_tools/about cmrep/cmake-2.8.7-Darwin64-universal/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/FindITK.cmake:48 (FIND_PACKAGE):Could not find a configuration file for package "ITK" that is compatible
with requested version "3.14".
The following configuration files were considered but not accepted:
/Users/apple/Downloads/DTI_tools/lib/ITK/ITKConfig.cmake, version: unknown
Call Stack (most recent call first):
CMakeLists.txt:21 (FIND_PACKAGE)
CMake Error at CMakeLists.txt:22 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.
CMake Error at /Users/apple/Downloads/DTI_tools/about cmrep/cmake-2.8.7-Darwin64-universal/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/FindVTK.cmake:135 (MESSAGE):
VTK not found. Set the VTK_DIR cmake cache entry to the directory
containing VTKConfig.cmake. This is either the root of the build tree, or
PREFIX/lib/vtk for an installation.
Call Stack (most recent call first):
CMakeLists.txt:25 (FIND_PACKAGE)
After the first round,change the settings of default :
>> BUILD_TESTING OFF
>> CMAKE_BUILD_TYPE Release
And selected the directory of ITK_DIR and VTK_DIR which just have been compiled.I need your help again!Best wish!Bianca
I have experienced the same problem with cmrep.
Please go to cmrep/CMakeLists.txt
Replace line 20 to 26 by:
# Get ITK
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
# Get VTK
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
And then try to configure and compile again. Let me know how it goes.
Cheers,
Caroline.
2012/4/3 张碧云 <biank...@126.com>:
--
Hi Caroline, Thank you for your patience! The cmrep was compilied again according to your suggestion. In the last, bash display:
1 warning generated. Linking CXX executable vtklevelset
[100%] Built target vtklevelset.
Does it mean that cmrep was configured and compilied properly? I am not sure. Why the result is target vtklevelset?If cmrep configured and compilied properly, how will I install the cmrep which can be used in TSA.
Hi Caroline,
Yes, it means that cmrep was configured and compiled correctly.
So, it means that the executables were built correctly, and should be
in one of your directories:
ideally in /usr/local/bin/
if not there, in the directory where you built cmrep and maybe also
within subdirectories (such as YOUR_CMREP_DIR/src/util).
In the second case, please, include the path in your .profile.
I'm glad all our efforts worked!
Cheers,
Caroline.
2012/4/4 张碧云 <biank...@126.com>:
--
It seems that the matrix generator needs some fixing.
Can you send me the design and contrast matrices that you generated
together with the number of subjects you have?
I can have a look at it and tell you what is wrong.
Thanks!
C.
2012/4/5 张碧云 <biank...@126.com>:
--
Hi Caroline,
My design is Subjects Vs Contrasts (using the existing templates). I selected the Compare Two Groups of Type of Study. I did not change the Type of Values. The contrast_matrix :1 -1 0 0 0 0 .And the design_matrix : 1 0 0 0 1 0 0 1 0 1 0 0
However, If I changed the Group of Type of Values as Null, the contrast_matrix is " 1 -1 0 0 " and design_matrix is "1 0 0 1 0 1 0 2
What is wrong with the matrix?
How should I select the Type of Values?Thank you for your kindness and patience!
Best wish!
Bianca
How many patients and controls do you have? Are you trying to remove
any effect (age, disease duration,...) from your analysis?
Cheers,
Caroline.
2012/4/5 张碧云 <biank...@126.com>:
--
Hi Caroline,
I have 22 patients and controls respectively. I am trying to analyze the relationship between clinical assessment (such as disease duration, functional rating scale) and diffusivity values. The DTI-TK is a tool of group analysis. How to build the contrast_matrix?
Best wish!
Bianca
There are two things here:
- are you trying to compare FA values between patients and controls
and remove certain effect that are common to every subject, such as
age
or
- are you trying to correlate disease duration with FA values in the
patient group only?
Also, to make sure, have you gone through the step prior to the
statistical analysis? See
http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.TsaCasual,
"Sampling values over all the subjects".
Let me know,
Cheers,
Caroline.
2012/4/9 张碧云 <biank...@126.com>:
--
Hi Caroline,
Good day! About the first thing: I am trying to compare FA values between patients and controls;
The second: I am also trying to correlate disease duration with FA values and other Scalar Indices in the patient group only.1- Group comparisons only:
You want a design matrix, that's a text file and is composed of 2
columns representing the two groups. Each row corresponds to a subject
and contains a 0 and a 1 depending on which group the subject
corresponds to. The order of the subjects corresponds to the
dti_volume_list.txt that you used in the previous step, i.e.,
tsa_sampling dti_volume_list.txt tsa_model_path [maxFA or mean]
The contrast matrix is just -1 1
Please see the examples attached, called contrast_group.txt and design_group.txt
2- Correlation between WM scalar values and indices or scores in patients
In this case, the design matrix will be composed of one column
indicating disease duration, one column of 1 (intercept, see general
linear model), and the contrast matrix will be 1 0
(see example contrast_correlation.txt and design_correlation.txt)
Please read http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/GroupAnalysis#DesignMatrix.2BAC8-FSGDFile,
where there is a good and simple explanation
of the general linear model.
Let me know if you have any questions!
Cheers,
Caroline.
2012/4/11 张碧云 <biank...@126.com>:
--
Bianca.
Hi Caroline, Thank you for your help!
dti_diffeomorphic_reg template.nii.gz mean_aff.nii.gz template_mask.nii.gz 1 6 0.002
/Users/apple/documents/DTI/dtitk-2.3.0-Darwin-x86_64/scripts/dti_diffeomorphic_reg: line 56: 545 Segmentation fault: 11 piecewiseAtvCGM -template ${template_pref}.nii.gz -subject ${subject_pref}_diffeo.nii.gz -mask ${mask} -ftol ${ftol} -level0 ${level0} -iter ${piter} -SMOption ${SMOption} -prior ${prior} -reg ${reg} -out ${subject_pref}_to_${template_base_pref}.nii.gz
Terminating due to errorWhat is wrong with it ?
I am very grateful for your help!Volume Info of IIT2mean_mask.nii.gz
size: 182x218x182, voxel size: 1x1x1, origin: [-90, 126, 72]
Volume Info of IIT2mean_FA.nii.gz
size: 182x218x182, voxel size: 1x1x1, origin: [-90, 126, 72]
deformationScalarVolume -in gridx.nii.gz -out wgridx.nii.gz -trans input.df.nii.gz -target input.df.nii.gz deformationScalarVolume -in gridy.nii.gz -out wgridy.nii.gz -trans input.df.nii.gz -target input.df.nii.gz deformationScalarVolume -in gridz.nii.gz -out wgridz.nii.gz -trans input.df.nii.gz -target input.df.nii.gz
Hi Gary,
Good day! I have completed all the steps of DTI-TK today. I am so happy! Thank you for your all help!
", should these steps be repeated for every subject in the studies? which are not mentioned in the tutorial.
The last, in the part of "Tract specific analysis using an existing template",
if the step of Registration repeated the previous registration step?If it is, however, the script" dti_warp_to_template_group subjs.txt template.nii.gz 2 2 2 differented from the corresponding step.Cheers,
Bianca.
Good day! I have completed all the steps of DTI-TK today. I am so happy! Thank you for your all help!
However,I have some questions:First, in part of "Mapping the atlas space data to the subject space", where is the roi_atlas.nii.gz? whether is it in the tsa? The output files do not seem be used in the following steps. What is its role?
Second,in the steps of "Combined displacement field from the native space to the template space;Mapping the subject data to the template space;Combined displacement field from the template space to the native space;", should these steps be repeated for every subject in the studies? which are not mentioned in the tutorial.
The last, in the part of "Tract specific analysis using an existing template",
if the step of Registration repeated the previous registration step?If it is, however, the script" dti_warp_to_template_group subjs.txt template.nii.gz 2 2 2 differented from the corresponding step.
if it is not,which is the template used in the "Tract specific analysis using an existing template"?
First,about the last question in my previous mail, my means that what are the different between the Registration in the part of "Spatial normalization and atlas construction and the Registration step in the part of Tract specific analysis using an existing template" (I used your existing template).
Second,not sure that I understand the tutorial, I wonder if the part of Spatial normalization and atlas construction and the part of Tract specific analysis using an existing template were relatively independent part?
The last,the outputs of Spatial normalization and atlas construction do not seem be used in the following TSA steps. How to display and analyze the outputs?