Skip to main content

Python library for dynamic organellar maps

Project description

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.

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

domaps-1.1.0.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

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

domaps-1.1.0-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file domaps-1.1.0.tar.gz.

File metadata

  • Download URL: domaps-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for domaps-1.1.0.tar.gz
Algorithm Hash digest
SHA256 bfb8778a9fcaa5f62e50f345c12ad07de4b7e84f3933f4ffdd772397545daac1
MD5 b88bd8120d087d108f9a4255e9adf3b7
BLAKE2b-256 06e5aebfe208b011bda09d918078dd5cea8ec6b7522b22b500b573588ab675a9

See more details on using hashes here.

File details

Details for the file domaps-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: domaps-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for domaps-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f04a556df23eca5dcaabe4732c274a8f038bac5cf4b9e0eeb48f14f72608921
MD5 e04a2d490fa6dcaa55cfe863645a3a16
BLAKE2b-256 0fc37c1b338ea6292558d38303a4feb96229dce80014aa7bc40cec220a9abc50

See more details on using hashes here.

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