autogaita 0.0.5__tar.gz → 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. autogaita-0.1.0/PKG-INFO +23 -0
  2. {autogaita-0.0.5 → autogaita-0.1.0}/README.md +22 -10
  3. autogaita-0.1.0/autogaita/__init__.py +20 -0
  4. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita.py +1 -2
  5. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_dlc.py +183 -93
  6. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_dlc_gui.py +402 -171
  7. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_group.py +110 -94
  8. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_group_gui.py +227 -56
  9. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_simi.py +126 -80
  10. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_simi_gui.py +242 -81
  11. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_utils.py +3 -5
  12. autogaita-0.1.0/autogaita/batchrun_scripts/autogaita_dlc_multirun.py +123 -0
  13. autogaita-0.1.0/autogaita/batchrun_scripts/autogaita_dlc_singlerun.py +75 -0
  14. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/batchrun_scripts/autogaita_group_dlcrun.py +22 -18
  15. autogaita-0.1.0/autogaita/batchrun_scripts/autogaita_group_simirun.py +59 -0
  16. autogaita-0.1.0/autogaita/batchrun_scripts/autogaita_simi_multirun.py +95 -0
  17. autogaita-0.1.0/autogaita/batchrun_scripts/autogaita_simi_singlerun.py +49 -0
  18. autogaita-0.1.0/autogaita.egg-info/PKG-INFO +23 -0
  19. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita.egg-info/SOURCES.txt +6 -1
  20. autogaita-0.1.0/autogaita.egg-info/requires.txt +15 -0
  21. {autogaita-0.0.5 → autogaita-0.1.0}/setup.py +16 -14
  22. autogaita-0.1.0/tests/test_dlc_approval.py +137 -0
  23. autogaita-0.1.0/tests/test_dlc_unit2_sc_extraction.py +250 -0
  24. autogaita-0.1.0/tests/test_dlc_unit3_main_analysis.py +219 -0
  25. autogaita-0.1.0/tests/test_group_approval.py +122 -0
  26. autogaita-0.1.0/tests/test_simi_approval.py +99 -0
  27. autogaita-0.0.5/PKG-INFO +0 -8
  28. autogaita-0.0.5/autogaita/__init__.py +0 -1
  29. autogaita-0.0.5/autogaita/batchrun_scripts/autogaita_dlc_multirun.py +0 -163
  30. autogaita-0.0.5/autogaita/batchrun_scripts/autogaita_dlc_singlerun.py +0 -109
  31. autogaita-0.0.5/autogaita/batchrun_scripts/autogaita_group_simirun.py +0 -55
  32. autogaita-0.0.5/autogaita/batchrun_scripts/autogaita_simi_multirun.py +0 -108
  33. autogaita-0.0.5/autogaita/batchrun_scripts/autogaita_simi_singlerun.py +0 -72
  34. autogaita-0.0.5/autogaita.egg-info/PKG-INFO +0 -8
  35. autogaita-0.0.5/autogaita.egg-info/requires.txt +0 -11
  36. {autogaita-0.0.5 → autogaita-0.1.0}/LICENSE +0 -0
  37. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/__main__.py +0 -0
  38. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_icon.icns +0 -0
  39. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_icon.ico +0 -0
  40. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/autogaita_logo.png +0 -0
  41. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita/batchrun_scripts/__init__.py +0 -0
  42. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita.egg-info/dependency_links.txt +0 -0
  43. {autogaita-0.0.5 → autogaita-0.1.0}/autogaita.egg-info/top_level.txt +0 -0
  44. {autogaita-0.0.5 → autogaita-0.1.0}/setup.cfg +0 -0
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: autogaita
3
+ Version: 0.1.0
4
+ Summary: Automatic Gait Analysis in Python
5
+ Home-page: https://github.com/mahan-hosseini/AutoGaitA/
6
+ Author: Mahan Hosseini
7
+ License: GPLv3
8
+ Requires-Python: >=3.10
9
+ License-File: LICENSE
10
+ Requires-Dist: customtkinter>=5.2
11
+ Requires-Dist: pandas>=2.0
12
+ Requires-Dist: numpy>=1.24
13
+ Requires-Dist: matplotlib>=3.7
14
+ Requires-Dist: scikit-learn>=1.2
15
+ Requires-Dist: pingouin>=0.5
16
+ Requires-Dist: scipy>=1.11
17
+ Requires-Dist: ffmpeg-python>=0.2
18
+ Requires-Dist: openpyxl>=3.1
19
+ Requires-Dist: pillow>=10.3
20
+ Requires-Dist: pyobjc
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest; extra == "dev"
23
+ Requires-Dist: hypothesis; extra == "dev"
@@ -1,6 +1,11 @@
1
1
  ![AutoGaitA](https://github.com/mahan-hosseini/AutoGaitA/blob/main/res/autogaita_logo.png?raw=true)
2
- ![Python](https://img.shields.io/badge/python-v3.6+-blue.svg)
3
- ![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)
2
+ ![Repository Active](https://www.repostatus.org/badges/latest/active.svg)
3
+ [![Test AutoGaitA](https://github.com/mahan-hosseini/AutoGaitA/actions/workflows/auto_test_gaita.yml/badge.svg)](https://github.com/mahan-hosseini/AutoGaitA/actions/workflows/auto_test_gaita.yml)
4
+ ![Python](https://img.shields.io/badge/python-v3.10+-blue.svg)
5
+ [![PyPI - Version](https://img.shields.io/pypi/v/autogaita)](https://pypi.org/project/autogaita/)
6
+ ![license: GPL v3](https://img.shields.io/badge/license-GPLv3-blue.svg)
7
+ [![paper: biorxiv](https://img.shields.io/badge/paper-biorxiv-blue)](https://doi.org/10.1101/2024.04.14.589409)
8
+
4
9
  ![Black](https://img.shields.io/badge/code%20style-black-000000.svg)
5
10
  # Automated Gait Analysis in Python 🐸
6
11
 
@@ -13,17 +18,18 @@
13
18
 
14
19
  ***Note!** Our documentation provides step-by-step walkthroughs of how to install autogaita for **[Windows](https://docs.google.com/document/d/1Y4wrrsjs0ybLDKPzE2LAatqPDq9jtwjIuk4M0jRZ3wE/edit#heading=h.28j6wu2vamre)** and **[Mac](https://docs.google.com/document/d/1Y4wrrsjs0ybLDKPzE2LAatqPDq9jtwjIuk4M0jRZ3wE/edit)***
15
20
 
16
- It is strongly recommended that a separate virtual environment for AutoGaitA is created via
17
-
18
- `python -m venv env_gaita`
21
+ It is strongly recommended that a separate virtual environment for AutoGaitA is created (note that the approach below creates the virtual environment to your current directory):
19
22
 
20
- After creating and activating the virtual environment, AutoGaitA can be installed via pip
23
+ - Create the virtual environment
24
+ - `python -m venv env_gaita`
21
25
 
22
- `pip install autogaita`
26
+ - After creation, activate the virtual environment via:
27
+ - *Windows:* `env_gaita\Scripts\activate`
28
+ - *Mac:* `source env_gaita/bin/activate`
23
29
 
24
- The main user interface can then be accessed via
30
+ - Once activated, install AutoGaitA in the virtual environment via pip: `pip install autogaita`.
25
31
 
26
- `python -m autogaita`
32
+ - Access the main user interface via `python -m autogaita`.
27
33
 
28
34
  ## Tutorials and Examples
29
35
 
@@ -31,6 +37,8 @@ The main user interface can then be accessed via
31
37
 
32
38
  **[The AutoGaitA YouTube Channel](https://youtube.com/playlist?list=PLCn5T7K_H8K56NIcEsfDK664OP7cN_Bad&si=mV5p2--nYvbofkPh) provides tutorials for file preparation and instructions on how to use AutoGaitA**
33
39
 
40
+ *Please note that tutorial videos might not always reflect the most up-to-date version of our toolbox, especially in the beginning when things are regularly changing. We will make sure to record new videos whenever there are major changes, though.*
41
+
34
42
  ### Example Data
35
43
  We provide an example dataset in the **example data** folder of this repository, with a set of mice walking over differently wide beams and both the beam as well as body coordinates being tracked with DLC. Note that this dataset was used in our tutorial videos introducing *AutoGaitA_DLC*, *AutoGaitA_Group* and in our video explaining file preparation for *AutoGaitA_DLC*. We further provide a **group** folder there that can be used alongside the *AutoGaitA_Group* tutorial to confirm that users generate the same set of results following our instructions.
36
44
 
@@ -54,9 +62,13 @@ By default, *AutoGaitA DLC* and *AutoGaitA Simi* implement standard values for m
54
62
  - [Documentation - AutoGaitA DLC](https://docs.google.com/document/d/1Y4wrrsjs0ybLDKPzE2LAatqPDq9jtwjIuk4M0jRZ3wE/edit#heading=h.20bg7b7ymt0b)
55
63
  - [Documentation - AutoGaitA Simi](https://docs.google.com/document/d/1Y4wrrsjs0ybLDKPzE2LAatqPDq9jtwjIuk4M0jRZ3wE/edit#heading=h.uz61bpmua7qz)
56
64
 
65
+ ## Reference
66
+ If you use this code or data please [cite our preprint](https://www.biorxiv.org/content/10.1101/2024.04.14.589409v1).
67
+
57
68
  ## License
69
+ AutoGaitA is licensed under [GPL v3.0](https://github.com/mahan-hosseini/AutoGaitA/blob/main/LICENSE) and Forschungszentrum Jülich GmbH holds all copyrights.
58
70
 
59
- AutoGaitA is licensed under [GPL v3.0](https://github.com/mahan-hosseini/AutoGaitA/blob/main/LICENSE) and Forschungszentrum Jülich GmbH holds all copyrights.
71
+ The AutoGaitA software is provided without warranty of any kind, express or implied, including, but not limited to, the implied warranty of fitness for a particular purpose.
60
72
 
61
73
  ## Authors
62
74
  Mahan Hosseini
@@ -0,0 +1,20 @@
1
+ # main gui
2
+ from .autogaita import gui # autogaita.gui()
3
+
4
+ # 3 sub-guis
5
+ from .autogaita_dlc_gui import dlc_gui # autogaita.dlc_gui()
6
+ from .autogaita_simi_gui import simi_gui # autogaita.simi_gui()
7
+ from .autogaita_group_gui import group_gui # autogaita.group_gui()
8
+
9
+ # 3 main functions
10
+ from .autogaita_dlc import dlc # autogaita.dlc(info, folderinfo, cfg)
11
+ from .autogaita_simi import simi # autogaita.simi(info, folderinfo, cfg)
12
+ from .autogaita_group import group # autogaita.group(folderinfo, cfg)
13
+
14
+ # 6 batchrun functions - call via e.g. autogaita.dlc_singlerun()
15
+ from .batchrun_scripts.autogaita_dlc_singlerun import dlc_singlerun
16
+ from .batchrun_scripts.autogaita_dlc_multirun import dlc_multirun
17
+ from .batchrun_scripts.autogaita_simi_singlerun import simi_singlerun
18
+ from .batchrun_scripts.autogaita_simi_multirun import simi_multirun
19
+ from .batchrun_scripts.autogaita_group_dlcrun import group_dlcrun
20
+ from .batchrun_scripts.autogaita_group_simirun import group_simirun
@@ -6,7 +6,6 @@ from PIL import Image, ImageTk
6
6
  from importlib import resources
7
7
  import platform
8
8
 
9
-
10
9
  # %% global constants
11
10
  TXT_COLOR = "#ffffff" # white
12
11
  FONT_SIZE = 20
@@ -124,7 +123,7 @@ def configure_the_icon(root):
124
123
  try:
125
124
  from Cocoa import NSApplication, NSImage
126
125
  except ImportError:
127
- print('Unable to import pyobjc modules')
126
+ print("Unable to import pyobjc modules")
128
127
  else:
129
128
  with resources.path("autogaita", "autogaita_icon.icns") as icon_path:
130
129
  ns_application = NSApplication.sharedApplication()