AMDA (Activity monitor data analyzer) is a small tool to analyze and plot data from Activity monitors. The tool is written in Python.
Used Python version is 3.8 for x64. I also recommend to use the same or a higher version. I also recommend to use the python build-in virtual environment to install all required packages.
Now download the repository to your PC. You can use "git clone" or the above "Code"-button to download it as zip file.
- Now we have to switch to the command line. On Windows you can use the command "cmd" or "powershell".
- Go to the repository folder. e.g. "cd source\python\amda"
- Create the virtual environment with the command "py -m venv venv". The last parameter is the folder name from the previous step.
- Now we have to activate the virtual environment. If you are using "cmd", type: "venv\Scripts\activate.bat". With "powershell" type: ".\venv\Scripts\Activate.ps1".
- Install all packages with "pip install -r requirements.txt".
- Now we can use JupyterLab: just type "jupyter-lab" or VS Code.
- JupyterLab will now atomatically open a new web browser window.
- Now you can open the "source/plot.ipynb" file inside of JupyterLab and analyze your data.
AMDA has some restrictions for the csv files.
- All animals has to have valid names. Animals with "unknown" tag will irgnored.
- All readers has to have a valid position in the csv metadata.
- AMDA can analyze and plot the data from only one AM.
If one of the points wrong, it can be corrected with "fix_am_data.ipynb".
It is best not to change the ".ipynb" files, but to create a copy and work in this new file. This way you always have the original file as reference.
Because AMDA creates many new files, it is recommended to create a directory for each analysis. This way all different analyses can be separated from each other.