BCBToolkit Questions

Good question that resource is not available anymore online (this is not from our lab…) so I wrote it manually below for you. Note that I noticed that tract do not systematically have their equivalent in teh other hemisphere.

CC_CingG.nii.gz - Corpus callosum connecting the cingulate gyri
CC_Cu.nii.gz - Corpus callosum connecting the cuneus
CC_LG.nii.gz - Corpus callosum connecting the lingual gyri
CC_MFG.nii.gz - Corpus callosum connecting the middle frontal gyri
CC_MOG.nii.gz - Corpus callosum connecting the middle occipital gyri
CC_PoCG.nii.gz - Corpus callosum connecting the postcentral gyri
CC_PrCG.nii.gz - Corpus callosum connecting the precentral gyri
CC_PrCu.nii.gz - Corpus callosum connecting the precuneus gyri
CC_RG.nii.gz - Corpus callosum connecting the rectus gyri
CC_SFG.nii.gz - Corpus callosum connecting the superior frontal gyri
CC_SOG.nii.gz - Corpus callosum connecting the superior occipital gyri
CC_SPG.nii.gz - Corpus callosum connecting the superior parietal lobule
CGC_L.nii.gz - Cingulum Dorsal branch left
CGC_R.nii.gz - Cingulum Dorsal branch right
CGH_L.nii.gz - Cingulum ventral branch left
CGH_R.nii.gz - Cingulum ventral branch right
CST_L.nii.gz - Cortico-Spinal Tract left
CST_R.nii.gz - Cortico-Spinal Tract right
IFO_L.nii.gz - Inferior fronto occipital fasciculus left
IFO_R.nii.gz - Inferior fronto occipital fasciculus right
ILF_L.nii.gz - Inferior longitudinal fasciculus left
ILF_R.nii.gz - Inferior longitudinal fasciculus right
SAF_AG_MOG_L.nii.gz - Small associative fibres angular - middle occipital gyri left
SAF_AG_MOG_R.nii.gz - Small associative fibres angular - middle occipital gyri right
SAF_AG_SMG_L.nii.gz - Small associative fibres angular - supramarginal left
SAF_AG_SMG_R.nii.gz - Small associative fibres angular - supramarginal right
SAF_CingG_PrCG_L.nii.gz - Small associative fibres cingulum - precentral gyri left
SAF_CingG_PrCG_R.nii.gz - Small associative fibres cingulum - precentral gyri right
SAF_CingG_PrCu_L.nii.gz - Small associative fibres cingulum - precuneus left
SAF_CingG_PrCu_R.nii.gz - Small associative fibres cingulum - precuneus right
SAF_CingG_SFG_L.nii.gz - Small associative fibres cingulum - superior frontal gyri left
SAF_CingG_SFG_R.nii.gz - Small associative fibres cingulum - superior frontal gyri right
SAF_Cu_LG_L.nii.gz - Small associative fibres cuneus - lingual gyri left
SAF_Cu_LG_R.nii.gz - Small associative fibres cuneus - lingual gyri right
SAF_Cu_MOG_L.nii.gz - Small associative fibres cuneus - middle occipital gyri left
SAF_Cu_MOG_R.nii.gz - Small associative fibres cuneus - middle occipital gyri right
SAF_Cu_SOG_L.nii.gz - Small associative fibres cuneus - sup. occipital gyri left
SAF_Cu_SOG_R.nii.gz - Small associative fibres cuneus - sup. occipital gyri right
SAF_Fu_IOG_L.nii.gz - Small associative fibres fusiform - superior occipital gyri left
SAF_Fu_IOG_L.nii.gz - Small associative fibres fusiform - superior occipital gyri right
SAF_Fu_MOG_L.nii.gz - Small associative fibres fusiform - inferior occipital gyri left
SAF_IFG_PrCG_L.nii.gz - Small associative fibres inferior frontal - precentral gyri left
SAF_IFG_PrCG_R.nii.gz - Small associative fibres inferior frontal - precentral gyri right
SAF_IOG_MOG_L.nii.gz - Small associative fibres inferior occipital - middle occipital gyri left
SAF_IOG_MOG_R.nii.gz - Small associative fibres occipital - middle occipital gyri right
SAF_ITG_MTG_L.nii.gz - Small associative fibres inferior temporal gyrus - middle temporal gyri left
SAF_ITG_MTG_R.nii.gz - Small associative fibres inferior temporal gyrus - middle temporal gyri right
SAF_LFOG_MFOG_L.nii.gz - Small associative fibres no idea what this is SAF_MFG_IFG_L.nii.gz - Small associative fibres middle frontal - inferior frontal gyri left
SAF_MFG_PrCG_L.nii.gz - Small associative fibres middle frontal - precentral gyri left
SAF_MFG_PrCG_R.nii.gz - Small associative fibres middle frontal - peecental gyri right
SAF_PoCG_SMG_L.nii.gz - Small associative fibres post-central - supramarginal gyri left
SAF_PoCG_SMG_R.nii.gz - Small associative fibres post-central - supramarginal gyri right
SAF_PrCG_PoCG_L.nii.gz - Small associative fibres precentral - postcentral gyri left
SAF_PrCG_PoCG_R.nii.gz - Small associative fibres precentral - postcentral gyri right
SAF_SFG_IFG_L.nii.gz - Small associative fibres superior frontal - inferior frontal l gyri left
SAF_SFG_MFG_L.nii.gz - Small associative fibres superior frontal - middle frontal gyri left
SAF_SFG_MFG_R.nii.gz - Small associative fibres superior frontal - middle frontal gyri right
SAF_SFG_PrCG_L.nii.gz - Small associative fibres superior frontal - precentral gyri left
SAF_SFG_PrCG_R.nii.gz - Small associative fibres superior frontal - precentral gyri right
SAF_SFG_RG_R.nii.gz - Small associative fibres superior frontal - rectus gyri left
SAF_SOG_MOG_L.nii.gz - Small associative fibres superior occipital - middle occipital gyri left
SAF_SOG_MOG_R.nii.gz - Small associative fibres superior occipital - middle occipital gyri right
SAF_SPG_AG_L.nii.gz - Small associative fibres angular - superior parietal gyri left
SAF_SPG_AG_R.nii.gz - Small associative fibres angular - superior parietal gyri right
SAF_SPG_MOG_L.nii.gz - Small associative fibres angular - middle occipital gyrus left
SAF_SPG_PoCG_L.nii.gz - Small associative fibres Superior parietal lobule - postcentral gyrus left
SAF_SPG_PoCG_R.nii.gz - Small associative fibres Superior parietal lobule - postcentral gyrus right
SAF_SPG_PrCu_L.nii.gz - Small associative fibres Superior parietal lobule - precuneus gyrus left
SAF_SPG_PrCu_R.nii.gz - Small associative fibres Superior parietal lobule - precuneus gyrus right
SAF_SPG_SMG_L.nii.gz - Small associative fibres Superior parietal lobule - supramarginal gyrus left
SAF_SPG_SMG_R.nii.gz - Small associative fibres Superior parietal lobule - supramarginal gyrus right
SAF_SPG_SOG_L.nii.gz - Small associative fibres Superior parietal lobule - superior occipital gyrus left
SAF_STG_MTG_L.nii.gz - Small associative fibres Superior parietal lobule - middle temporal gyrus left
SAF_STG_MTG_R.nii.gz - Small associative fibres Superior parietal lobule - middle temporal gyrus left
SAF_STG_SMG_L.nii.gz - Small associative fibres Superior temporal - supramarginal gyri left
SAF_STG_SMG_R.nii.gz - Small associative fibres Superior temporal - supramarginal gyri right
SLF_FP_L.nii.gz - superior longitudinal fasiculus fronto-parietal branch left
SLF_FP_R.nii.gz - superior longitudinal fasiculus fronto-parietal branch right
SLF_FT_L.nii.gz - superior longitudinal fasiculus fronto-temporal branch left
SLF_FT_R.nii.gz - superior longitudinal fasiculus fronto-temporal branch right
SLF_PT_L.nii.gz - superior longitudinal fasiculus parieto-temporal branch left
SLF_PT_R.nii.gz - superior longitudinal fasiculus parieto-temporal branch right
TH_MFG_L.nii.gz - Thalamic projections to middle frontal gyrus left
TH_MFG_R.nii.gz - Thalamic projections to middle frontal gyrus right
TH_MOG_L.nii.gz - Thalamic projections to middle occipital gyrus left
TH_MOG_R.nii.gz - Thalamic projections to middle occipital gyrus right
TH_PoCG_L.nii.gz - Thalamic projections to postcentral gyrus left
TH_PoCG_R.nii.gz - Thalamic projections to postcentral gyrus right
TH_PrCG_L.nii.gz - Thalamic projections to precentral gyrus left
TH_PrCG_R.nii.gz - Thalamic projections to precentral gyrus right
TH_PrCu_L.nii.gz - Thalamic projections to precuneus gyrus left
TH_PrCu_R.nii.gz - Thalamic projections to precuneus gyrus right
TH_SFG_L.nii.gz - Thalamic projections to superior frontal gyrus left
TH_SFG_R.nii.gz - Thalamic projections to superior frontal gyrus right
TH_SOG_L.nii.gz - Thalamic projections to superior occipital gyrus left
TH_SOG_R.nii.gz - Thalamic projections to superior occipital gyrus right
TH_SPG_L.nii.gz - Thalamic projections to superior parietal lobule left
TH_SPG_R.nii.gz - Thalamic projections to superior parietal lobule right
UNC_L.nii.gz - Uncinate left
UNC_R.nii.gz - Uncinate right

