AFMSlicer
AFMSlicer is a package for processing images from Atomic Force Microscopy of bacterial cell walls. From a single image of heights a user defined number of masks that "slice" through the image at regular intervals are taken. Each slice is segmented to identify areas and the distribution of these areas across slices, which typically approximates a Gaussian distribution, is used to select the Full-width Half-max range of slices to subset for summarisation.
Documentation
For the full documentation please refer to AFMSlicer Docs which are also mirrored at ReadTheDocs.
Installation
NB The instructions below are only a brief guide, please refer to the official installation instructions for more detailed information.
There are three options for installing AFMSlicer, the options and reasons for using different releases are..
- Install from Python Package Index (PyPI) - use this if you only want to use a stable version AFMSlicer.
- Install directly from GitHub - use this if you want to try out the latest features.
- Clone and install from a local copy - use this if you wish to develop and contribute to AFMSlicer.
Regardless of which version you choose it is recommended that use use uv to setup a virtual environment in which to install AFMSlicer. The following instructions include creating a virtual environment with uv.
Install from PyPI
cd path/to/work
mkdir afmslicer
cd afmslicer
uv venv --python 3.11
source .venv/bin/activate # This command works on GNU/Linux and OSX but will not under Windows, see output from previous step
uv pip install afmslicer
Install directly from GitHub
pip has support for installing packages directly from GitHub.
mkdir afmslicer
cd afmslicer
uv venv --python 3.11
source .venv/bin/activate # This command works on GNU/Linux and OSX but will not under Windows, see output from previous step
uv pip install git+https://github.com/AFM-SPM/AFMSlicer.git@main
You can replace @main in the last command to any git commit hash or tag if you want to install a specific version of
the code.
Clone and install
If developing or contributing to AFMSlicer then this is the recommended method. You will need to have Git installed on your computer in order to clone the repository (Windows users are recommended to use Git Bash).
The following installs the package along with all development dependencies that are required for working on the code base.
git clone git@github.com:AFM-SPM/AFMSlicer.git
cd AFMSlicer
uv venv --python 3.11
source .venv/bin/activate # This command works on GNU/Linux and OSX but will not under Windows, see output from previous step
uv pip install -e. --group dev
License
This software is licensed under the GNU GPLv3 License.
Metadata
Release files for AFMSlicer 0.0.1
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 |
|---|---|---|---|---|
| afmslicer-0.0.1.tar.gz | 17.7 MB | With provenance | Details for afmslicer-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| afmslicer-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for afmslicer-0.0.1-py3-none-any.whl |
Total release size: 17.7 MB
Release files / afmslicer-0.0.1.tar.gz
| Download URL | afmslicer-0.0.1.tar.gz |
|---|---|
| Size | 17.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89124cfe6f03b4a8909254040238c02a28283fb8e3409fd41ca432ce41b68856
|
|
BLAKE2b-256 checksum How to use checksums |
95678f472586c392737242a7486d3c09ca1dc1abb3308b4442b0976ce0157935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / afmslicer-0.0.1-py3-none-any.whl
| Download URL | afmslicer-0.0.1-py3-none-any.whl |
|---|---|
| Size | 46.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d7ad7ecaace05147fcd827a75537867dc63a3bcf789145c82ac65b82b84a547
|
|
BLAKE2b-256 checksum How to use checksums |
74c14efe6e4ce3c138f5ac37476a47c618e985fa08e31f1a00ac14eb413112b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for AFMSlicer 0.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for afmslicer-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA 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.