Installation in Linux HPC for use with the Lesion Quantification Toolkit

88 views
Skip to first unread message

William Drew

unread,
Jun 21, 2021, 4:49:43 PM6/21/21
to DSI Studio
Hello, I am trying to install dsi_studio on a linux (centos 7) HPC environment for use with the Lesion Quantification Toolkit (LQT). 

It appears that the LQT calls dsi_studio as an executable in a matlab script - what's the best way to obtain this executable? From the linux installation instructions it appears the only provided way to install dsi_studio is to launch it within a docker/singularity image. 

I don't have sudo on the compute cluster, so I don't think I'll be able to compile dsi_studio myself. Can someone help me to compile dsi_studio or is there another way to run dsi_studio as an executable?

Thanks, 
William

Frank Yeh

unread,
Jun 21, 2021, 7:10:21 PM6/21/21
to dsi-s...@googlegroups.com
It seems to me that Docker or singularity would be the best solution
in your case.

It does not require sudo.

You only need to revise the code that calls DSI Studio with the
corresponding one to call Docker/singularity.

Best regards,
Frank
> --
> You received this message because you are subscribed to the Google Groups "DSI Studio" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dsi-studio+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/0dd056b6-9c00-4048-9f73-9a5c99370ff6n%40googlegroups.com.

William Drew

unread,
Jun 22, 2021, 10:08:07 AM6/22/21
to dsi-s...@googlegroups.com
The problem I am running into is that Matlab is installed as a module on the cluster, which I do not know how to access from within the singularity. 'module load matlab' doesn’t work since environment variables aren’t the same. I’ve tried manually setting environment variables and mounting paths, but I am running into many problems with libraries. Is there a better solution?

Thanks,
William
> You received this message because you are subscribed to a topic in the Google Groups "DSI Studio" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dsi-studio/cOEnDugM3t4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to dsi-studio+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/CAG_QrtLz4eYMVKQu6gxnC95Evd6--WqhootU2_rqJoTdL4TrmQ%40mail.gmail.com.

Frank Yeh

unread,
Jun 22, 2021, 10:15:39 AM6/22/21
to dsi-s...@googlegroups.com
Are you able to run DSI Studio through singularity?

$ module load singularity
$ singularity pull docker://dsistudio/dsistudio
$ singularity exec dsistudio_latest.sif dsi_studio #GUI
$ singularity exec dsistudio_latest.sif dsi_studio --action=rec
--source=my.src.gz --thread_count=4 --method=7 --param0=1.7 #command
line
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/77E12D7F-3912-49EA-AA89-D4910D63CC64%40gmail.com.

William Drew

unread,
Jun 22, 2021, 10:16:42 AM6/22/21
to dsi-s...@googlegroups.com
Yes, but I am unable to run the Matlab script inside the singularity container
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/CAG_QrtKVcV7bTbMg4F3cW%3D5e36HZtL7WauBDfyu0Gbo0pofRJw%40mail.gmail.com.

Frank Yeh

unread,
Jun 22, 2021, 10:24:38 AM6/22/21
to dsi-s...@googlegroups.com
To get a disconnectivity matrix, all you need to do is to use lesion
as the ROI to run fiber tracking and generate a connectivity matrix.

It could be achieved in just one call to DSI Studio, for example.

dsi_studio --action=trk --source=subject_Data.fib.gz
--roi=lesion_in_subject_space.nii.gz --fiber_count=1000000
--connectivity=HCP_MMP

This will output a dis-connectivity matrix in MAT formats based on the lesion.
Is this what you are looking for?
Best,
Frank
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/69C2B678-1D92-4015-ADB1-E104272D663B%40gmail.com.

Frank Yeh

unread,
Jun 22, 2021, 10:31:07 AM6/22/21
to dsi-s...@googlegroups.com
BTW, unless you want to process +1000 subject data.
The task could be easily done using a personal laptop with GUI.
HPC may be an overkill here IMHO.
Frank
Reply all
Reply to author
Forward
0 new messages