Detect spectral_rhythms using an HMM
spectral_rhythm_detector
can be installed through pypi or conda. Conda is the best way to ensure that everything is installed properly.
pip install spectral_rhythm_detector
python setup.py install
Or
conda install -c edeno spectral_rhythm_detector
python setup.py install
results_df, model = detect_spectral_rhythm(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 (
.../spectral_rhythm_detector
) and install the anaconda environment for the repository. Type into bash:
conda env create -f environment.yml
conda activate spectral_rhythm_detector # if using older anaconda, use source activate
python setup.py develop