Hey everyone,
after resampling a TractSeg generated bundle to equidistant planes using the -line option (Thanks again @rsmith) I want to sample diffusion metrics from it.
I now have a mismatch in streamline count:
The resulting txt file with the sampled values has a lot of empty lines (see image attached). Compatible with the streamline count of the tck file used as an input to the sampling (which according to tckinfo -count has 2000 streamlines), the txt file also has 2000 lines.
Of those only 131 hold values, the rest is just empty.
I noticed this because after loading the extracted metrics into R dataframes all the six bundles I look at have a different amount of streamlines even though the tck files used for sampling should all have 2000.
Do I do something wrong or is this possibly a bug?
Commands executed:
# Inputs: bundle.tck dwi_fa.nii tckinfo -count bundle.tck
Tracks file: “…/…/07_tractography/01_processed_bundles_median/CST_left_equi_line_50.tck”
command_history: tckresample -line 50 ‘124.3075,110.684,55.7634’ ‘93.3927,129.438,169.824’ ./07_tractography/tractseg/tractseg_output/TOM_trackings/CST_left.tck ./07_tractography/01_processed_bundles_median/CST_left_equidistant.tck (version=3.0.3)
count: 2000
dimensions: (256, 256, 256)
mrtrix_version: 3.0.3
timestamp: 1651069544.0221230984
total_count: 2000
voxel_order: RAS
voxel_sizes: [1. 1. 1.]
tckinfo: [done] counting tracks in file
actual count in file: 2000
Sampling
tcksample bundle.tck dwi_fa.nii metrics.txt
tcksample: [100%] Sampling values underlying streamlines
Counting non empty streamlines
sed -e 's/[\t ]//g;/^$/d' metrics.txt | wc -l
132