Skip to content

Commit 62d4c66

Browse files
committed
DOC update README
1 parent 70c06fe commit 62d4c66

5 files changed

Lines changed: 107 additions & 35 deletions

File tree

README.rst

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
1-
.. raw:: html
1+
============================
2+
Voxelwise modeling tutorials
3+
============================
24

3-
<h1>Voxelwise modeling tutorials</h1>
5+
|Github| |Python|
46

7+
Welcome to the voxelwise modeling tutorial from the
8+
`Gallantlab <https://gallantlab.org>`_.
59

6-
|Github| |Python|
10+
Tutorials
11+
=========
712

8-
.. raw:: html
13+
This repository contains tutorials describing how to use the voxelwise modeling
14+
framework. Voxelwise modeling is a framework to perform functional magnetic
15+
resonance imaging (fMRI) data analysis, fitting encoding models at the voxel
16+
level.
917

10-
<h2>Tutorials</h2>
18+
To explore these tutorials, one can:
1119

20+
- read the rendered examples in the tutorials
21+
`website <https://gallantlab.github.io/voxelwise_tutorials/>`_ (recommended)
22+
- run the Python scripts located in the `tutorials <tutorials>`_ directory
23+
- run the ``jupyter`` notebooks located in the
24+
`tutorials/notebooks <tutorials/notebooks>`_ directory
1225

13-
This repository contains some tutorials describing how to perform voxelwise
14-
modeling, based for instance on visual imaging experiments.
15-
The best way to explore these tutorials is to go to the
16-
`website <https://gallantlab.github.io/voxelwise_tutorials/>`_.
26+
To run the tutorials yourself, first download this repository, and install the
27+
dependencies (see below). Then, run either the Python scripts or the
28+
``jupyter`` notebooks located in the "tutorials" directory. The tutorials are
29+
best explored in order, starting with the "Movies 3T tutorial".
1730

18-
The ``voxelwise_tutorials`` package
19-
=========================
31+
Helper Python package
32+
=====================
2033

21-
On top of tutorials, this repository also contains a small Python package
22-
called ``voxelwise_tutorials``, which contains useful fonctions to download the
34+
To run the tutorials, this repository contains a small Python package
35+
called ``voxelwise_tutorials``, with useful fonctions to download the
2336
data sets, load the files, process the data, and visualize the results.
2437

2538
Installation
2639
------------
2740

28-
To install this package, run
41+
To install the ``voxelwise_tutorials`` package, run
2942

3043
.. code-block:: bash
3144
@@ -44,24 +57,25 @@ Developers can also install the package in editable mode via:
4457
Requirements
4558
------------
4659

47-
The Python package ``voxelwise_tutorials`` requires the following dependencies:
60+
The package ``voxelwise_tutorials`` has the following dependencies:
4861

4962
- `numpy <https://github.com/numpy/numpy>`_
5063
- `scipy <https://github.com/scipy/scipy>`_
64+
- `h5py <https://github.com/h5py/h5py>`_
5165
- `scikit-learn <https://github.com/scikit-learn/scikit-learn>`_
5266
- `matplotlib <https://github.com/matplotlib/matplotlib>`_
5367

54-
Each tutorial requires additional dependencies, as listed in their respective
68+
Each tutorial requires additional packages, as listed in their respective
5569
documentations, such as:
5670

57-
- `h5py <https://github.com/h5py/h5py>`_
71+
- `voxelwise_tutorials <https://github.com/gallantlab/voxelwise_tutorials>`_
72+
(this repository)
5873
- `himalaya <https://github.com/gallantlab/himalaya>`_
5974
- `pymoten <https://github.com/gallantlab/pymoten>`_
60-
- `voxelwise_tutorials <https://github.com/gallantlab/voxelwise_tutorials>`_
61-
(this repository)
75+
- `pycortex <https://github.com/gallantlab/pycortex>`_
6276

6377

64-
.. |Github| image:: https://img.shields.io/badge/github-tutorials-blue
78+
.. |Github| image:: https://img.shields.io/badge/github-voxelwise_tutorials-blue
6579
:target: https://github.com/gallantlab/voxelwise_tutorials
6680

6781
.. |Python| image:: https://img.shields.io/badge/python-3.7%2B-blue

doc/index.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Voxelwise modeling tutorials
22
============================
33

44

5-
Welcome to the voxelwise modeling tutorial from the
5+
Welcome to the voxelwise modeling tutorials from the
66
`Gallantlab <https://gallantlab.org>`_.
77

88
Getting started
@@ -11,18 +11,19 @@ Getting started
1111
This website contains tutorials describing how to use the
1212
`voxelwise modeling framework <voxelwise_modeling.html>`_.
1313

