Command line tool for highly parallelized processing of Vizgen data
Project description
Vizgen Post-processing Tool
The Vizgen Post-processing Tool (VPT) is a command-line toolkit for reprocessing and refining the single-cell outputs of MERSCOPE experiments. VPT supports reproducible segmentation workflows, import of segmentation from external tools, and regeneration of downstream outputs on workstations, clusters, or cloud environments.
Features
- Cell segmentation
- Reproduce standard Vizgen segmentation options
- Run custom and reproducible segmentation workflows
- Segmentation import
- Import boundaries produced by external tools
- Supports GeoJSON and HDF5 formats
- Single-cell output regeneration
- Cell-by-gene matrix
- Cell spatial metadata
- Per-cell image intensity
- Updated MERSCOPE Visualizer file (VZG)
- Image conversion
- Convert large TIFF files to single- or multi-channel pyramidal OME-TIFF
- Workflow integration
- Nextflow-compatible, with an example pipeline provided
Installation
Install VPT with your preferred method:
pip
pip install vpt
Docker
docker pull vzgdocker/vpt
Poetry
git clone https://github.com/Vizgen/vizgen-postprocessing
cd vizgen-postprocessing
poetry install
To view command help in your installed environment:
vpt --help
Plugins
VPT supports plugin-based segmentation algorithms.
Install all supported plugins at once:
pip install vpt[all]
if using poetry:
poetry install --all-extras
In most cases, installing only the plugins you need is recommended.
Available plugins:
watershed
Uses a watershed-based approach with Stardist-derived seeds.
Install with:
pip install vpt-plugin-watershed
cellpose
Interface to Cellpose 1.0.2.
Install with:
pip install vpt-plugin-cellpose
cellpose2
This plugin is an interface to Cellpose 2.x.
Install with:
pip install vpt-plugin-cellpose2
cellposesam :star2: New, April 28th, 2026 :star2:
Interface to Cellpose 4.x using the Cellpose-SAM architecture. A GPU is strongly recommended because the model is large and runs very slowly on CPU.
Cellpose-SAM GitHub repository
Install with:
pip install vpt-plugin-cellposesam
instanseg :star2: New, April 28th, 2026 :star2:
Interface to the Instanseg segmentation model. It runs on CPU or GPU and can use an arbitrary number of channels.
Install with:
pip install vpt-plugin-instanseg
Usage
VPT uses two input types to define segmentation runs:
- Command-line parameters
- Describe input locations and run-specific configuration
- Segmentation algorithm JSON parameters
- Define the processing steps applied to the input data
Reusing the same segmentation algorithm across experiments helps ensure consistent, reproducible processing.
In addition to the user guide, example segmentation algorithm JSON files are included and can be used directly or adapted as templates for custom workflows.
Quick start commands
run-segmentation: Top-level segmentation entrypoint.prepare-segmentation: Generates a segmentation specification JSON file.run-segmentation-on-tile: Runs a segmentation algorithm for a specific image tile.compile-tile-segmentation: Combines per-tile outputs into one internally consistent parquet file.derive-entity-metadata: Computes geometric attributes for each segmented entity.partition-transcripts: Assigns each detected transcript to an entity when possible.sum-signals: Computes image intensity values per entity.update-vzg: Updates an existing VZG with new boundaries and expression matrix data.convert-geometry: Converts external boundaries into VPT-compatible parquet format.convert-to-ome: Converts large 16-bit mosaic TIFF images to pyramidal OME-TIFF.convert-to-rgb-ome: Converts up to three flat TIFF images into RGB pyramidal OME-TIFF.
For full command usage and options, see the user guide.
Documentation
Feedback
If you encounter issues or bugs, please submit an issue. Please include:
- A short issue summary
- Reproduction steps
- The exception/error output, if applicable
- Relevant code locations, if available
For other feedback, contact your regional Vizgen field application scientist and CC Vizgen Tech Support at techsupport@vizgen.com.
Please include "VPT" in the subject line.
Contributing & Code of Conduct
We welcome code contributions! Please refer to the contribution guide before getting started.
Authors
License
Copyright 2022 Vizgen, Inc. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vpt-1.3.3.tar.gz.
File metadata
- Download URL: vpt-1.3.3.tar.gz
- Upload date:
- Size: 195.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e85bcaa2da1b48c6b28be826fa5260516c4c9b5702f9c94b8ac5bcb841c635a7
|
|
| MD5 |
5e8dad2c47a6b2984a5a61bce26c2552
|
|
| BLAKE2b-256 |
af8ed6268cb11b922effff5ce674469db4ab2a44c4a418b54e1617319f735cf4
|
File details
Details for the file vpt-1.3.3-py3-none-any.whl.
File metadata
- Download URL: vpt-1.3.3-py3-none-any.whl
- Upload date:
- Size: 242.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4d9ca01a2fe5543787260a745def5130c56bb0dcb76524a3c5864da161044f
|
|
| MD5 |
1497a947470f25edf1c5f815ebc2cbed
|
|
| BLAKE2b-256 |
83f41ef514fa1dcb78a051dc3b9e8aa771ac6a96157e1c76afe4749ca22ce163
|