Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tweezepy-0.1.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tweezepy-0.1.6-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for tweezepy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 bd87b31672faf3c29a95db8c8143ae3e4c8b8c177a5c183d973b4c339dabdc99
MD5 aab4aa0529ff147badfecaae7b6c610b
BLAKE2b-256 3bceca435a9f3053940230bd42fca96783e7c34e34e2c4f5687eab6cb959ebdd

See more details on using hashes here.

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

Hashes for tweezepy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb84a628b03aaf1fd0e6461e360371c143f869728fd22891b56d89a2629a41e
MD5 3e593dcb9e7089eb9c7c44f7fefc8624
BLAKE2b-256 bef4333ad4b84dba439d938359cb44cc627d6ccf227a5c1ffb02cbcc135ea8d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page