Skip to content

Commit

Permalink
Add dimension reduction
Browse files Browse the repository at this point in the history
Signed-off-by: Chaichontat Sriworarat <[email protected]>
  • Loading branch information
chaichontat committed Sep 2, 2021
1 parent b42bb68 commit 32e78c7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
env:
PATH_NEUROPIXELS: ${{ github.workspace }}/data/neuropixels

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

- name: Cache Data
uses: actions/cache@v2
with:
path: |
$PATH_NEUROPIXELS/faces.zip
$PATH_NEUROPIXELS/data/spks.zip
key: ${{ runner.os }}-${{ hashFiles('**/neuropixels/*.zip')}}
restore-keys: |
${{ runner.os }}-
- name: Download Neuropixels Data
working-directory: ${{ env.PATH_NEUROPIXELS }}
# Neuropixels data see https://figshare.com/articles/dataset/Eight-probe_Neuropixels_recordings_during_spontaneous_behaviors/7739750
# Only using data from mouse Waksman
run: |
wget -O faces.zip -N https://figshare.com/ndownloader/files/14405048
wget -O spks.zip -N https://figshare.com/ndownloader/files/14405057
wget -O probeLocations.mat https://figshare.com/ndownloader/files/14570108
wget -O probeBorders.mat https://figshare.com/ndownloader/files/14653298
unzip faces.zip -x faces/Robbins_face_proc.mat faces/Krebs_face_proc.mat
unzip spks.zip -x spks/Robbins_Feb18.mat spks/Krebs_Feb18.mat
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1

# Result in WaksmanwithFaces_KS2.mat
- name: Process raw neuropixels data
uses: matlab-actions/run-command@v1
with:
command: cd('${{ env.PATH_NEUROPIXELS }}'), ephysLoad

- name: Install dependencies
run: |
conda config --add channels conda-forge
conda env update --file environment-cpu.yml --name base
- name: Run Bubblewrap
run: |
python scripts/dimension_reduction_neuropixels.py ${{ env.PATH_NEUROPIXELS }}/WaksmanwithFaces_KS2.mat
conda install jupytext
pytest datagen.py
jupytext --from py --to ipynb scripts/run_bubblewrap.py --execute --run-path .
Expand Down

0 comments on commit 32e78c7

Please sign in to comment.