Single-molecule pulling analysis package
Project description
tweezepy
This is tweezepy, a package of single-molecule pulling experiment related analysis code.
How to install
The simplest method of installing the tweezepy package is via the Python Package Index (PyPI). To install from PyPI, you will need to be able to run python from the command line and make sure you have pip available.
With pip:
pip install tweezepy
An alternative method to install tweezepy is with setuptools. Clone the repository onto a local machine, then navigate to the directory.
Using setuptools:
cd path/to/tweezepy
python setup.py install
Contents
The tweezepy package includes the following modules:
- 'smmcalibration' - tool to determine force of probe trajectories by calculating and performing maximum likelihood estimation fits to power spectral density and allan variance
- 'simulations' - tool to simulate single-molecule probe trajectories
Example use:
Simulate data:
>>> import matplotlib.pyplot as plt
>>> from tweezepy.simulations import downsampled_trace
>>> alpha,kappa,fsample,N = 1e-5,.001,400,10240
>>> xtrace = downsampled_trace(alpha,kappa,fsample,N)
>>> plt.plot(xtrace)
>>> plt.show()
Power spectral density:
>>> from tweezepy.smmcalibration import PSD
>>> psd = PSD(xtrace,fsample)
>>> pars,errs,covs = psd.mlefit()
>>> psd.plot()
Allan variance:
>>> from tweezepy.smmcalibration import AV
>>> av = AV(xtrace,fsample)
>>> pars,errs,covs = av.mlefit()
>>> av.plot()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tweezepy-0.1.6.tar.gz.
File metadata
- Download URL: tweezepy-0.1.6.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd87b31672faf3c29a95db8c8143ae3e4c8b8c177a5c183d973b4c339dabdc99
|
|
| MD5 |
aab4aa0529ff147badfecaae7b6c610b
|
|
| BLAKE2b-256 |
3bceca435a9f3053940230bd42fca96783e7c34e34e2c4f5687eab6cb959ebdd
|
File details
Details for the file tweezepy-0.1.6-py3-none-any.whl.
File metadata
- Download URL: tweezepy-0.1.6-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb84a628b03aaf1fd0e6461e360371c143f869728fd22891b56d89a2629a41e
|
|
| MD5 |
3e593dcb9e7089eb9c7c44f7fefc8624
|
|
| BLAKE2b-256 |
bef4333ad4b84dba439d938359cb44cc627d6ccf227a5c1ffb02cbcc135ea8d9
|