Package: isoCycle
isoCycleA Deep Network-Based Decoder for Isolating Single Cycles of Neural Oscillations in Spiking ActivityNeural oscillations are prominent features of brain activity, observable through frequency-specific power changes in electroencephalograms (EEG) and local field potentials (LFP), as well as coherence across brain regions, modulated by modes of activity. While identifying oscillations has primarily relied on EEG and LFP, the intrinsic relation between neural oscillations and neuronalspikingremains noteworthy. We investigate the possibility of detecting single cycles of neural rhythms solely through the spiking activity of neurons, using recent advancements in densely recording large populations of neurons within a local network. Many spikes from neurons in a local network provide an estimation of the network activity across time, which we can use to investigate the existence of cyclic patterns. Here, we employ recurrent neural networks to robustly isolate individual cycles of neural oscillations from the spiking of a densely recorded population of neurons. This isolation occurs in the time domain, where cycles from different time scales may combine in various ways to shape the network's spiking probability.GPU accelerationisoCycle employs a decoder developed with TensorFlow. Leveraging a GPU highly reduces execution time, a factor particularly crucial for long recordings. However, configuring your GPU to work with TensorFlow requires additional steps post-package installation. For quick guidance, refer toSetting up TensorFlow with GPU Support.Installationquick: install isoCycle with pip, consider a new environment as conflicts are likelypip install isoCycleSteps for installation from scratch using Anaconda:First, ensure that you have Anaconda installed on your computer. If you don't have Anaconda, you can download it from the official Anacondawebsite. Anaconda is a popular distribution of Python that comes with many pre-installed packages and a package manager called conda, making it convenient for data analysis and scientific computing tasks.Once you have Anaconda installed, open a terminal or command prompt on your computer, and create a new conda environment by executing the following command:conda create --name myenvReplace myenv with the desired name for your environment.Activate the newly created environment with the following command:conda activate myenvAgain, replace myenv with the name of your environment.Install isoCycle and its dependencies by running the command:conda install isoCycleAfter the installation is complete, you can import isoCycle into your Python scripts or notebooks using the statementimport isoCycleNow, with Anaconda installed, a new environment created, and isoCycle successfully installed, you are ready to analyze your data using isoCycle. One option is to useJupyter Notebook. Here is an example Notebook:isoCycle_example.ipynbSetting up TensorFlow with GPU SupportTo utilize the power of GPU acceleration with TensorFlow, ensure that you have the correct hardware and software setup.You will need a CUDA-capable GPU and you'll need to install the CUDA Toolkit and the cuDNN library. Once these are installed, you can install TensorFlow with built-in GPU support.To check if TensorFlow is using the GPU, you can use the following Python code:importtensorflowastfprint("Num GPUs Available: ",len(tf.config.list_physical_devices('GPU')))You can also log device placements with:tf.debugging.set_log_device_placement(True)For more detailed information, please refer to the following guides:Using a GPU with TensorFlow.CUDA Toolkit and cuDNN installation guides on theNVIDIA website.
Please follow the respective instructions carefully when installing these components.