Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows instructions update + citation update #1361

Merged
merged 10 commits into from Oct 23, 2017
21 changes: 21 additions & 0 deletions ISSUE_TEMPLATE.md
@@ -0,0 +1,21 @@
## Description
[Please provide a general introduction to the issue/proposal.]

[If reporting a bug, attach the entire traceback from Python and follow the way to reproduce below]
[If proposing an enhancement/new feature, provide links to related articles, reference examples, etc.]


## Way to reproduce
[If reporting a bug, please include the following important information:]
- [ ] Code example
- [ ] Relevant images (if any)
- [ ] Operating system and version (run `python -c "import platform; print(platform.platform())"`)
- [ ] Python version (run `python -c "import sys; print("Python", sys.version)"`)
- [ ] dipy version (run `python -c "import dipy; print(dipy.__version__)"`)
- [ ] dependency version (numpy, scipy, nibabel, h5py, cvxpy, vtk)
* import numpy; print("NumPy", numpy.__version__)
* import scipy; print("SciPy", scipy.__version__)
* import nibabel; print("Nibabel", nibabel.__version__)
* import h5py; print("H5py", h5py.__version__)
* import cvxpy; print("Cvxpy", cvxpy.__version__)
* import vtk; print(vtk.vtkVersion.GetVTKSourceVersion())
11 changes: 11 additions & 0 deletions doc/cite.rst
Expand Up @@ -19,6 +19,17 @@ Publications
[8] Garyfallidis E, Brett M, Correia M.M, Williams G.B, Nimmo-Smith I. (2012), "QuickBundles, a method for tractography simplification", Frontiers in
Neuroscience, 6 (175).

[9] Garyfallidis E, Cote M-A, Rheault F, Sidhu J, Hau J, Petit L, Fortin D, Cunanne S, Descoteaux M, `Recognition of white matter bundles using local and global streamline-based registration and clustering. <http://www.sciencedirect.com/science/article/pii/S1053811917305839>`

[10] Garyfallidis E, Ocegueda O, Wassermann D, Descoteaux M. `Robust and efficient linear registration of white-matter fascicles in the space of streamlines. <http://www.sciencedirect.com/science/article/pii/S1053811915003961>`

[11] Rokem A, Yeatman JD, Pestilli F, Kay KN, Mezer A, et al. (2015), `Evaluating the Accuracy of Diffusion MRI Models in White Matter. <http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0123272>`

[12] Ocegueda O, Dalmau O, Garyfallidis E, Descoteaux M, Rivera M, `On the computation of integrals over fixed-size rectangles of arbitrary dimension. <http://www.sciencedirect.com/science/article/pii/S0167865516300861>`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add: [Re] Optimization of a free water elimination two-compartment model for diffusion tensor imaging, Rafael Neto Henriques, Ariel Rokem, Eleftherios Garyfallidis, Samuel St-Jean, Eric Thomas Peterson, Marta Morgado Correia, ReScience volume 3, issue 1, article number 2, 2017.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ! -> e55e20a

[13] Rafael Neto Henriques, Ariel Rokem, Eleftherios Garyfallidis, Samuel St-Jean, Eric Thomas Peterson, Marta Morgado Correia, ReScience volume 3, issue 1, article number 2, 2017
`[Re] Optimization of a free water elimination two-compartment model for diffusion tensor imaging. <https://www.biorxiv.org/content/early/2017/02/15/108795>`


A note on citing our work
--------------------------
Expand Down
87 changes: 64 additions & 23 deletions doc/installation.rst
Expand Up @@ -29,10 +29,13 @@ On all platforms, you can use Anaconda_ to install DIPY. To do so issue the foll

conda install dipy -c conda-forge

Some of the visualization methods require the VTK_ library and this can be installed separately (for the time being only on Python 2.7)::
Some of the visualization methods require the VTK_ library and this can be installed separately (for the time being only on Python 2.7 and Python 3.6)::

conda install vtk
conda install -c conda-forge vtk

For OSX users, VTK_ is not available on conda-forge channel, so we recommend to use the following one::

conda install -c clinicalgraphics vtk

Using packages:
===============
Expand All @@ -43,7 +46,7 @@ Windows
#. First, install the python library dependencies. One easy way to do that is to
use the Anaconda_ distribution (see below for :ref:`alternatives`).

#. Even with Anaconda installed, you will still need to install the nibabel_
#. Even with Anaconda_ installed, you will still need to install the nibabel_
library, which supports reading and writing of neuroimaging data formats. Open
a terminal and type ::

Expand All @@ -60,9 +63,9 @@ When the installation has finished we can check if it is successful in the follo

This should work with no error.

#. Some of the visualization methods require the VTK_ library and this can be installed using Anaconda ::
#. Some of the visualization methods require the VTK_ library and this can be installed using Anaconda_ ::

conda install vtk
conda install -c conda-forge vtk


OSX
Expand All @@ -72,7 +75,7 @@ OSX