14-
The tutorials consist of Python scripts, which are rendered in a
15-
`gallery of examples <auto_examples/index.html>`_.
16-
The tutorials are best explored in order, starting with the
17-
"Movies 3T tutorial".
14+
The tutorials consist of Python scripts, which are rendered in a `gallery of
15+
examples <auto_examples/index.html>`_. Each Python script is also available as a
16+
``Jupyter`` notebook (non-rendered). The tutorials are best explored in order,
17+
starting with the "Movies 3T tutorial".
1818

19-
To run the tutorials yourself, we recommend to download the project on github
19+
To run the tutorials yourself, we recommend to download the project on GitHub
2020
at `gallantlab/voxelwise_tutorials
2121
<https://github.com/gallantlab/voxelwise_tutorials>`_. On top of the tutorials,
22-
the github repository contains a Python package called ``voxelwise_tutorials``,
22+
the GitHub repository contains a Python package called ``voxelwise_tutorials``,
2323
which contains useful fonctions to download the data sets, load the files,
2424
process the data, and visualize the results. Install instructions are available
25-
`here <voxelwise_package.html>`_.
25+
`here <voxelwise_package.html>`_. Then, run either the Python scripts or the
26+
``jupyter`` notebooks located in the "tutorials" directory.
2627

2728
Tutorials
2829
---------

doc/voxelwise_package.rst

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
.. include:: ../README.rst
1+
Helper Python package
2+
=====================
3+
4+
|Github| |Python|
5+
6+
To run the tutorials, the `gallantlab/voxelwise_tutorials
7+
<https://github.com/gallantlab/voxelwise_tutorials>`_ repository contains a
8+
Python package called ``voxelwise_tutorials``, with useful fonctions to
9+
download the data sets, load the files, process the data, and visualize the
10+
results.
11+
12+
Installation
13+
------------
14+
15+
To install the ``voxelwise_tutorials`` package, run
16+
17+
.. code-block:: bash
18+
19+
git clone https://github.com/gallantlab/voxelwise_tutorials.git
20+
cd voxelwise_tutorials
21+
pip install .
22+
23+
24+
Developers can also install the package in editable mode via:
25+
26+
.. code-block:: bash
27+
28+
pip install --editable .
29+
30+
31+
Requirements
32+
------------
33+
34+
The package ``voxelwise_tutorials`` has the following dependencies:
35+
36+
- `numpy <https://github.com/numpy/numpy>`_
37+
- `scipy <https://github.com/scipy/scipy>`_
38+
- `h5py <https://github.com/h5py/h5py>`_
39+
- `scikit-learn <https://github.com/scikit-learn/scikit-learn>`_
40+
- `matplotlib <https://github.com/matplotlib/matplotlib>`_
41+
42+
Each tutorial requires additional packages, as listed in their respective
43+
documentations, such as:
44+
45+
- `voxelwise_tutorials <https://github.com/gallantlab/voxelwise_tutorials>`_
46+
- `himalaya <https://github.com/gallantlab/himalaya>`_
47+
- `pymoten <https://github.com/gallantlab/pymoten>`_
48+
- `pycortex <https://github.com/gallantlab/pycortex>`_
49+
50+
51+
.. |Github| image:: https://img.shields.io/badge/github-voxelwise_tutorials-blue
52+
:target: https://github.com/gallantlab/voxelwise_tutorials
53+
54+
.. |Python| image:: https://img.shields.io/badge/python-3.7%2B-blue
55+
:target: https://www.python.org/downloads/release/python-370

tutorials/movies_3T/README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ This tutorial implements different voxelwise models:
2323
**Requirements:**
2424
This tutorial requires the following Python packages:
2525

26+
- voxelwise_tutorials (this repository)
2627
- numpy
2728
- scipy
2829
- h5py
2930
- scikit-learn
30-
- voxelwise_tutorials (this repository)
31+
- jupyter
32+
- matplotlib
3133
- himalaya
34+
- pycortex (optional, for using 3D brain viewers)
3235
- pymoten (optional, for extracting motion energy)
33-
- cupy/pytorch (optional, to use GPU in himalaya)
34-
36+
- cupy/pytorch (optional, to use a GPU backend in himalaya)
3537

3638
**References:**
3739

tutorials/movies_4T/README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ publication [5]_, and the CRCNS data set [6]_.
2626
**Requirements:**
2727
This tutorial requires the following Python packages:
2828

29+
- voxelwise_tutorials (this repository)
2930
- numpy
3031
- scipy
3132
- h5py
3233
- scikit-learn
33-
- voxelwise_tutorials (this repository)
34+
- matplotlib
3435
- himalaya
35-
- pymoten (optional, for extracting motion energy)
36-
- cupy/pytorch (optional, to use GPU in himalaya)
36+
- pymoten
37+
- cupy/pytorch (optional, to use a GPU backend in himalaya)
3738

3839
**References:**
3940

0 commit comments

Comments
 (0)