Open Worm Analysis Toolbox
Project description
See https://github.com/openworm/open-worm-analysis-toolbox
| | Open Worm Analysis Toolbox |
The Open Worm Analysis Toolbox is a Python port of the Schafer Lab's Worm Analysis Toolbox 1.3.4.
It can be used to process videos of C. elegans into statistics so the behaviour of individual worms can be compared.
It is also the package used by the OpenWorm project to determine how closely its simulated worm behaves like real worms. It was started as a sub-project of the OpenWorm project.
OWAT is on PyPI, so to install, simply type:
pip install open_worm_analysis_toolbox
Contributors please see:
Usage Example
import open_worm_analysis_toolbox as mv
# Load a "basic" worm from a file
bw = mv.BasicWorm.from_schafer_file_factory("example_contour_and_skeleton_info.mat")
# Normalize the basic worm
nw = mv.NormalizedWorm.from_BasicWorm_factory(bw)
# Plot this normalized worm
wp = mv.NormalizedWormPlottable(nw, interactive=False)
wp.show()
# Obtain features
wf = mv.WormFeatures(nw)
Later, if we have control worms, we can run statistics on our worm:
# Compute histograms
experiment_histograms = mv.HistogramManager([wf, wf])
control_histograms = mv.HistogramManager(control_worms)
# Compute statistics
stat = mv.StatisticsManager(experiment_histograms, control_histograms)
# Plot statistics for the first extended feature
stat[0].plot(ax=None, use_alternate_plot=True)
# Give an overall assessment of the worm's similarity to the control set
print("Nonparametric p and q values are %.2f and %.2f, respectively." %
(stat.min_p_wilcoxon, stat.min_q_wilcoxon))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file open_worm_analysis_toolbox-3.1.2.tar.gz
.
File metadata
- Download URL: open_worm_analysis_toolbox-3.1.2.tar.gz
- Upload date:
- Size: 141.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8fbf25faaf8fc82f5c560e448e982347a9355ca8be7ea55fcc22440259f441 |
|
MD5 | b385a3751d0215118db92ad50b29d638 |
|
BLAKE2b-256 | 3209225bffae98feea754ea22921d122746c34200bc6f8553e9d3eae11b04591 |
File details
Details for the file open_worm_analysis_toolbox-3.1.2-py3-none-any.whl
.
File metadata
- Download URL: open_worm_analysis_toolbox-3.1.2-py3-none-any.whl
- Upload date:
- Size: 166.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b3a1bd957f739e0d2de419b3c36cb1d1477869be82451d1d2fd7d895d053ca |
|
MD5 | ebe3c6d8a9402c6ac7be66d1eeb556c8 |
|
BLAKE2b-256 | 55993a54ce6a6a41175721c7a3f1f39e97487ea76352e916bf2ab40c60a1f87b |