Newtonian Mechanics Model for C. elegans Locomotion
Project description
ElegansBot
Newtonian Mechanics Model for C. elegans Locomotion
Requirements
- Python (version 3)
- NumPy
- Numba
- SciPy (required as a dependency of numba)
- Matplotlib
Tested Environment
- Windows 10
- python 3.8.18
- numpy 1.19.0
- numba 0.54.0
- scipy 1.5.0
- matplotlib 3.4.2
Usage
- Install ElegansBot by
pip install elegansbot
- Use
from elegansbot import Worm
to import the library. - Refer to the detailed instructions in the docstring of the "Worm" class. Below is a brief overview of potential use-cases:
- If you wish to use ElegansBot with a pre-determined $\theta_{\mathrm{ctrl}}$ (target body angle), it's recommended to utilize the "run" method of an instance of the "Worm" class.
- If you want to determine $\theta_{\mathrm{ctrl}}$ dynamically, it's advised to update "act" (equivalent to theta_ctrl) manually and then invoke the "steps" method on an instance of the "Worm" class.
Web Demo
- https://taegonchung.github.io/elegansbot/
- Use the sliders to observe the worm's movement changes.
- Water-Agar Slider: Adjust this to modify the ground's frictional coefficients.
- Swim-Crawl Slider: This slider alters the period and linear wave number of C. elegans' locomotion.
- Use the sliders to observe the worm's movement changes.
Local Demo
Execute the following command:
python elegansbot.py
File Description
elegansbot.py
: Main codeVideo_S1_omega_turn.avi
: Video from the supplementary section of our paper.Video_S2_delta_turn.avi
: Another video from the supplementary section of our paper.
Citation
- If ElegansBot has been significant in your research, and you would like to acknowledge this work in your academic publication, please consider citing the following paper (this citation may be updated in the future):
Chung, T., Chang, I., & Kim, S. (2023). ElegansBot: Development of equation of motion deciphering locomotion including omega turns of Caenorhabditis elegans (p. 2023.09.26.559644). bioRxiv. https://doi.org/10.1101/2023.09.26.559644
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ElegansBot-1.0.1.tar.gz
(13.3 kB
view details)
Built Distribution
File details
Details for the file ElegansBot-1.0.1.tar.gz
.
File metadata
- Download URL: ElegansBot-1.0.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff20d6ebfeacd17df7872ee93de381c49d3216f7b338a1acf577c6a8199086cb |
|
MD5 | fef5804cba121abc4b0e856d01ccd645 |
|
BLAKE2b-256 | cff1deb8384751e2a9740136512007f2eeb8eede1c1a0b628d934bea002c3be6 |
File details
Details for the file ElegansBot-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ElegansBot-1.0.1-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d9ea9e9d6d00fe5a0ba46f646b5248a4078f80cf3f79e7bd147f4817391f43 |
|
MD5 | 3de74e6b5bf988d73dc56b546067cfae |
|
BLAKE2b-256 | 0cb9fb16cf6d0fd41963efe22618dffe6ea6d27970bde43b7827b5d48d8a904d |