# Tckedit for mean .tck of all subjects

**URL:** https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381
**Category:** Uncategorized
**Tags:** mrview, tractography
**Created:** [February 8, 2023, 3:06pm UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381 "2023-02-08T15:06:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Marcos\_Uceta\_Garcia](https://community.mrtrix.org/user_avatar/community.mrtrix.org/marcos_uceta_garcia/32/3999_2.png) [@Marcos\_Uceta\_Garcia](https://community.mrtrix.org/u/Marcos_Uceta_Garcia)
#### Post date: [February 8, 2023, 3:06pm UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381/1 "2023-02-08T15:06:05Z")

</div>

Hello y’all!

I have concatenated all .tck of my subjects to get the overall tractography (after all the processing and such). Is there any possibility to get some form of mean .tck for all the subjects, like a randomly picked -number N (instead of getting the first N streamlines of the total .tck, get a random number of streamlines, making it representative of the whole population).

Cheers!

---

<div class="post-metadata">

### Author: ![StarVolcano](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/s/e0b2c6/32.png) [@StarVolcano](https://community.mrtrix.org/u/StarVolcano)
#### Post date: [April 10, 2023, 2:12pm UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381/2 "2023-04-10T14:12:10Z")

</div>

Hi Garcia,

I have some ideas for your problem but I’m not sure what are you going to do with a mean tractography map. 🤔  
Would you please give more details to let me think whether my ideas can solve your problem?

Best,  
Volcano

---

<div class="post-metadata">

### Author: ![Marcos\_Uceta\_Garcia](https://community.mrtrix.org/user_avatar/community.mrtrix.org/marcos_uceta_garcia/32/3999_2.png) [@Marcos\_Uceta\_Garcia](https://community.mrtrix.org/u/Marcos_Uceta_Garcia)
#### Post date: [April 11, 2023, 9:45am UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381/3 "2023-04-11T09:45:41Z")

</div>

Well, it’s meant to be a figure for a paper, so as explicative and communicative as possible. I’ve plenty of subjects with their respective tractography map, but I can’t use them all separately, so I wondered if there is the possibility of illustrating the “mean tractography results”.

Thanks!

---

<div class="post-metadata">

### Author: ![StarVolcano](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/s/e0b2c6/32.png) [@StarVolcano](https://community.mrtrix.org/u/StarVolcano)
#### Post date: [April 11, 2023, 10:25am UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381/4 "2023-04-11T10:25:17Z")

</div>

Hi Garcia,

In my point of view, maybe you want to get a map that describes the mean density of streamlines in the whole brain. And the `tckmap` command may be an appropriate choice.  
The [doc](https://mrtrix.readthedocs.io/en/latest/reference/commands/tckmap.html) is here, hope it helps~ 😀

Best,  
Volcano

---

<div class="post-metadata">

### Author: ![Marcos\_Uceta\_Garcia](https://community.mrtrix.org/user_avatar/community.mrtrix.org/marcos_uceta_garcia/32/3999_2.png) [@Marcos\_Uceta\_Garcia](https://community.mrtrix.org/u/Marcos_Uceta_Garcia)
#### Post date: [April 11, 2023, 11:48am UTC](https://community.mrtrix.org/t/tckedit-for-mean-tck-of-all-subjects/6381/5 "2023-04-11T11:48:54Z")

</div>

I hope that works! I’ll try to take a look at the doc and, if possible, I’ll have a nice figure for my results.

Thanks!
