Skip to main content

ClearMap (NMR - G. Fenton customized version)

To learn about ClearMap read the Documentation.

To use ClearMap in SOMA cluster follow these steps:

Setup

1. Clone this repository in soma login nodes (using your soma account):

git clone https://github.com/mpinb/clearmap-nmr.git

2. Change into the cloned repository folder and create the container using the ilastik-nmr definition file (ilastik-nmr.def)

cd ~/clearmap-nmr
module load apptainer
apptainer build ilastik-nmr.sif ilastik-nmr.def

3. Create conda environment using the environment definition file in this repository

module load anaconda3/2022.10
source activate
cd ~/clearmap-nmr
CONDA_OVERRIDE_CUDA="11.8" conda env create -n clearmap-nmr -f clearmap-nmr-env.yml

4. Activate the environment, add scripts that setup the environment variables and create an ipython kernel to use the environment inside Jupyter Notebook.

conda activate clearmap-nmr
cp env_vars.sh $CONDA_PREFIX/etc/conda/activate.d
cp reset_env_vars.sh $CONDA_PREFIX/etc/conda/deactivate.d
python -m ipykernel install --user --name clearmap-nmr --display-name 'clearmap-nmr'

pip install clearmap-nmr (NEW: 26.08.2025)

We now recommend to pip install the package to avoid recompilation of the Cython extensions in soma cluster.

python -m pip install clearmap-nmr

Running clearmap-nmr

Allocate a compute node from soma GPU partition (large memory nodes).

srun -p GPU -t 8:00:00 --mem 720G --cpus-per-task=48 --nodes=1 --pty bash

If there are no GPU nodes available, allocate a node from the CPU partition instead.

srun -p GPU -t 8:00:00 --mem 350G --cpus-per-task=48 --nodes=1 --pty bash

Start a shell using the apptainer container image and then inside the container load anaconda3 and launch jupyter lab

Note: The environment modules script is used to load anaconda.

module load apptainer
apptainer shell --bind /gpfs:/gpfs ilastik-nmr.sif
# another alternative is using the ilastik-nmr.sif image in /gpfs/soma_fs/scratch/containers
# apptainer shell --bind /gpfs:/gpfs /gpfs/soma_fs/scratch/containers/ilastik-nmr.sif
source /gpfs/soma_fs/soft/CentOS_7/packages/x86_64/environment-modules/5.1.1/init/bash
module load anaconda3/2022.10
source activate
conda activate clearmap-nmr

# OPTION 1: Use jupyter-lab 
cd ** CLEARMAP-NMR REPOSITORY CLONE DIRECTORY **
jupyter-lab --port 2020 --no-browser

# OPTION 2: Run a python script
python PYTHON-SCRIPT.py

From your workstation open an ssh-tunnel connection to the compute node where the jupyter server instance is running.

ssh -fN -L 2020:localhost:2020 somacpu0XX

Open your browser and enter the jupyter-lab link from the previous step to start a Jupyter Lab session and run the ClearMap NMR notebooks. Remember to switch the ipython kernel to use the one created above.

Metadata

Release files for clearmap-nmr 0.3.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 clearmap-nmr 0.3.0
File Size Uploaded
clearmap_nmr-0.3.0.tar.gz 563.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for clearmap-nmr 0.3.0
File
clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details

Total release size: 205.1 MB

Release files / clearmap_nmr-0.3.0.tar.gz

Download URL clearmap_nmr-0.3.0.tar.gz
Size 563.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e7fe4a5b3f4522523cf09546d4f07ec82436b1a61964737d22343c5f4ce0c73e
BLAKE2b-256 checksum
How to use checksums
a933b84bef21e1a497d7ea8ff9a025507956250e1f3b8a77f98601d31d2a251e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2026.

Transparency log

Release files / clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 52.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4779900e5feccba31c1f63e0039e16302f6aaec4ecadee03f4663c5cbe423b55
BLAKE2b-256 checksum
How to use checksums
4e66135c660693379d893bf0ee899392ea463f0220d3bf44fd00c7d096995383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2026.

Transparency log

Release files / clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 50.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9eba9df1c71980aa89139b588313dd8654554095cd2078dfa5b58bbe4a9b7331
BLAKE2b-256 checksum
How to use checksums
76a563ce7d7c7a0c8bedeaf1d1c8c6d25dd9c42a81fad042d1588aea73d141b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2026.

Transparency log

Release files / clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 50.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0aa519ade116bbece63dd0eacb94dc3a2766764deb65d7860c6ebd1bdd088b80
BLAKE2b-256 checksum
How to use checksums
ad278bc1d466f1e74db9b21bbf20be79b42bf40dec1d61d4171765fbcf37b377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2026.

Transparency log

Release files / clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 51.5 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4226fda21050bfd52d814ea1b6e1f9afff528ab5f93e1bdab5dcc3cf3e6e0353
BLAKE2b-256 checksum
How to use checksums
768feb39b55e644a776ea3d56b0af7b37b0b3f9e7ffd9dc961ba762c7206e4b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

5 release files

0.2.0

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