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).

Documentation

Read the documentation for Tweezepy here.

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 notebooks 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.1.1.tar.gz (31.4 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.1.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Tweezepy-1.1.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Tweezepy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 76cc7f47de37db0dd5e91f77ef1ea5ac0f769a0a3c1f17b05aa4de930aa3f578
MD5 235d20ef6a72bb5613602515e0d0fff4
BLAKE2b-256 76c546b9b59ef6fe301d3b30ef662b220fb4b38d49e939446ab7dcc64960c66f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Tweezepy-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Tweezepy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cef7ff78d02e3360a9c7eeb569df1773d17ae2ca8d14ca29c0d3d4d843e8394f
MD5 4d4dc07bded73e81424b25b5ba70e0a4
BLAKE2b-256 f454943fb61110a043fec759e0daa0c58463e13bf9f2861ca01ac7b76032a251

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