Code used in a manuscript by Jing-Jie Peng†, Beate Throm†, Maryam Najafian Jazi, Ting-Yun Yen, Hannah Monyer*‡, Kevin Allen*‡
- I installed the default Anaconda.
Get an updated link to the installation script from https://www.anaconda.com/products/distribution
You might have to adjust the name of the exact file.
cd ~/Downloads
curl -O https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
chmod u+xrw Anaconda3-2022.10-Linux-x86_64.sh
./Anaconda3-2022.10-Linux-x86_64.sh
- Get Deeplabcut source code:
git clone https://github.com/DeepLabCut/DeepLabCut.git
- Modify the DEEPLABCUT.yaml file
I remove the
[gui]
from the DEEPLABCUT.yaml file and added seaborn.
emacs ~/repo/DeepLabCut/conda-environments/DEEPLABCUT.yaml
- Install the DEEPLABCUT conda environment:
cd DeepLabCut/conda-environments
conda env create -f DEEPLABCUT.yaml
conda activate DEEPLABCUT
echo "conda activate DEEPLABCUT" >> ~/.bashrc
conda install -c anaconda ipykernel
python -m ipykernel install --user --name=DEEPLABCUT
conda install Cython
conda install -c conda-forge jupyterlab
- Install spikeA (Don't install dependency, use conda to install them if needed)
cd ~/repo
git clone https://github.com/kevin-allen/spikeA.git
cd ~/repo/spikeA
pip install -e ~/repo/spikeA
cd ~/repo/spikeA/spikeA/
python setup.py build_ext --inplace
- Install autopipy
cd ~/repo
git clone https://github.com/kevin-allen/autopipy.git
pip install -e ~/repo/autopipy
- Install positrack2
The starting point for the analysis is in the README.md located in the behavior_only and electrophys_behavior directories.