# Tckresample and tcksample for along the tract statistics

**URL:** <https://community.mrtrix.org/t/tckresample-and-tcksample-for-along-the-tract-statistics/1368>\
**Category:** Uncategorized\
**Tags:** tractography\
**Created:** [December 11, 2017, 9:28pm UTC](https://community.mrtrix.org/t/tckresample-and-tcksample-for-along-the-tract-statistics/1368 "2017-12-11T21:28:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hcarlson](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@hcarlson](https://community.mrtrix.org/u/hcarlson)\
**Post date:** [January 16, 2018, 10:21pm UTC](https://community.mrtrix.org/t/tckresample-and-tcksample-for-along-the-tract-statistics/1368/3 "2018-01-16T22:21:56Z")

</div>

Hi Rob,  
I wanted to add a few pieces of additional information here just in case they help with troubleshooting.

The misbehaviour of `tckresample` does not appear to be isolated to the `-arc` option. The `-line` option appears to have the same results as the images presented in the previous post.

Also, while the output file does contain the requested 20 samples, it does have some “ragged edges”. I initially attributed this to the fact that some of the streamlines may have not quite made it to the end of the sampling area. However, in this post ([Coordinates for tckresample…](https://community.mrtrix.org/t/coordinates-for-tckresample-for-along-tract-analysis/1179)) it clearly states that only streamlines that span the entire path will be sampled therefore there should be no “ragged edges” in the data file.

In this example below I asked for 10 samples along a line and the resulting data file has 9 or 10 values in any given row and some rows are shifted to the right. Could this possibly help to diagnose the misbehaviour of `tckresample`?

 ![31 PM](https://community.mrtrix.org/uploads/default/original/2X/3/3ee2cfe3de753d5745997beea26a3c1842ff0133.png)

Thanks very much  
Helen

---

_[View the full topic](https://community.mrtrix.org/t/tckresample-and-tcksample-for-along-the-tract-statistics/1368)._
