Skip to main content

Python package DOI

SpatialProteomicsQC

This is a quality control tool for spatial proteomics data that has been developed in the Borner lab. Primary results illustrating the functionality of the tool have been published here and presented here. The graphical user interface is available at https://domqc.bornerlab.org. Alternatively you can clone this repository and run the user interface locally or use the underlying python library in custom code. If you encounter any issues with the website or the code please let us know through the issues on this repository and if you have any unanswered questions regarding the science behind it don't hesitate to contact us directly.

Instructions for uploading data as well as sample data are included in the interface.

Running locally

System requirements

There are no special hardware requirements for running the QCtool. The code was tested on Linux and Windows and should also run on Mac.

Setting up the environment

To run the app locally create a new python environment (required version >=3.8, <= 3.10). This can either be done using anaconda or a native virtual environment. Illustration for unix systems:

python3 -m venv path/to/env
source path/to/env/bin/activate

Next, clone this repository (requires git) or download it here and install the package including its dependencies (see requirements file):

git clone https://github.com/valbrecht/SpatialProteomicsQC

pip install ".[gui]"

This step takes roughly 20 minutes, depending on download speed and hardware configuration, limited by the plotly library. If any pip installations fail due to external dependencies missing (e.g. zlib requirement for Pillow installation from source on python 3.6, or Microsoft Visual C++ 14 on windows) try installing that library using a binary file, thereby avoiding the dependency:

pip install --only-binary :all: Pillow

Running from jupyter notebook

To run the tool on your computer and to be able to interact with the data and the interface through pyhton code use jupyter. This is not included in the requirements so you need to add it to your environment if you haven't used anaconda. You can then run the jupyter notebook in the webapp folder to run a locally hosted interface. The only time you need to do this is when working with files larger than 80 MB, since they can't be loaded through the interface directly. Instead adjust one of the two code cells at the end of the notebook, to load the file directly from your file system.

Running a (local) server

To access the GUI without directly interacting with the code, or to host your own instance of the tool, you can run a panel serve command from the command line:

cd domaps/webapp
panel serve QCtool.py

Code Contributions

Generally code contributions are welcome - if you have best practices or benchmarks that you want to see represented here get in touch, or open a PR.

For releases we follow the alphaX ecosystem https://github.com/MannLabs/alphashared/blob/main/.github/workflows/README.md.

Requirements are split between what is required for data analysis and what is required to run the panel based GUI. Please don't add code for data processing that requires any of the GUI libraries. All newly added code should be tested by doctests or pytest and documented with docstrings. For major additions please include a jupyter notebook.

Metadata

Release files for domaps 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for domaps 1.1.0
File Size Uploaded
domaps-1.1.0.tar.gz 5.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for domaps 1.1.0
File Interpreter ABI Platform
domaps-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 MB

Release files / domaps-1.1.0.tar.gz

Download URL domaps-1.1.0.tar.gz
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
bfb8778a9fcaa5f62e50f345c12ad07de4b7e84f3933f4ffdd772397545daac1
BLAKE2b-256 checksum
How to use checksums
06e5aebfe208b011bda09d918078dd5cea8ec6b7522b22b500b573588ab675a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / domaps-1.1.0-py3-none-any.whl

Download URL domaps-1.1.0-py3-none-any.whl
Size 5.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5f04a556df23eca5dcaabe4732c274a8f038bac5cf4b9e0eeb48f14f72608921
BLAKE2b-256 checksum
How to use checksums
0fc37c1b338ea6292558d38303a4feb96229dce80014aa7bc40cec220a9abc50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page