Skip to content

Commit 37ee47b

Browse files
committed
2 parents fde39ab + 0d550cf commit 37ee47b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+6706
-1803
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ on:
44
push:
55
branches: [ "main" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "main" , "dev"]
88

99
workflow_dispatch:
1010

1111
jobs:
1212
build:
1313
runs-on:
1414
group: LargerInstance
15+
container:
16+
image: rcpeene/openscope_databook:latest
1517

1618
env:
1719
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
@@ -21,21 +23,27 @@ jobs:
2123
- uses: actions/checkout@v3
2224
with:
2325
fetch-depth: 0
24-
ref: main
26+
ref: ${{ github.ref }}
2527

2628
# - name: Set up Python
2729
# uses: actions/setup-python@v4
2830
# with:
29-
# python-version: "3.10"
31+
# python-version: "3.11"
32+
33+
# - name: Upgrading pip
34+
# run: pip install --upgrade pip
3035

31-
- name: Upgrading pip
32-
run: pip install --upgrade pip
36+
# - name: Install deps
37+
# run: pip install cython numpy
3338

34-
- name: Install deps
35-
run: pip install cython numpy
39+
- name: pip freeze
40+
run: pip freeze
3641

37-
- name: Installing package
38-
run: pip install -e .
42+
# - name: Installing packages again (this prevents a weird error)
43+
# run: pip install -r requirements.txt
44+
45+
# - name: Installing package
46+
# run: pip install -e .
3947

