Skip to main content

Cli for fitting macromolecule pH titration or binding assays data e.g. fluorescence spectra.

Project description

ClopHfit

PyPI CI codecov RtD DOI

This package provides a command line interface for fitting pH titration or binding assay data for macromolecules, such as fluorescence spectra. With this tool, users can easily analyze their data and obtain accurate fitting results.

  • Version: "0.11.0"

Installation

You can get the library directly from PyPI using pip:

pip install clophfit

Alternatively, you can use pipx to install it in an isolated environment:

pipx install clophfit

To enable auto completion for the clop command, follow these steps:

  1. Generate the completion script by running the following command:

    _CLOP_COMPLETE=bash_source clop > ~/.local/bin/clop-complete.bash
    
  2. Source the generated completion script to enable auto completion:

    source ~/.local/bin/clop-complete.bash
    

Usage

You can check out the documentation on https://darosio.github.io/ClopHfit for up to date usage information and examples.

CLI

ClopHfit provides several command line interface tools for fitting and processing data.

prtecan

Extract and fit titrations from a list of Tecan files collected at various pH or chloride concentrations:

ppr -o prova2 --is-ph tecan list.pH --scheme ../scheme.txt --norm
    --dil additions.pH --Klim 6.8,8.4 --sel 7.6,20

Use the --no-weight option to reproduce an older pr.tecan version.

eq1

Predict chloride dissociation constant K_d at a given pH:

clop eq1 --help

prenspire

Parser for EnSpire (PerkinElmer) file:

ppr -o folder enspire file.csv

Destination folder (default: "./Meas-${version}") will contain for each Measurement:

  • a table (csv) in wide tabular form e.g. <lambda, A01, ..., H12>;
  • corresponding graphical (png) representation of spectra from all wells.

By adding a note.csv file:

ppr -o folder enspire file.csv note.csv

destination folder (default: "./Meas-${version}") will also contain:

  • a pdf for each titration and label;
  • a pdf for global (multiband) analysis pdfalong with global and all_SVD;
  • a pdf for SVD analysis of all concatenated spectra.

note_to_csv

note_to_csv -t 37.0 -l "B E F" -o 37 NTT-G03-Cl_note
note_to_csv -t 20.0 -l "A C D" -o 20 NTT-G03-Cl_note
cat 20 37 > G03_Cl_note.csv

Python

ClopHfit can be imported and used as a Python package. The following modules are available:

clophfit.prenspire - parser for EnSpire (PerkinElmer) files
clophfit.prtecan - perform fitting of pH titration or binding assay data
clophfit.binding - perform fitting of macromolecule binding assay data

To use clophfit in your python:

from clophfit import prenspire, prtecan, binding

Features

  • Plate Reader data Parser.
  • Perform non-linear least square fitting.
  • Extract and fit pH and chloride titrations of GFP libraries.
    • For 2 labelblocks (e.g. 400, 485 nm) fit data separately and globally.
    • Estimate uncertainty using bootstrap.
    • Subtract buffer for each titration point.
    • Report controls e.g. S202N, E2 and V224Q.
    • Correct for dilution of titration additions.
    • Plot data when fitting fails and save txt file anyway.

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

All code is licensed under the terms of the revised BSD license.

Contributing

If you are interested in contributing to the project, please read our contributing and development environment guides, which outline the guidelines and conventions that we follow for contributing code, documentation, and other resources.

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

clophfit-0.11.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

clophfit-0.11.0-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file clophfit-0.11.0.tar.gz.

File metadata

  • Download URL: clophfit-0.11.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for clophfit-0.11.0.tar.gz
Algorithm Hash digest
SHA256 926fe1c7e2263fce4ab758ad26660a1c387dee82f19c7886ad93f37b0e664dc9
MD5 609957cc0afeb232000c8f1c3c46a8f9
BLAKE2b-256 61d62dc23bd2dd168d6a5d104c227d945f9f8bf485850bcf2fb30b4752a4d24a

See more details on using hashes here.

File details

Details for the file clophfit-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: clophfit-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for clophfit-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb12d797121d0d64f38a5fece3e9d6a4409c9ef347c3447cb9b8f1127e55a017
MD5 3b3eb69b42ff4b90f00f5b9be8ca50e0
BLAKE2b-256 ea754d924c10f0a3dd46ed95edae11f15c796bb23da7f92ef090411d4cc75706

See more details on using hashes here.

Supported by

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