Skip to content
AFM-SPMPublic

About

A Python package for slicing Atomic Force Microscopy images.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

AFMSlicer

Actions Status Documentation Status Code style: black Code style: flake8 codecov pre-commit.ci status fair-software.eu GitHub Discussion

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

  1. Install from Python Package Index (PyPI) - use this if you only want to use a stable version AFMSlicer.
  2. Install directly from GitHub - use this if you want to try out the latest features.
  3. 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.

About

A Python package for slicing Atomic Force Microscopy images.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages