|
1 | 1 |
|
| 2 | + |
| 3 | +Welcome to fusilib! |
| 4 | +################### |
2 | 5 | |Zenodo| |License|
|
3 | 6 |
|
4 | 7 |
|
| 8 | +What is fusilib? |
| 9 | +================= |
| 10 | +``fusilib`` is a Python package for analysis of functional ultrasound and electrophysiology data. |
| 11 | + |
| 12 | +Installation |
| 13 | +============ |
| 14 | + |
| 15 | +The following package must be installed on your system: |
| 16 | + |
| 17 | +* git |
| 18 | +* pip |
| 19 | +* python3-venv |
| 20 | + |
| 21 | +To install the `fusilib` package in a virtual environment, execute the following from the command line: |
| 22 | + |
| 23 | +.. code-block:: bash |
| 24 | +
|
| 25 | + git clone https://github.com/anwarnunez/fusi.git |
| 26 | + cd fusi |
| 27 | + python3 -m venv fusienv |
| 28 | + source fusienv/bin/activate |
| 29 | + pip install -r requirements.txt |
| 30 | + pip install -e . |
| 31 | + |
| 32 | +If you get errors from pip, try re-running the pip install commands. |
| 33 | + |
| 34 | +Getting started |
| 35 | +=============== |
| 36 | + |
| 37 | +First, make sure everything is installed correctly by importing the package from within Python or IPython: |
| 38 | + |
| 39 | +.. code-block:: python |
| 40 | +
|
| 41 | + >>> import fusilib |
| 42 | +
|
5 | 43 |
|
6 |
| -https://github.com/anwarnunez/fusi |
| 44 | +Checkout the figshare `project`_ and download the `dataset.zip`_ file (~15GB). Unzip the file in your local machine. Then, open the command line and navigate to the unzipped ``Subjects`` folder. You should then be able to execute the demo scripts from the command line |
7 | 45 |
|
8 |
| -This repository contains the code related to the article: |
| 46 | +.. code-block:: bash |
9 | 47 |
|
10 |
| -Neural correlates of blood flow measured by ultrasound. Nunez-Elizalde AO, Krumin M, Reddy CB, Montaldo G, Urban A, Harris KD, and Carandini M. (2022) |
| 48 | + unzip dataset.zip |
| 49 | + cd Subjects |
| 50 | + python3 /path/to/repo/fusi/scripts/demo.py |
11 | 51 |
|
12 | 52 |
|
| 53 | +Alternatively, you can add the location of the downloaded data to the demo `scripts`_ directly. To do so, change the following lines at the top of the demo scripts: |
| 54 | + |
| 55 | +.. code-block:: python |
| 56 | +
|
| 57 | + # Enter the path to the downloaded "Subjects" directory. |
| 58 | + # By default, the path is set to the current working directory. |
| 59 | + import fusilib.config |
| 60 | + data_location = '/path/to/extracted/data/Subjects' |
| 61 | + fusilib.config.set_dataset_path(data_location) |
| 62 | +
|
| 63 | +Then, execute the demo script from the command line: |
| 64 | + |
| 65 | +.. code-block:: bash |
| 66 | +
|
| 67 | + python3 scripts/demo.py |
| 68 | +
|
| 69 | +Cite as |
| 70 | +======= |
| 71 | +Neural correlates of blood flow measured by ultrasound. Nunez-Elizalde AO, Krumin M, Reddy CB, Montaldo G, Urban A, Harris KD, and Carandini M. Neuron (2022). |
| 72 | + |
| 73 | + |
13 | 74 | .. |Zenodo| image:: https://zenodo.org/badge/456774708.svg
|
14 | 75 | :target: https://zenodo.org/badge/latestdoi/456774708
|
15 | 76 |
|
16 | 77 | .. |License| image:: https://img.shields.io/badge/license-BSD%203--Clause-blue
|
17 | 78 | :target: https://opensource.org/licenses/BSD-3-Clause
|
| 79 | + |
| 80 | +.. _project: https://figshare.com/projects/Nunez-Elizalde2022/132110 |
| 81 | + |
| 82 | +.. _dataset.zip: https://figshare.com/articles/dataset/Simultaneous_functional_ultrasound_and_electrophysiology_recordings_of_neural_activity_in_awake_mice/19316228 |
| 83 | + |
| 84 | +.. _scripts: https://github.com/anwarnunez/fusi/tree/main/scripts |
0 commit comments