# Tckedit exclude include

**URL:** <https://community.mrtrix.org/t/tckedit-exclude-include/3147>\
**Category:** Uncategorized\
**Created:** [December 24, 2019, 4:13am UTC](https://community.mrtrix.org/t/tckedit-exclude-include/3147 "2019-12-24T04:13:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadluru](https://community.mrtrix.org/user_avatar/community.mrtrix.org/nadluru/32/1445_2.png) [@nadluru](https://community.mrtrix.org/u/nadluru)\
**Post date:** [December 24, 2019, 4:13am UTC](https://community.mrtrix.org/t/tckedit-exclude-include/3147/1 "2019-12-24T04:13:19Z")

</div>

Dear all,

I found some interesting behavior with the include exclude filters of `tckedit` that I am not able to fully understand.

The data for the test case can be downloaded [here](http://brainimaging.waisman.wisc.edu/~adluru/TestCase.tar.gz). I ran the following two commands.

> tckedit UFSketch.tck -include axialslice.nii.gz UFSketch\_IncludeFilter.tck  
> tckedit UFSketch.tck -exclude axialslice.nii.gz UFSketch\_ExcludeFilter.tck

The include filter doesn’t seem to include all the tracts passing through the axial slice and the exclude filter doesn’t seem to exclude all the tracts passing through the axial slice. It could be an issue with the header differences between `axialslice.nii.gz` and `fa.nii.gz` but I am not sure and am not able to pinpoint what it is. Could you kindly help me with this!

Thanks so much.  
Sincerely,  
Nagesh

---

<div class="post-metadata">

**Author:** ![nadluru](https://community.mrtrix.org/user_avatar/community.mrtrix.org/nadluru/32/1445_2.png) [@nadluru](https://community.mrtrix.org/u/nadluru)\
**Post date:** [December 24, 2019, 5:28am UTC](https://community.mrtrix.org/t/tckedit-exclude-include/3147/2 "2019-12-24T05:28:23Z")

</div>

Hi all,

I noticed this [post](https://community.mrtrix.org/t/exclusion-rois-not-working-properly/3125) and it made it clear that the stepsize could be the issue. Once I dilated the axial slice the exclude filter is working as expected.

Thanks so much!  
Happy holidays and new year to all.  
Best,  
Nagesh