As for your additional map, this might be a format issue. Plus if it is 0 or 1 you will definitely have only 1 or 0 in your excel spreadsheet for probability and a continuous value in the proportion.

Maybe you can fix the format using the following code.

for a in *.nii.gz

do echo $a

echo “I love BCBtoolkit”

/Applications/BCBToolKitOSX/Tools/binaries/bin/flirt -interp nearestneighbour -in $a -ref /Applications/BCBToolKitOSX/Tools/extraFiles/MNI152.nii.gz -out r00$a.nii -usesqform -applyxfm

/Applications/BCBToolKitOSX/Tools/binaries/bin/fslmaths r00$a -mul r00$a -bin r00$a

done

let me know if it works.

cheers

mich

Hi again,

thanks for your fast response. I had already coregistered the tract masks using SPM, so afterall, all it took was removing nan values using the fslmaths -nan flag. Now, tractotron gives binary probability values and continuous proportion values as you suggested.

Best, Ida

Hi,
I’m trying to launch the BCBToolkit using Ubuntu, which I installed via WSL2 on Windows.
But when I run BCBToolKit.sh, I get the following error:


Can anyone tell me what I’m doing wrong?
Best, jwkw

Hi jwkw,

It seems to be an issue with Java. I never tested the BCBToolkit with the WSL2 on windows and I am not sure how it interacts with Windows. The issue might be that the compiled binaries (and java resources) are compiled for Linux. If WSL2 uses resources compiled for Windows I don’t think it can work.

