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.
Metadata
Release files for titerplot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| titerplot-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for titerplot-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| titerplot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for titerplot-0.1.0-py3-none-any.whl |
Total release size: 10.5 kB
Release files / titerplot-0.1.0.tar.gz
| Download URL | titerplot-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89f3cddc00229be3eb8bac8f288b8b00fd15bf371385e3c0dc6b3a843e8fb1f7
|
|
BLAKE2b-256 checksum How to use checksums |
b36c8d1b552e6902e231b9c65e74c7a8b927f09a3ac61478b445a3a0fd4ec3e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure
|
Release files / titerplot-0.1.0-py3-none-any.whl
| Download URL | titerplot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37ed7c3ba23a64ab4b45fc37bfc646206a50325ae4e00901d9c53be71efb22c7
|
|
BLAKE2b-256 checksum How to use checksums |
6c2613a972bbbfdb11e1108d518e132ee04e73b47527498ba564ca1aa697f4e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure
|
Security for titerplot 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.