Skip to content

Commit 0058caa

Browse files
committed
Add dimension reduction
Signed-off-by: Chaichontat Sriworarat <34997334+chaichontat@users.noreply.github.com>
1 parent b42bb68 commit 0058caa

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/python.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14+
env:
15+
PATH_NEUROPIXELS: ${{ github.workspace }}/data/neuropixels
1416

1517
steps:
1618
- uses: actions/checkout@v2
@@ -23,13 +25,46 @@ jobs:
2325
- name: Add conda to system path
2426
run: echo $CONDA/bin >> $GITHUB_PATH
2527

28+
- name: Cache Data
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
$PATH_NEUROPIXELS/faces.zip
33+
$PATH_NEUROPIXELS/data/spks.zip
34+
key: ${{ runner.os }}-${{ hashFiles('**/neuropixels/*.zip')}}
35+
restore-keys: |
36+
${{ runner.os }}-
37+
38+
- name: Download Neuropixels Data
39+
working-directory: ${{ env.PATH_NEUROPIXELS }}
40+
# Neuropixels data see https://figshare.com/articles/dataset/Eight-probe_Neuropixels_recordings_during_spontaneous_behaviors/7739750
41+
# Only using data from mouse Waksman
42+
run: |
43+
wget -o faces.zip -N https://figshare.com/ndownloader/files/14405048
44+
wget -o spks.zip -N https://figshare.com/ndownloader/files/14405057
45+
wget -o probeLocations.mat https://figshare.com/ndownloader/files/14570108
46+
wget -o probeBorders.mat https://figshare.com/ndownloader/files/14653298
47+
unzip faces.zip -x faces/Robbins_face_proc.mat faces/Krebs_face_proc.mat
48+
unzip spks.zip -x spks/Robbins_Feb18.mat spks/Krebs_Feb18.mat
49+
50+
- name: Set up MATLAB
51+
uses: matlab-actions/setup-matlab@v1
52+
53+
# Result in WaksmanwithFaces_KS2.mat
54+
- name: Process raw neuropixels data
55+
uses: matlab-actions/run-command@v1
56+
with:
57+
command: addpath('${{ env.PATH_NEUROPIXELS }}'), ephysLoad
58+
2659
- name: Install dependencies
2760
run: |
2861
conda config --add channels conda-forge
2962
conda env update --file environment-cpu.yml --name base
3063
3164
- name: Run Bubblewrap
3265
run: |
66+
python scripts/dimension_reduction_neuropixels.py ${{ env.PATH_NEUROPIXELS }}/WaksmanwithFaces_KS2.mat
67+
3368
conda install jupytext
3469
pytest datagen.py
3570
jupytext --from py --to ipynb scripts/run_bubblewrap.py --execute --run-path .

0 commit comments

Comments
 (0)