Do you have the possibility to install a regular virtual machine? That might be easier to use the BCBToolkit if you only have access to a windows computer

Hope that helps,
Chris

Hi,

I am a beginner in MRI analysis and I would like to know the procedure for the pre-processing of disconnectome mapping.
Which software is used and which pre-processing is necessary before the data can be entered into BCBToolKit’s Disconnectome analysis?
If possible, a simple process would be helpful.

Hi,

I have been trying to use Disconnectome Map in BCB Toolkit on my macOS Ventura 13, but it doesn’t seem to work, the task finishes in less than a second and only produces an empty logs file in the output directory.

The tractotron works very well with the same Nifti lesion mask, i don’t have a clue why it won’t work.
I have reinstalled BCB Tollkit, FSL etc …
Have you any idea ?

Thank you in advance,
Benjamin

Hi Benjamin,

Thanks for your interest.
It looks like you don’t have any tract population in your folder or no nifti in the input of disconnectome. Are you using binary lesions 1x1x1 mm mni152?
Did you download your bcbtoolkit on www.bcblab.com?
Did you try to run the code “sudo master disable” as specified at the beginning of the manual?
Let me know so that I can understand where the problem comes from.

Cheers
Mich

Hi Sawai,

Thanks for your message. Your question regards fundamental information that you will find in Foulon et al. Gigascience 2008.

