Skip to content

gerlichlab/replchromconf-jupyterlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JupyterLab image for Takacs, Mylarshchikov et al.

This repository contains a definition file for a companion Apptainer/Singularity image to run scripts and notebooks in gerlichlab/takacs_mylarshchikov_et_al, as well as instructions how to download a prebuilt image, run JupyterLab, and execute scripts.

How to run JupyterLab

Locally

First, pull the Apptainer/Singularity image from Docker Hub:

apptainer pull oras://registry-1.docker.io/gerlichlab/replchromconf-jupyterlab:v0.2

It will download the image as a file replchromconf-jupyterlab_v0.2.sif in the current directory.

Next, launch JupyterLab with apptainer:

apptainer exec replchromconf-jupyterlab_v0.2.sif jupyter lab --ip 0.0.0.0 --port 8888

Follow the instructions in the terminal.

On JupyterHub (CLIP HPC)

  1. Choose "JupyterLab based on custom Singularity image" (if supported by JupyterHub).
  2. Paste the path to the image file in sif format.
  3. Press "Start".

How to execute scripts

To execute scripts with conda environment in the image, a wrapper script is needed to activate the conda environment.

First, pull the Apptainer/Singularity image from Docker Hub:

apptainer pull oras://registry-1.docker.io/gerlichlab/replchromconf-jupyterlab:v0.2

It will download the image as a file replchromconf-jupyterlab_v0.2.sif in the current directory.

Next, create a wrapper script named run.sh with the following contents:

# active conda env in the container
source /srv/conda/etc/profile.d/conda.sh
conda activate notebook

# your code here
...

Finally, run the wrapper script with:

apptainer run replchromconf-jupyterlab_v0.2.sif /bin/bash run.sh

This approach works both locally and on HPC clusters with job schedulers, such as SLURM.

Prebuilt images

Images are built using repo2docker internally at VBC using Jenkins as CI. Currently, only Apptainer/Singularity images are available.

Public

The image is hosted on DockerHub, latest tag v0.2 (Apptainer/Singularity image, not Docker!)

Internal VBC

Internally, images are hosted on VBC Singularity registry: Singularity image URL.

Built images are available at: /groups/gerlich/labinfo/Methods/singularity_images/

Perks

  • All necessary packages preinstalled (except for OnTAD — have to build yourself)
  • anywidget
  • jupyterlab_materialdarker theme

Development

Original environment.yml file. The environment.yml file in this repo is used after the original one.

About

JupyterLab image to process, analyze, and visualize data from Takacs, Mylarshchikov et al.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%