Skip to main content

Single-molecule force spectroscopy calibration

Project description

Tweezepy

DOI

This is Tweezepy, a Python package for calibrating forces in single-molecule force spectroscopy video-tracking experiments using the power spectral density (PSD) and Allan variance (AV).

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.

Install from PyPI:

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' - classes for calibration methods using the PSD and AV
  • 'expressions' - functions with closed-form expressions for thermal motion in the PSD and AV
  • 'MLE' - classes for maximum likelihood estimation (MLE) and Monte Carlo Markov chain (MCMC) sampling
  • 'allanvar' - tools for calculating the AV and equivalent degrees of freedom
  • 'simulations' - tools to simulate bead thermal motion

Example use:

Simulate data:

>>> import matplotlib.pyplot as plt
>>> from tweezepy.simulations import downsampled_trace
>>> xtrace = downsampled_trace()
>>> plt.plot(xtrace)
>>> plt.show()

Power spectral density:

>>> from tweezepy.smmcalibration import PSD
>>> psd = PSD(xtrace,fsample)
>>> psd.mlefit()
>>> print(psd.results)
>>> psd.plot()

Allan variance:

>>> from tweezepy.smmcalibration import AV
>>> av = AV(xtrace,fsample)
>>> av.mlefit()
>>> print(av.results)
>>> av.plot()

Jupyter noteboosk with examples

Jupyter notebooks are interactive Python scripts, embedded in a browser, allowing you to manipulate data and display plots like easily. For guidance on installing jupyter, please refer to https://jupyter.org/install.

See /docs for some examples in notebook format.

github formats the notebooks into nice web-pages, for example

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-1.0.3.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

Tweezepy-1.0.3-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file Tweezepy-1.0.3.tar.gz.

File metadata

  • Download URL: Tweezepy-1.0.3.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for Tweezepy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7d861a948d0809b236272956c605581daf2f9bf55e3f0aebf015975763efbff1
MD5 c92c1d6df5954dfd3094abdb8ed2dd26
BLAKE2b-256 cafd39d58680d8bb49bb484436243cb31322780da9918402086c6e526bcf5446

See more details on using hashes here.

File details

Details for the file Tweezepy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: Tweezepy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for Tweezepy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f219847b3b95837735eaa7a401bc9d788383cbbff0e7c97b62c1447724f16ce
MD5 2b79fb57f81280788eaa95c98de6dec1
BLAKE2b-256 b9f95dcc59ae684ca818d00d620dc6bf6bfbb6f377b56946ee5b6cc8e7505be4

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