Good luck
Mich

Hi mich,
Thanks for your answer

I am using a binary lesion file defined in the MNI, that seems appropriate since it can be run in tractotron. Here is a screenshot of the command fslinfo on my lesion mask
Capture d’écran 2024-03-18 à 08.32.35

Yes i downloaded BCBToolkit from bcb.lab.com and reinstalled it yesterday.
Tracts are in the “tracts” folder as nii.gz and in tools/extraFiles/tracks as .trk files all in the BCBToolkit folder.
I just ran the comand “sudo spctl --master-disable” as in the manual but disconnectome map doesn’t work better.

Best, Benjamin

That is very strange, I tried it on Ventura, and it usually works. Do you have a space in your directory somewhere or in the name of the files?

If not, I can offer you to run the disconnectome for you here or schedule a Zoom to look at this closer.
Cheers

mich

Thanks for your help,
Can i send you 1 binarized lesion mask as an example so you can try disconnectome yourself and try to tell me where it went wrong ? I tried with several files on several computers with Linux but have the same error.

Once again, Tractotron works well with those files.

Best,
Benjamin

Haha that’s reassuring it means that may come from your file. Send me an example :slight_smile:

Sorry but i can’t upload nifti files on Neurostars, how do you want me to send you the file ?
Benjamin

By email to michel.thiebaut@gmail.com
Thanks

Hi, I have the same issue as in the previous post from Benjamin_Lager. Did you find a solution for this? In short: I’m trying to get disconnectome maps from stroke lesions (binary, 1x1x1mm in MNI space, .nii, no spaces in file or folder names). The process takes less than a second and creates a log folder but no files. I tried to run Tractotron on the same lesion files and that worked fine. I’m working on a macOS Sonoma and started with running the code “sudo master disable”. Many thanks! Selma

1 Like

Hi Benjamin and Selma,

It seems that something changed in some systems breaking the python command in xargs_disco.sh to find the number of processor cores.

It seems to be fixed by changing the two lines starting with nscores= with:
ncores=$(getconf _NPROCESSORS_ONLN)

xargs_disco.sh is located in BCBToolkit/Tools/scripts

Tell me if that doesn’t work!

Good evening,
Chris

Thanks Chris, that solved the problem for me! However, I do directly run into the problem that anaCOM2 cannot read the files I got out output from Disconnectome Maps. Might that be a similar problem?

Hi Chris,

I just wanted to say this worked for me as well, but I had to keep the first 2 lines there (uncommented out) and just add your line as the 3rd line (this worked for the disconnectome portion then). If I just commented out the first 2 lines and used only the new line you suggested, it works for Tractotron still.

Hope that is helpful for others!

Best,
Claudia

Hi Claudia, did you by any chance also try anaCOM2? Did that work for you? Best, Selma

Sorry Selma, I haven’t. But from what I understand, the input is just a csv which requires R to be installed as well. Thus, you cannot input the disconnectome maps. But perhaps Chris can clarify this.