Skip to main content

Automated Analysis for Atomic Force Microscopy Images of Biomolecules

Project description

TopoStats

PyPI version PyPI - Python Version Documentation Status Code style: Ruff Code style: black Code style: flake8 codecov pre-commit.ci status ORDA fair-software.eu

Downloads Downloads Downloads


An AFM image analysis program to batch process data and obtain statistics from images.

There is more complete documentation on the projects documentation website.

Installation

TopoStats is available via PyPI and can be installed in your Virtual Environment with...

pip install topostats

For more on installation and how to upgrade please see the installation instructions.

NB The minimum supported version of Python is >=3.10 and because of a constraint in a dependency the maximum supported version is <= 3.11 (for now, we hope to support newer versions in the near future).

How to Use

Tutorials and Examples

For a full description of usage please refer to the usage documentation.

A default configuration is loaded automatically that works with .spm files. The simplest method of processing images is to run topostats process in the same directory as your scans after having activated the virtual environment in which you have installed TopoStats

topostats process

If you have files other than .spm please refer topostats --help and the documentation on how to process those images with TopoStats.

NB If your configuration specifies .spm (the default) files with the old-style Bruker extension (i.e. .001, .002 etc.) will also be processed.

If you have your own YAML configuration file (see Usage : Configuring TopoStats) then invoke topostats and use the argument for --config <config_file>.yaml that points to your file with an associated module of TopoStats e.g. process.

# Edit and save my_config.yaml then run TopoStats with this configuration file
topostats --config my_config.yaml process

The configuration file is validated before analysis begins and if there are problems you will see errors messages that are hopefully useful in resolving the error(s) in your modified configuration.

You can generate a sample configuration file using the topostats create-config argument which writes the default configuration to the file ./config.yaml (i.e. in the current directory). This will not run any analyses.

Notebooks

Example Jupyter Notebooks have been developed that show how to use TopoStats package interactively which is useful when you are unsure of what parameters are most suited to your scans. Other notebooks exist which show how to produce plots of the summary grain and tracing statistics or how to generate plots of scans from processed images which saves having to run the processing again. See the documentation on Notebooks for further details.

Contributing

Please refer to our contributing guidelines documentation.

Licence

This software is licensed as specified by the GPL License and LGPL License.

Citation

If you use TopoStats in your work or research please cite us. There is a Citation File Format in this repository to aid citation.

Publications

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

topostats-2.3.2rc1.tar.gz (211.0 kB view details)

Uploaded Source

Built Distribution

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

topostats-2.3.2rc1-py3-none-any.whl (220.8 kB view details)

Uploaded Python 3

File details

Details for the file topostats-2.3.2rc1.tar.gz.

File metadata

  • Download URL: topostats-2.3.2rc1.tar.gz
  • Upload date:
  • Size: 211.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for topostats-2.3.2rc1.tar.gz
Algorithm Hash digest
SHA256 d1c7a791f5059c2fa96b7c7cd3cb22a1e4a3ec2892e65a32563aa8fe32632e99
MD5 a1651f2ae117d51871f5579df7fb1f39
BLAKE2b-256 a87aa458a1d7b398fc6530d9a7cef716a8d34ffd2f98b3c31ff37674a200473b

See more details on using hashes here.

Provenance

The following attestation bundles were made for topostats-2.3.2rc1.tar.gz:

Publisher: pypi.yaml on AFM-SPM/TopoStats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file topostats-2.3.2rc1-py3-none-any.whl.

File metadata

  • Download URL: topostats-2.3.2rc1-py3-none-any.whl
  • Upload date:
  • Size: 220.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for topostats-2.3.2rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb86b7957f3ce984b4d3ab8aef01b875d82c773896b4a6ad82c8392a67dcb8c
MD5 93f4394a047aa0be08c2856e3155bb0c
BLAKE2b-256 eaa68469f4b386d859bd06285ff2b140d34cb5b564f60e08fb0ce4141393d89d

See more details on using hashes here.

Provenance

The following attestation bundles were made for topostats-2.3.2rc1-py3-none-any.whl:

Publisher: pypi.yaml on AFM-SPM/TopoStats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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