Readme
ResiliPy provides an accessible machine-learning based framework for classifying mice according to their stress resilience based on tracking data.
Motivation
Resilience research in mice using the chronic social defeat paradigm commonly depends on the social interaction (SI) ratio to group animals into those that are susceptible and resilient to stress. The SI ratio only considers the time spent near the aggressor mouse during the social interaction test, not considering many possible indicators of resilient or susceptible behaviour.
Here ResiliPy offers an alternative labelling approach that does not consider the distance to the aggressor animal directly, but rather takes the relative distances for each time point into consideration, setting up a distribution of relative distance measures. Using percentiles from this distribution gives more detailed information about the overall behaviour of the animals. In combination with preassigned resilience labels, a machine learning model is trained to classify new animals by their resilience.
To simplify use, the classification and pre-processing process has been integrated into a graphical user interface. Accordingly, no programming knowledge is required to use ResiliPy.
Structure
ResiliPy consists of three main modules:
Labeller
The Labeller performs the classification task itself on a dataset of unlabelled animals. Based on a loaded machine-learning model, an imported pre-processed (see Preprocessor) dataset can be classified.
Preprocessor
The given classification approach requires relative distance distributions extracted from the tracking data. This process if performed with the Preprocessor. Given raw Ethovision tracking files, the coordinates are transformed into the needed format. The extracted dataset can subsequently be used for labelling.
Builder
For classification, it is highly advisable to use a model that has been trained with comparable data. New machine learning models can be imported and used in ResiliPy. An optimised model can be imported into the Builder together with training data to create a .model file. This is then imported into the Labeller for classification.
Installation & Launch
With Python installed, ResiliPy can be installed via the Python Packaging Index (PyPI). In the terminal or command promt, type:
pip install resilipy
ResiliPy can be launched by typing in the terminal:
python -m resilipy
References
License
MIT License (MIT). See License file for details.
Metadata
Release files for resilipy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resilipy-0.1.0.tar.gz | 34.4 kB | Without provenance | Details for resilipy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resilipy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for resilipy-0.1.0-py3-none-any.whl |
Total release size: 73.2 kB
Release files / resilipy-0.1.0.tar.gz
| Download URL | resilipy-0.1.0.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4f1aa32ed47eeb139a029bcdbaa49cbc79dd8a68f06ed16546ef861e4cacfcc
|
|
BLAKE2b-256 checksum How to use checksums |
89d39741aaccb22b5d9173dd07e5d743bc02ce60a55f165e13c268bc1f7195f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.8
|
Release files / resilipy-0.1.0-py3-none-any.whl
| Download URL | resilipy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
363907cfe0aa706b9988ae60cb98c9299725d877ed9ce6e5fd0c9f12693670c8
|
|
BLAKE2b-256 checksum How to use checksums |
27ed310f7095aea8da7a4a81b1c308b275ec0886d4da5443d4bcb69860f0a138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.8
|
Security for resilipy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.