[![Python package](https://github.com/valbrecht/SpatialProteomicsQC/actions/workflows/python-package.yml/badge.svg)](https://github.com/valbrecht/SpatialProteomicsQC/actions/workflows/python-package.yml)
[![DOI](https://zenodo.org/badge/313335423.svg)](https://zenodo.org/badge/latestdoi/313335423)
# 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](https://doi.org/10.1038/s41467-023-41000-7) and presented [here](https://www.youtube.com/watch?v=dUrOxYHJihc). 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](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) or a [native virtual environment](https://docs.python.org/3/library/venv.html). 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](https://panel.holoviz.org/user_guide/Deploy_and_Export.html#launching-a-server-on-the-commandline) 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "domaps",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Julia Schessner <schessner@biochem.mpg.de>",
"keywords": "mass spectrometry, proteomics, bioinformatics, dynamic organellar maps, spatial proteomics",
"author": "Julia Schessner, Vincent Albrecht",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/fa/49/5f1384c3660a90e373ea2f9a09c3e33be6316971d8faca1ed97b7f680328/domaps-1.0.3.tar.gz",
"platform": null,
"description": "[![Python package](https://github.com/valbrecht/SpatialProteomicsQC/actions/workflows/python-package.yml/badge.svg)](https://github.com/valbrecht/SpatialProteomicsQC/actions/workflows/python-package.yml)\n[![DOI](https://zenodo.org/badge/313335423.svg)](https://zenodo.org/badge/latestdoi/313335423)\n\n\n\n# SpatialProteomicsQC\nThis 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](https://doi.org/10.1038/s41467-023-41000-7) and presented [here](https://www.youtube.com/watch?v=dUrOxYHJihc). 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.\n\nInstructions for uploading data as well as sample data are included in the interface.\n\n## Running locally\n\n### System requirements\nThere are no special hardware requirements for running the QCtool. The code was tested on Linux and Windows and should also run on Mac.\n\n### Setting up the environment\nTo run the app locally create a new python environment (required version >=3.8, <= 3.10). This can either be done using [anaconda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) or a [native virtual environment](https://docs.python.org/3/library/venv.html). Illustration for unix systems:\n\n```\npython3 -m venv path/to/env\nsource path/to/env/bin/activate\n```\n\nNext, clone this repository (requires git) or download it here and install the package including its dependencies (see requirements file):\n```\ngit clone https://github.com/valbrecht/SpatialProteomicsQC\n\npip install \".[gui]\"\n```\n\nThis 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:\n```\npip install --only-binary :all: Pillow\n```\n\n### Running from jupyter notebook\nTo 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.\n\n### Running a (local) server\nTo access the GUI without directly interacting with the code, or to host your own instance of the tool, you can run a [panel serve](https://panel.holoviz.org/user_guide/Deploy_and_Export.html#launching-a-server-on-the-commandline) command from the command line:\n```\ncd domaps/webapp\npanel serve QCtool.py\n```\n\n\n### Code Contributions\nGenerally 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.\n\nFor releases we follow the alphaX ecosystem https://github.com/MannLabs/alphashared/blob/main/.github/workflows/README.md.\n\nRequirements 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.\n",
"bugtrack_url": null,
"license": null,
"summary": "Python library for dynamic organellar maps",
"version": "1.0.3",
"project_urls": {
"Changelog": "https://github.com/me/spam/blob/master/NEWS.md",
"Hosted webapp": "https://domabc.bornerlab.org",
"Issues": "https://github.com/JuliaS92/SpatialProteomicsQC/issues",
"Paper": "https://www.nature.com/articles/s41467-023-41000-7",
"Repository": "https://github.com/JuliaS92/SpatialProteomicsQC"
},
"split_keywords": [
"mass spectrometry",
" proteomics",
" bioinformatics",
" dynamic organellar maps",
" spatial proteomics"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "05f822968f86dc0bbc9d68d52d0517d78033a0d9149bcdc0ab0a9fdd2ae6216e",
"md5": "c23ced67c508f61b44b879f3cb062c15",
"sha256": "92c6e564de11e0647cb2de872504654915f25453eacde8ad920c5abf9f789264"
},
"downloads": -1,
"filename": "domaps-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c23ced67c508f61b44b879f3cb062c15",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5124910,
"upload_time": "2025-01-28T08:55:26",
"upload_time_iso_8601": "2025-01-28T08:55:26.868830Z",
"url": "https://files.pythonhosted.org/packages/05/f8/22968f86dc0bbc9d68d52d0517d78033a0d9149bcdc0ab0a9fdd2ae6216e/domaps-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "fa495f1384c3660a90e373ea2f9a09c3e33be6316971d8faca1ed97b7f680328",
"md5": "bb4331b4603d63ab7b7b04471f1c22d8",
"sha256": "5f0dbfc08676d7e62525b1484b88e2d03f315556867c9fe6c2dbba55aa4a2827"
},
"downloads": -1,
"filename": "domaps-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "bb4331b4603d63ab7b7b04471f1c22d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5054589,
"upload_time": "2025-01-28T08:55:29",
"upload_time_iso_8601": "2025-01-28T08:55:29.292397Z",
"url": "https://files.pythonhosted.org/packages/fa/49/5f1384c3660a90e373ea2f9a09c3e33be6316971d8faca1ed97b7f680328/domaps-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-28 08:55:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "me",
"github_project": "spam",
"github_not_found": true,
"lcname": "domaps"
}