'minis' is a software for electrophysiological data analysis.
It allows you to:
(1) detect and analyse spontaneous postsynaptic potetnials/currents in whole-cell patch clamp recordings (Dervinis and Major, 2024a);
(2) estimate the quantal size in the central synapse (Dervinis and Major, 2024b).
'minis' can be used as a standalone application with a graphical user interface (GUI), as a Matlab (Mathworks) function, or a Python (Python Software Foundation) package. 'minis' has been fully written in Matlab and its code base is open source.
Key points
- You can run 'minis' in parallel fashion. To do so, go to the Optimisation options menu and click on Change options. In the Options window change the Number of parallel cores parameter to another value (e.g., 4). Click OK.
- 'minis' can also be executed on a computing cluster. The
source_code
directory contains a Matlab script file calledminisCluster.m
that can be used to launch 'minis' on a cluster. - If the Down-going tick box is marked, the recording trace will be inverted.
- Software documentation is available here.
- Read all of the instructions in the README file before you use minis.
Run the installer located inside the minisStandalone folder (Windows: minisInstaller_web.exe, Linux: minisInstaller_web.install, macOS: minisInstaller_web.app). Simply follow the installer instructions. Uninstall the minis the same way you uninstall any other regular app.
On Windows and Linux you can launch the minis app in the same way you launch other apps. On macOS you launch the minis app by navigating to the application folder and issuing the command below:
./run_minis.sh <matlab_runtime_directory path>
Typically this command should work:
./run_minis.sh /Applications/MATLAB/MATLAB_Runtime/v912
If you launch the macOS app in the regular way, the log file will not be generated.
If you want to use minis within the Matlab environment, download the source_code folder and add it to your Matlab path. You can launch the app by typing minis
in the Matlab console. To run minis without the GUI, use the minisHeadless
function. You can also run 'minis' on a cluster using the script minisCluster.m
To install follow these steps:
- Install Python 3.9 (in a separate environment if needed).
- Open the minisPy_Windows/installer folder and run the minisPyInstaller_web.exe. Follow the installation instructions and install Matlab Runtime as part of them.
- Open the minisPy_Windows/python_files folder and execute the following line in your terminal
python setup.py install
. - Install Axon Binary File format python utility by executing the following line in your terminal
pip install pyabf
. You are all set.
You can use p131c_0011_sw6-10.abf file with the testPython.py script to test your installation. Make sure you adapt the script to load your files. It is important that you always import the minisPy package before you import the matlab package. Here you can find further info on how to initialise Matlab Runtime and minisPY.
To install follow these steps:
- Install Python 3.9 (in a separate environment if needed).
- Open the minisPy_Linux/installer folder and run the minisPyInstaller_web.install. Follow the installation instructions and install Matlab Runtime as part of them.
- Open the minisPy_Linux/python_files folder and execute the following line in your terminal
python setup.py install
. - Install Axon Binary File format python utility by executing the following line in your terminal
pip install pyabf
. - Update Matlab Runtime path by adding the lines below to your ~./bashrc file:
Make sure you also execute these commands in your terminal. You are all set.
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}\ /usr/local/MATLAB/MATLAB_Runtime/v912/runtime/glnxa64:\ /usr/local/MATLAB/MATLAB_Runtime/v912/bin/glnxa64:\ /usr/local/MATLAB/MATLAB_Runtime/v912/sys/os/glnxa64:\ /usr/local/MATLAB/MATLAB_Runtime/v912/extern/bin/glnxa64" export LD_PRELOAD="${LD_PRELOAD:+${LD_PRELOAD}:}\ /usr/local/MATLAB/MATLAB_Runtime/v912/bin/glnxa64/glibc-2.17_shim.so"
You can use p131c_0011_sw6-10.abf file with the testPython.py script to test your installation. Make sure you adapt the script to load your files. It is important that you always import the minisPy package before you import the matlab package. Here you can find further info on how to initialise Matlab Runtime and minisPY.
To install follow these steps:
- Install Python 3.9 (in a separate environment if needed).
- Open the minisPy_macOS/installer folder and run the minisPyInstaller_web.app. Follow the installation instructions and install Matlab Runtime as part of them.
- Open the minisPy_macOS/python_files folder and execute the following line in your terminal
python3 setup.py install
. - Install Axon Binary File format python utility by executing the following line in your terminal
pip3 install pyabf
. - Update Matlab Runtime path by adding the lines below to your ~./bash_profile and ~./zshenv files:
Make sure you also execute this command in your terminal. \
export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}:}\ /Applications/MATLAB/MATLAB_Runtime/v912/runtime/maci64:\ /Applications/MATLAB/MATLAB_Runtime/v912/bin/maci64:\ /Applications/MATLAB/MATLAB_Runtime/v912/sys/os/maci64:\ /Applications/MATLAB/MATLAB_Runtime/v912/extern/bin/maci64"
- Change python executable associated with mwpython by executing the lines below in your terminal (replace angle brackets with an actual path):
PYTHONHOME needs to be set to an actual directory that has a bin subdirectory that contains the python3.9 executable. Typically the correct directory is /Library/Frameworks/Python.framework/Versions/3.9.
echo 'export PYTHONHOME=<python3 installation directory>' >> ~/.zshenv source ~/.zshrc echo 'export PYTHONHOME=<python3 installation directory>' >> ~/.bash_profile source ~/.bash_profile
- You are all set. Just make sure to use mwpython to run any code that involves loading Python packages compiled in Matlab. For example,
/Applications/MATLAB/MATLAB_Runtime/v912/bin/mwpython testPython.py
You can use p131c_0011_sw6-10.abf file with the testPython.py script to test your installation. Make sure you adapt the script to load your files. It is important that you always import the minisPy package before you import the matlab package. Here you can find further info on how to initialise Matlab Runtime and minisPY.
Software user documentation file minis_documentation.pdf is available for a detailed explanation of how to use the software graphical user interface. Examples on how to use programming interfaces in Matlab and Python are given in testMatlab.m, testMatlab_preload.m, testPython.py, and testPython_preload.py files.
Dervinis, M, Major, G (2024) bioRxiv 2022.03.20.485046; doi: https://doi.org/10.1101/2022.03.20.485046
Dervinis, M, Major, G (2024) bioRxiv 2024.07.05.602190; doi: https://doi.org/10.1101/2024.07.05.602190