# Neonatal Brain Structural Connectome

**URL:** https://community.mrtrix.org/t/neonatal-brain-structural-connectome/5236
**Category:** Uncategorized
**Tags:** connectomics, tractography
**Created:** [September 29, 2021, 7:54am UTC](https://community.mrtrix.org/t/neonatal-brain-structural-connectome/5236 "2021-09-29T07:54:39Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)
#### Post date: [October 26, 2021, 12:28pm UTC](https://community.mrtrix.org/t/neonatal-brain-structural-connectome/5236/21 "2021-10-26T12:28:44Z")

</div>

> is there any place I can read how to create a 5tt algorithm?

No; I’ve [intended](https://community.mrtrix.org/t/the-mrtrix3-python-script-library/2243) to do this for some time. I did recently have @rmito document the process of contributing a new Python script to _MRtrix3_ for the sake of a presentation, and I’d like to generate some more public documentation based on that experience. The software engineering side of things (i.e. not the novel content but the mechanisms of contributing such) is described [here](https://github.com/MRtrix3/mrtrix3/blob/master/CONTRIBUTING.md).

Contributing to scripts that use the `algorithm` module (currently `5ttgen`, `dwi2response`, `dwibiascorrect`, `dwinormalise`) is slightly different to adding a new standalone script.  
If you:

1. Generate a copy of an existing functioning script in e.g. `lib/mrtrix3/_5ttgen/` and give it an appropriate name;
2. Edit [this line](https://github.com/MRtrix3/mrtrix3/blob/3.0.3/lib/mrtrix3/_5ttgen/fsl.py#L24) so that the name of the parser matches the name of the new file from step 1

, then `5ttgen` should present this “new” entry as an algorithm that can be selected and executed from the command-line. From there it’s a matter of modifying the code relating to the command-line interface and the internal execution of commands in order to make the script manifest the behaviour you want. But starting from something that already works, and making small changes and seeing their influence, is always a good entry point.

Rob

---

_[View the full topic](https://community.mrtrix.org/t/neonatal-brain-structural-connectome/5236)._
