Skip to main content

A package for ClearMap project

Project description

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.

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

clearmap_nmr-0.3.0.tar.gz (563.6 kB view details)

Uploaded Source

Built Distributions

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

clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (50.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (50.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (51.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file clearmap_nmr-0.3.0.tar.gz.

File metadata

  • Download URL: clearmap_nmr-0.3.0.tar.gz
  • Upload date:
  • Size: 563.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clearmap_nmr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e7fe4a5b3f4522523cf09546d4f07ec82436b1a61964737d22343c5f4ce0c73e
MD5 1d2cc1e6286021e64b16da0ae4664351
BLAKE2b-256 a933b84bef21e1a497d7ea8ff9a025507956250e1f3b8a77f98601d31d2a251e

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmap_nmr-0.3.0.tar.gz:

Publisher: publish-package.yml on mpinb/clearmap-nmr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4779900e5feccba31c1f63e0039e16302f6aaec4ecadee03f4663c5cbe423b55
MD5 1c443ad225242cae92f82d353218585f
BLAKE2b-256 4e66135c660693379d893bf0ee899392ea463f0220d3bf44fd00c7d096995383

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmap_nmr-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-package.yml on mpinb/clearmap-nmr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9eba9df1c71980aa89139b588313dd8654554095cd2078dfa5b58bbe4a9b7331
MD5 7508ba872e1da913bceb2a2810714486
BLAKE2b-256 76a563ce7d7c7a0c8bedeaf1d1c8c6d25dd9c42a81fad042d1588aea73d141b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmap_nmr-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-package.yml on mpinb/clearmap-nmr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0aa519ade116bbece63dd0eacb94dc3a2766764deb65d7860c6ebd1bdd088b80
MD5 e5e359f9bfbd336495865974286edb59
BLAKE2b-256 ad278bc1d466f1e74db9b21bbf20be79b42bf40dec1d61d4171765fbcf37b377

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmap_nmr-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-package.yml on mpinb/clearmap-nmr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4226fda21050bfd52d814ea1b6e1f9afff528ab5f93e1bdab5dcc3cf3e6e0353
MD5 41937a6c6a2984584dd1b4a6c21e2c04
BLAKE2b-256 768feb39b55e644a776ea3d56b0af7b37b0b3f9e7ffd9dc961ba762c7206e4b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmap_nmr-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-package.yml on mpinb/clearmap-nmr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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