HI Xinyang,

how big is this difference?
are these ROIs volumes or surfaces?

Moises

On 20 March 2018 at 23:01, Xinyang Liu <[log in to unmask]> wrote:
Dear Matteo,

Thanks a lot for your reply.
Then there is a contradiction here that I cannot make clear for a long time. When I set all network mode seedmasks exactly the same ones as in the --wtstop list (probtrackx2 ...  -x /.../seed90_sciblade.txt  ... --wtstop=/.../seed90_sciblade.txt), it means that these masks can be used as both waypoint masks which streamlines would go into and terminate masks from which the streamlines would stop on exiting them. How did it came out that waytotal row values were lower than corresponding sum of the fdt_network_matrix? To my understanding, in this situation, one streamline would reach only one target seedmask. I really cannot think out how it works here.

Best regards,
Xinyang 


At 2018-03-21 01:32:42, "Matteo Bastiani" <[log in to unmask]> wrote:
Hi again,

yes, you can provide a text file with the different wt_stop masks separately. 
This will ensure that a streamline will be stopped when leaving one of the masks.


Cheers,
Matteo

On 20 Mar 2018, at 14:40, Xinyang Liu <[log in to unmask]> wrote:

Hi, Matteo.

Maybe I should make my question a shorter one.
So in the network mode prob-tracking, if I use the --wtstop parameter to make all the ROI seedmasks also as the wtstop masks, does it mean that the streamlines will stop on exiting every target seedmask? Because it seemed to be like this according to the output image. And also, the matrix seemed also work on that mode. Therefore I want to ask whether it is the case in theory.
Look forward to your feedback. Thank you very much.

Best regards,
Xinyang


At 2018-03-20 17:52:19, "Xinyang Liu" <[log in to unmask]> wrote:
Dear Matteo,

Thanks a lot for your kind feedback.
I will try as you suggested. But before that,  I still want to make clear some confusions about using --wtstop. Any guidance would be very appreciated.

1. According to one previous email about network mode tracking,  our FSL expert said "if you use a wtstop mask for each ROI, the streamline will be able to exit from the ROI and enter into a second  ROI. It will stop when it exits the second ROI." So will the streamlines in the second terminate ROI be counted in to the fdt_network_matrix after passing through the target ROI in the network mode?

2. If there is a --wtstop ROI mask between the a seed ROI and a target ROI in the network mode, will the streamlines passing through the --wtstop  ROI and reach the target?

3. In a 90*90 ROI network, if I set the same 90 seedmasks as the --wtstop masks to avoid too far propagation and only focus on direct connections, how do the streamline goes? Because it seemed somehow different from the condition when defining one seed ROI and the rest 89 ROIs as --stop terminate masks as a pair-wise relationship.

Look forward to your feedback. Many thanks.

Best regards,
Xinyang


At 2018-03-19 21:26:57, "Matteo Bastiani" <[log in to unmask]> wrote:
Hi again,

if you use the same stop mask as your seed mask, tracking won’t be initiated.
Try defining some other anatomically meaningful stop masks that does not completely overlap with your seed masks, if you think you need those.


Hope this helps, cheers,
Matteo

On 18 Mar 2018, at 12:20, Xinyang Liu <[log in to unmask]> wrote:

Dear Matteo,

Thanks a lot for your reply.
Yes, the --wtstop will allow streamlines go into the next mask. Then I tried with the --stop parameter in the network mode prob-tracking. The command is as below.
probtrackx2 --network -l -c 0.2  -s /.../T1w/Diffusion.bedpostX/merged -m /.../T1w/Diffusion.bedpostX/nodif_brain_mask.nii.gz -x /.../seed90_sciblade.txt -o 100206_network90 --dir=/.../output_net90 --forcedir --opd --omatrix1 -P 500 --stop=/.../seed90_sciblade.txt 

However, both the fdt_network_matrix and the waytotal matrix turned out to be zeros. Is there anything wrong with my script?

Best regards,
Xinyang


At 2018-03-18 02:08:59, "Matteo Bastiani" <[log in to unmask]> wrote:
Hi Xinyang,

you can use stop masks to avoid streamlines reaching other locations.
wt_stop masks allow propagation within this mask but terminate the streamline on exit. If your masks are neighbouring cortical regions, this might not help.


Hope this helps, cheers,
Matteo


On 17 Mar 2018, at 12:28, Xinyang Liu <[log in to unmask]> wrote:

Dear Matteo,

Thank you very much for your kind and helpful reply.
Then what should we do if we want to let the streamline stop when it has already reached one target ROI? Won't the --wtstop  help?

Best regards,
Xinyang

At 2018-03-17 20:22:35, "Matteo Bastiani" <[log in to unmask]> wrote:
Hi Xinyang,

that is because one single streamline can reach multiple target regions. The waytotal is the number of streamlines that go through all your other seed regions and waypoint masks (if you have used them).


Hope this helps, cheers,
Matteo

On 17 Mar 2018, at 12:12, Xinyang Liu <[log in to unmask]> wrote:

Dear FSL experts,

Hi. We met a problem when computing the 90*90 ROI connectivity probabilistic matrix in probtrackx2 network mode. We planed to get the fdt_network_matrix and then use it to divide the waytotal matrix. However, we found that the sum of every row in fdt_network_matrix was a bit larger than the corresponding row of waytotal matrix. Our command was:

probtrackx2 --network -l -c 0.2  -s /.../T1w/Diffusion.bedpostX/merged -m /.../T1w/Diffusion.bedpostX/nodif_brain_mask.nii.gz -x /.../seed90_sciblade.txt -o 100206_network90 --dir=/.../output_net90 --forcedir --opd --omatrix1 -P 500 --wtstop=/.../seed90_sciblade.txt 

And the outcomes turned out to be:
          sum of each row in           fdt_network_matrix
                       waytotal
3314994 1482202
1607910 1424172
1181556 1096645
1362465 1275803
404120 354270
471835 406840
                                ......                                  .......
They were supposed to be the same. Could you please give us some guidance why these two items are different? Thank you very much.

Best regards,
Xinyang