# FSL through Slicer

**URL:** <https://discourse.slicer.org/t/fsl-through-slicer/736>\
**Category:** Development\
**Created:** [July 21, 2017, 1:56pm UTC](https://discourse.slicer.org/t/fsl-through-slicer/736 "2017-07-21T13:56:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marlene](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marlene/32/4566_2.png) [@marlene](https://discourse.slicer.org/u/marlene)\
**Post date:** [July 21, 2017, 1:56pm UTC](https://discourse.slicer.org/t/fsl-through-slicer/736/1 "2017-07-21T13:56:42Z")

</div>

Hello everybody,

I am trying to use an external library (fsl) in my module. My problem is exactly this : [http://massmail.spl.harvard.edu/public-archives/slicer-users/2016/010173.html](http://massmail.spl.harvard.edu/public-archives/slicer-users/2016/010173.html) . I am wondering weather in the meanwhile a more straightforward solution has been implemented.

I was thinking a (not really elegant) way to do it :

1. creating a function in matlab which call ‘fsl’ using a shell command
2. call the function through the matlab bridge extension.

Does it make sense? if yes, how can I call the function from the python script of my module?

thank you very much

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [July 21, 2017, 2:16pm UTC](https://discourse.slicer.org/t/fsl-through-slicer/736/2 "2017-07-21T14:16:26Z")

</div>

If you are on Linux or Mac, I would suggest to first try installing nipype with Slicer’s pip (it probably won’t work on Windows). See [this post](https://discourse.slicer.org/t/pyzmq-in-slicer-python/587/4?u=ihnorton) for instructions. Slicer compatibility with the rest of the Python world is still in limbo. Hopefully once we move to Python3 and Visual Studio 2015, we can consider building against miniconda by default.

If you are willing to write your own shell-out routine, there’s no need to introduce a Matlab dependency, Python can do it directly: [https://docs.python.org/2/library/subprocess.html](https://docs.python.org/2/library/subprocess.html)

---

<div class="post-metadata">

**Author:** ![marlene](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marlene/32/4566_2.png) [@marlene](https://discourse.slicer.org/u/marlene)\
**Post date:** [July 24, 2017, 3:01pm UTC](https://discourse.slicer.org/t/fsl-through-slicer/736/3 "2017-07-24T15:01:58Z")

</div>

thank you for your help 🙂
