Detect spindles using an HMM
spindle_detector
can be installed through pypi or conda. Conda is the best way to ensure that everything is installed properly.
pip install spindle_detector
python setup.py install
Or
conda install -c edeno spindle_detector
python setup.py install
results_df, model = detect_spindle(time, lfps, sampling_frequency)
- Install miniconda (or anaconda) if it isn't already installed. Type into bash (or install from the anaconda website):
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
- Go to the local repository (
.../spindle_detector
) and install the anaconda environment for the repository. Type into bash:
conda env create -f environment.yml
conda activate spindle_detector # if using older anaconda, use source activate
python setup.py develop