4048
- name: Installing build dependencies
4149
run: |
@@ -79,7 +87,9 @@ jobs:
7987
rm ./docs/embargoed/*.nwb
8088
8189
- name: Printing log
82-
run: git status
90+
run: |
91+
git config --global --add safe.directory /__w/openscope_databook/openscope_databook
92+
git status
8393
8494
- name: Printing shortlog
8595
run: git log | git shortlog -sn

.github/workflows/deploy.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
ref: main
15-
15+
16+
- name: Installing python
17+
run: |
18+
sudo apt-get update
19+
sudo apt install python3.12
20+
sudo apt-get install build-essential
21+
1622
- name: Upgrading pip
1723
run: pip install --upgrade pip
1824

1925
- name: Installing dependencies
20-
run: pip install markupsafe==2.0.1 numpy cython
26+
run: |
27+
pip install --upgrade pip setuptools
28+
pip install markupsafe==2.0.1 numpy cython --no-cache-dir
2129
2230
- name: Installing package
2331
run: pip install -e .
@@ -36,7 +44,7 @@ jobs:
3644
jupyter-book clean ./docs
3745
jupyter-book build ./docs
3846
39-
- name: Deploy book to Github pages
47+
- name: Deploy book to GitHub pages
4048
uses: peaceiris/[email protected]
4149
with:
4250
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
test:
1212
runs-on:
1313
group: LargerInstance
14+
container:
15+
image: rcpeene/openscope_databook:latest
1416

1517
env:
1618
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
@@ -19,20 +21,20 @@ jobs:
1921
steps:
2022
- uses: actions/checkout@v3
2123

22-
- name: Upgrading pip
23-
run: pip install --upgrade pip
24+
# - name: Upgrading pip
25+
# run: pip install --upgrade pip
2426

2527
- name: print environment
2628
run: pip freeze
2729

28-
- name: Install cython
29-
run: pip install cython numpy
30+
# - name: Install cython
31+
# run: pip install cython numpy
3032

31-
- name: Installing package
32-
run: pip install -e .
33+
# - name: Installing package
34+
# run: pip install -e .
3335

34-
- name: Installing requirements
35-
run: pip install -r ./requirements.txt
36+
# - name: Installing requirements
37+
# run: pip install -r ./requirements.txt
3638

3739
- name: Installing build dependencies
3840
run: |

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM ubuntu:22.04
2+
# base requirements
3+
RUN apt-get update
4+
RUN apt-get install -y coreutils
5+
RUN apt-get install -y libgl1-mesa-glx
6+
RUN apt-get install -y libglib2.0-0
7+
RUN apt-get install -y python3 python3-pip
8+
RUN apt-get install -y git
9+
10+
RUN git config --global --add safe.directory /__w/openscope_databook/openscope_databook
11+
12+
# copy databook setup files
13+
COPY requirements.txt ./openscope_databook/requirements.txt
14+
COPY setup.py ./openscope_databook/setup.py
15+
COPY README.md ./openscope_databook/README.md
16+
COPY LICENSE.txt ./openscope_databook/LICENSE.txt
17+
COPY databook_utils ./openscope_databook/databook_utils
18+
19+
# for reasons I don't understand, these must be installed before the rest the requirements
20+
RUN pip install numpy cython
21+
# set up databook dependencies
22+
RUN pip install -e ./openscope_databook[dev]

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
### **The Deployed Databook can be found here: https://alleninstitute.github.io/openscope_databook**
44

5-
The OpenScope Databook is meant to store code and documentation used for reproducible brain data analysis and visualization, primarily working with [NWB files](https://www.nwb.org/how-to-use/) and the [DANDI archive](https://dandiarchive.org/). It is provided by the Allen Institute's **[OpenScope](https://alleninstitute.org/what-we-do/brain-science/research/mindscope-program/openscope/)** Project, a component of The [Allen Institute for Neuraldynamics](https://alleninstitute.org/division/neural-dynamics/). **OpenScope** is a platform for high-throughput and reproducible neurophysiology open to external scientists to test theories of brain function. Through [Jupyter Book](https://jupyterbook.org/), this code is structured as a series of documented Jupyter notebooks intended to explain and educate users on how to work with brain data.
5+
### **The citeable DOI page on Zenodo can be found here: https://zenodo.org/records/12614664**
6+
7+
The OpenScope Databook is meant to store code and documentation used for reproducible brain data analysis and visualization, primarily working with [NWB files](https://www.nwb.org/how-to-use/) and the [DANDI archive](https://dandiarchive.org/). It is provided by the Allen Institute's **[OpenScope](https://alleninstitute.org/what-we-do/brain-science/research/mindscope-program/openscope/)** Project, a component of The [Allen Institute for Neural Dynamics](https://alleninstitute.org/division/neural-dynamics/). **OpenScope** is a platform for high-throughput and reproducible neurophysiology open to external scientists to test theories of brain function. Through [Jupyter Book](https://jupyterbook.org/), this code is structured as a series of documented Jupyter notebooks intended to explain and educate users on how to work with brain data.
68

79
We are releasing this code to the public as a tool we expect others to use and are actively updating and maintaining this project. Issue submissions are encouraged. Questions can be directed to [@rcpeene](https://github.com/rcpeene) or [@jeromelecoq](https://github.com/jeromelecoq). Below, you can see a working list of the content goals for this databook. We are open to hearing input from users about what types of analysis and visualization might be useful for reproducible neuroscience, particularly when working with the *NWB* file standard.
810

@@ -18,7 +20,7 @@ We are releasing this code to the public as a tool we expect others to use and a
1820
### Chapter 2: Data visualization
1921
- [Visualizing eye-tracking gaze locations, eye area, and running speed](https://alleninstitute.github.io/openscope_databook/embargoed/visualize_behavior.html)
2022
- [Visualizing 2P raw movie](https://alleninstitute.github.io/openscope_databook/visualization/visualize_2p_raw.html)
21-
- [Visualizing Neuropixels probe locations](https://alleninstitute.github.io/openscope_databook/visualization/visualize_neuropixel_probes.html)
23+
- [Visualizing Neuropixels probe locations](https://alleninstitute.github.io/openscope_databook/visualization/visualize_neuropixels_probes.html)
2224
- [Visualizing Neuropixels recorded unit quality metrics](https://alleninstitute.github.io/openscope_databook/visualization/visualize_unit_metrics.html)
2325
- [Visualizing LFP responses to stimulus events](https://alleninstitute.github.io/openscope_databook/visualization/visualize_lfp_responses.html)
2426
- [Visualizing neuronal spike matrices](https://alleninstitute.github.io/openscope_databook/visualization/visualize_unit_spikes.html)
@@ -31,19 +33,19 @@ We are releasing this code to the public as a tool we expect others to use and a
3133
- [Neuropixels: Extracting Current Source Density plots](https://alleninstitute.github.io/openscope_databook/first-order/current_source_density.html)
3234
- [2P: Cell matching across days](https://alleninstitute.github.io/openscope_databook/embargoed/cell_matching.html)
3335
- [2P: Stimuli averages with 2P data](https://alleninstitute.github.io/openscope_databook/first-order/test_2p_responses.html)
34-
- [Neuropixels: Stimuli averages with neuropixels data](https://alleninstitute.github.io/openscope_databook/first-order/test_spike_responses.html)
36+
- [Neuropixels: Stimuli averages with neuropixels data](https://alleninstitute.github.io/openscope_databook/first-order/test_unit_responses.html)
3537
- [2P: How to align timestamps across modalities](https://alleninstitute.github.io/openscope_databook/embargoed/modality_alignment.html)
3638
- [Sending NWB raw data to a segmentation pipeline: example with Suite2p](https://alleninstitute.github.io/openscope_databook/first-order/suite2p.html)
37-
- [Classifying spike waveform between fast spiking and normal spiking cells](https://github.com/AllenInstitute/openscope_databook/blob/main/docs/first-order/classify_waveforms.ipynb)
39+
- [Classifying spike waveform between fast spiking and normal spiking cells](https://alleninstitute.github.io/openscope_databook/first-order/classify_waveforms.html)
3840

3941
### Chapter 4: Higher-order analysis
4042
- [Neural dynamics using time-analysis with CEBRA](https://alleninstitute.github.io/openscope_databook/higher-order/cebra_time.html)
4143
[CEBRA Demo on the CEBRA Repository](https://github.com/adaptivemotorcontrollab/CEBRA-demos/blob/main/Demo_openscope_databook.ipynb)
4244
- [Extracting clusters of correlated neurons with TCA](https://alleninstitute.github.io/openscope_databook/higher-order/tca.html)
4345
- [Estimating behavioral state given trial choices and relating states to pupil size](https://alleninstitute.github.io/openscope_databook/higher-order/behavioral_state.html)
44-
- Analysis of functional connectivity.
4546

4647
### Chapter 5: Replicating figures
47-
- [Openscope Credit Assignment](https://alleninstitute.github.io/openscope_databook/replication/cred_assign_figures.html)
48-
- Example notebooks from past projects
49-
- Guidelines for reproducible figures from NWB files
48+
- [OpenScope Credit Assignment](https://alleninstitute.github.io/openscope_databook/projects/cred_assign_figures.html)
49+
- [OpenScope Global/Local Oddball](https://alleninstitute.github.io/openscope_databook/projects/glo.html)
50+
- [OpenScope Illusion](https://alleninstitute.github.io/openscope_databook/projects/illusion.html)
51+
- [OpenScope Dendritic Coupling](https://alleninstitute.github.io/openscope_databook/projects/dendritic_coupling.html)

0 commit comments

Comments
 (0)