Skip to main content

btsp-cli

btsp-cli is a Python command-line tool for exporting orthogonal slice PNGs from paired NRRD image and label volumes.

Environment Setup

Create and activate the Conda environment:

conda create -n sp python=3.11
conda activate sp

Install the project in editable mode with development dependencies:

python -m pip install -e ".[dev]"

Single-File Usage

Export 6 PNG slices for one paired sample:

sp print \
  --nrrd \
  --data data/MR201202161060.image.nrrd \
  --label label/MR201202161060.label.nrrd \
  --point "[120,180,9]" \
  --output output \
  --header se

This writes:

  • {header}_{point}_x_image.png
  • {header}_{point}_x_label.png
  • {header}_{point}_y_image.png
  • {header}_{point}_y_label.png
  • {header}_{point}_z_image.png
  • {header}_{point}_z_label.png

Directory Usage

Apply one shared point to every matched sample pair in two directories:

sp print \
  --nrrd \
  --data data \
  --label label \
  --point "[120,180,9]" \
  --output output \
  --workers 4

Samples with out-of-bounds shared points are skipped without aborting the full batch.

Directory Usage With CSV Points

Use a CSV file to supply per-sample points and restrict processing to listed samples only.

CSV schema:

name_header,point
MR201202161060,"[120,180,9]"
MR201206080468,"[98,164,8]"

Command:

sp print \
  --nrrd \
  --data data \
  --label label \
  --point-csv points.csv \
  --output output \
  --header se \
  --workers 4

In directory mode, output headers are automatically expanded to {header}_{sample_name} to avoid overwriting files across samples.

Metadata

Release files for btsp-cli 0.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 btsp-cli 0.1.0
File Size Uploaded Provenance Actions
btsp_cli-0.1.0.tar.gz 7.2 kB Without provenance Details for btsp_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for btsp-cli 0.1.0
File Interpreter ABI Platform Actions
btsp_cli-0.1.0-py3-none-any.whl Python 3 none any Details for btsp_cli-0.1.0-py3-none-any.whl

Total release size: 14.9 kB

Release files / btsp_cli-0.1.0.tar.gz

Download URL btsp_cli-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1a8c13fd29e72472a3c0543d6e385f7a29f0f16651c5822ed40ef63cded7644
BLAKE2b-256 checksum
How to use checksums
d43d615fbf696d2a78bf898f7bcf4e1ea9f863de4b6f0444400b30bdc41455dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / btsp_cli-0.1.0-py3-none-any.whl

Download URL btsp_cli-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d14902629e3a229fa6a06c029736c6299f6a724129835e6edf8bfecebd28f9a3
BLAKE2b-256 checksum
How to use checksums
a3c1163500abafe48dac686e9057f30b799ebc03431a34a559ea9cbb4ec01bce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for btsp-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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