Skip to content

Commit 86b331b

Browse files
authored
initial release (#1)
1 parent 88b85d8 commit 86b331b

32 files changed

+11272
-28
lines changed

README.rst

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,84 @@
11

2+
3+
Welcome to fusilib!
4+
###################
25
|Zenodo| |License|
36

47

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+
543
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
745

8-
This repository contains the code related to the article:
46+
.. code-block:: bash
947
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
1151
1252
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+
1374
.. |Zenodo| image:: https://zenodo.org/badge/456774708.svg
1475
:target: https://zenodo.org/badge/latestdoi/456774708
1576

1677
.. |License| image:: https://img.shields.io/badge/license-BSD%203--Clause-blue
1778
: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

fusilib/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from . import extras
2+
from . import io
3+
from . import (config,
4+
align,
5+
metahelper,
6+
misc,
7+
resampling,
8+
utils)
9+
10+
11+
import warnings as _warnings
12+
_warnings.filterwarnings('ignore', category=RuntimeWarning)

0 commit comments

Comments
 (0)