A simple app for performing analysis of lick microstructure in experiments of rodent ingestive behaviour. The webapp is hosted for use by UiT The Arctic University of Norway at lickcalc.uit.no.
Earlier versions of this application can be found here and here.
- Installation
- System Requirements
- Usage/Examples
- Custom Configuration
- Core Functions
- Authors
- Citations
- Acknowledgements
- Contributing and Feedback
- License
The application is hosted at lickcalc.uit.no
To install locally, clone the repository and create an environment using the environment.yml file. You can use either conda or mamba:
# Using conda
git clone https://github.com/uit-no/lickcalc.git
cd lickcalc
conda env create -f environment.yml
conda activate lickcalc
python app.py# Using mamba (recommended for speed)
git clone https://github.com/uit-no/lickcalc.git
cd lickcalc
mamba env create -f environment.yml
mamba activate lickcalc
python app.pyThe app will then be available by opening a browser and typing localhost:8050 in the address bar.
- Python 3.8 or newer
- Windows, macOS, or Linux
- Conda or Mamba (recommended)
Files can be opened by dragging into the interface. Various sliders allow parameters to be changed, calculations will update, and figures will be replotted. The GUI is designed to be easy-to-use and self-explanatory. For full documentation and citations to seminal experiments, see lickcalc.uit.no/help.
You can customize the default parameter values by uploading a custom configuration file:
- Copy the
custom_config_example.yamlfile - Modify the values to your preferred defaults
- Click the "Load Config File" button at the top of the app
- Upload your custom config file
The custom configuration will override the default values and remain active until you reload the app.
Calculations are based on functions contained in the trompy package, particularly lickcalc and medfilereader. These packages can be installed separately with:
pip install trompyCore functions can also be extracted from this package and integrated with other code as required.
If you use lickcalc in your work, please cite us as follows:
Volcko KL & McCutcheon JE. lickcalc: Easy analysis of lick microstructure in experiments of rodent ingestive behaviour.
BibTeX:
@software{lickcalc,
author = {Volcko, K. Linnea and McCutcheon, James E.},
title = {lickcalc: Easy analysis of lick microstructure in experiments of rodent ingestive behaviour},
url = {https://github.com/uit-no/lickcalc},
year = {2025}
}We would like to acknowledge all labs that have helped by contributing data and testing the application.
Contributions and feedback are always welcome! Please see our issues page for bug reports and feature suggestions.
This project is licensed under the GNU General Public License v3.0. You are free to use, modify, and distribute this software, but any derivative work must also be open source under the same license.