#. Next, install the python library dependencies. One easy way to do that is to use the Anaconda_ distribution (see below for :ref:`alternatives`).

#. Even with Anaconda installed, you will still need to install the nibabel_ library, which supports reading and writing of neuroimaging data formats. Open a terminal and type ::
#. Even with Anaconda_ installed, you will still need to install the nibabel_ library, which supports reading and writing of neuroimaging data formats. Open a terminal and type ::

pip install nibabel

Expand All @@ -86,9 +89,9 @@ When the installation has finished we can check if it is successful in the follo

This should work with no error.

#. Some of the visualization methods require the VTK_ library and this can be installed using Anaconda ::
#. Some of the visualization methods require the VTK_ library and this can be installed using Anaconda_ ::

conda install vtk
conda install -c clinicalgraphics vtk

Linux
-----
Expand Down Expand Up @@ -191,6 +194,26 @@ we'll also call it the ``<dipy root>`` directory.
Building and installing
=======================

Install from source (all operating systems)
-------------------------------------------

Change directory into the *DIPY source root directory*.

To clean your directory from temporary file, use::

git clean -fxd

This command will delete all files not present in your github repository.

Then, complete your installation by using this command::

pip install --user -e .

This command will do the following :
- remove the old dipy installation if present
- build dipy (equivalent to `python setup.py build_ext --inplace`)
- install dipy locally on your user environment

.. _install-source-nix:

Install from source for Unix (e.g Linux, OSX)
Expand Down Expand Up @@ -261,15 +284,33 @@ Windows
-------

Anaconda_ is probably the easiest way to install the dependencies that you need.
To build from source, you will also need to install a compiler. The easiest way
to do that is to install a current version of Visual Studio.
To build from source, you will also need to install the exact compiler which is
used with your specific version of python.

For getting this information, type this command in shell like ``cmd`` or Powershell_::

python -c "import platform;print(platform.python_compiler())"

Start a command shell like ``cmd`` or Powershell_ and change directory into the
*DIPY source root directory*.
This command should print an information of this form::

MSC v.1900 64 bit (AMD64)

Now that you find the relevant compiler, you have to install the VisualStudioBuildTools_
by respecting the following table::

Visual C++ 2008 (9.0) MSC_VER=1500
Visual C++ 2010 (10.0) MSC_VER=1600
Visual C++ 2012 (11.0) MSC_VER=1700
Visual C++ 2013 (12.0) MSC_VER=1800
Visual C++ 2015 (14.0) MSC_VER=1900
Visual C++ 2017 (15.0) MSC_VER=1910

After the VisualStudioBuildTools_ installation, restart a command shell and
change directory into the *DIPY source root directory*.

To install into your system::

python setup.py install --compiler=mingw32
python setup.py install

To install inplace - so that DIPY is running out of the source code directory::

Expand All @@ -280,14 +321,8 @@ get an error with ``python setup.py develop`` make sure you have installed
`setuptools`_.

If you get an error saying "unable to find vcvarsall.bat" then you need to
create a file called "pydistutils.cfg" in notepad and give it the contents ::

[build]
compiler=mingw32

Save this into your system python ``distutils`` directory as ``distutils.cfg``.
This will be something like ``C:\Python26\Lib\distutils\distutils.cfg``.

check your environment variable ``PATH`` or reinstall VisualStudioBuildTools_.
Distutils should automatically detect the compiler and use it.

OSX
---
Expand All @@ -311,7 +346,13 @@ or the CLANG compiler. This depends on your python installation:
Under Anaconda
~~~~~~~~~~~~~~~~

If you are using Anaconda, you will need to use GCC. Run the following::
If you are using Anaconda_, you will need to use GCC. THe first option is to run the following command::

conda install gcc

After this installation, gcc will be your default compiler in Anaconda_ environment.

The second option is to install gcc via homebrew. Run the following::

brew reinstall gcc --without-multilib

Expand All @@ -337,7 +378,7 @@ at the top of the file, but after the initial imports)::

Building and installing
~~~~~~~~~~~~~~~~~~~~~~~
Whether you are using Anaconda or Hombrew/python.org Python, you will need to then
Whether you are using Anaconda_ or Hombrew/python.org Python, you will need to then
run ``python setup.py install``. When you do that, it should now
compile the code with this OpenMP-enabled compiler, and things should go faster!

Expand Down
1 change: 1 addition & 0 deletions doc/links_names.inc
Expand Up @@ -145,6 +145,7 @@
.. _powershell: http://www.microsoft.com/powershell
.. _msysgit: http://code.google.com/p/msysgit
.. _putty: http://www.chiark.greenend.org.uk/~sgtatham/putty
.. _visualstudiobuildtools: http://landinghub.visualstudio.com/visual-cpp-build-tools

.. Functional imaging labs
.. _`functional imaging laboratory`: http://www.fil.ion.ucl.ac.uk
Expand Down