Skip to main content

A Python package for plotting titer data with factorial/combinatorial designs.

Project description

Titerplot

Author: Will Hannon

Plotting viral titers from experiments with a factorial/combinatorial design with Altair.

Install

# Requires Python > 3.12
pip install titerplot

Use

The primary function of this library is plot_titers, which can be imported directly from the package:

from titerplot import plot_titers

# Example usage
plot_titers(
    data,
    titer_col="Titer",
    condition_cols=["Condition_A", "Condition_B", "Condition_C", "Condition_D"],
    facet_col="Facet",
    color_col="Virus"
)

For a complete demonstration of the library's capabilities, check out the plotting demo notebook. For an example of the ideal data format, check out the dummy_data.

Develop

This project uses Poetry for dependency management and packaging.

Setup development environment

# Clone the repository
git clone git@github.com:WillHannon-MCB/titerplot.git
cd titerplot

# Install dependencies with Poetry
poetry install

# Activate the virtual environment
poetry shell

Run tests

Pytest runs the demo notebooks and saves the rendered notebooks to /docs/.

# Run pytest
pytest

Project structure

.
├── data/               # Sample data files
├── docs/               # Rendered Demo notebooks
├── notebooks/          # Development notebooks
├── src/                # Source code
│   └── titerplot/      # Main package
├── tests/              # Test files
├── pyproject.toml      # Package configuration
└── poetry.lock         # Locked dependencies

Publish

titerplot is published on PyPI so that it can be installed with pip. A worflow run by Github Actions publishes to PyPI when the tag is updated:

git tag -a v0.1.0 -m "First release version"
git push origin v0.1.0 

Ensure that you've updated the CHANGELOG with specific changes and pyproject.toml with the same version as the tag. For now, this is handled manually.

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

titerplot-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

titerplot-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file titerplot-0.1.0.tar.gz.

File metadata

  • Download URL: titerplot-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for titerplot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89f3cddc00229be3eb8bac8f288b8b00fd15bf371385e3c0dc6b3a843e8fb1f7
MD5 46d5e1596e411cebfe8e7e8e3b307522
BLAKE2b-256 b36c8d1b552e6902e231b9c65e74c7a8b927f09a3ac61478b445a3a0fd4ec3e9

See more details on using hashes here.

File details

Details for the file titerplot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: titerplot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for titerplot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37ed7c3ba23a64ab4b45fc37bfc646206a50325ae4e00901d9c53be71efb22c7
MD5 cd1153dad816be23ee6bd89e741362ab
BLAKE2b-256 6c2613a972bbbfdb11e1108d518e132ee04e73b47527498ba564ca1aa697f4e4

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