Hi Ni If you use the --os2t option, you need to provide a (list of) target mask(s) using --targetmasks. Saad On 5 Apr 2012, at 07:14, Ni Shu wrote: > Hi Saad, > I want to try the probtrackx2 for surface-based voxelwise tracking, but meet following problem, hope you can help. Thanks! > > probtrackx2 --samples=/mnt/hgfs/Share/Prob_001/1.bedpostX/merged --mask=/mnt/hgfs/Share/Prob_001/1.bedpostX/nodif_brain_mask --seed=lh.white.asc --meshspace=freesurfer --seedref=refvol.nii.gz --xfm=freesurfer2diff.mat --omatrix1 --opd --os2t --s2tastext > Log directory is: logdir++ > Running in seedmask mode > load seeds > done. > Load bedpostx samples > 1_1 > 1_2 > 1_3 > 2_1 > 2_2 > 2_3 > > nfibres : 2 > nsamples : 50 > > Done loading samples. > terminate called after throwing an instance of 'std::out_of_range' > what(): basic_string::substr > Aborted > > Ni > -- Saad Jbabdi University of Oxford, FMRIB Centre JR Hospital, Headington, OX3 9DU, UK (+44)1865-222466 (fax 717) www.fmrib.ox.ac.uk/~saad