Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container installation / singularity image #89

Open
sebgoti opened this issue Aug 15, 2023 · 1 comment
Open

Container installation / singularity image #89

sebgoti opened this issue Aug 15, 2023 · 1 comment

Comments

@sebgoti
Copy link

sebgoti commented Aug 15, 2023

Given the large memory requirements that Baysor needs to process samples with millions of spots, I wonder if it would be possible to improve the stability of the docker container (which could be used in principle to build a singularity container for the HPC). What I mean by this? For example, the docker container can be ran in interactive mode with:

image

However, it does not work when trying to run a command directly on the image without going into the interactive mode:

image

This prevents Baysor to being used by other workflow programming languages such as Nextflow or Snakamake, which I think presents a huge disadvantage in terms of reproducibility and integration for scientific workflow management.

I also have the feeling that maybe this could help to create a stable Singularity image that could be used on the HPC.

@maximilian-heeg
Copy link
Contributor

maximilian-heeg commented Aug 31, 2023

Hi,

I did have issues running the container image on our HPC as well. That's why I wrapped the Baysor binary in small new images for docker and singularity/apptainer. Using this, I am able to run Baysor on our HPC using singularity (and can hopefully integrate it into nextflow pipelines soon)

I have created a GitHub repository that contains the build scripts. The singularity sif file is uploaded as a release on GitHub. The docker container is pushed to hub.docker.com.

# Use the images from docker.io with e.g.
docker run maximilianheeg/baysor:v0.6.2 run --help  
# --no-home might be required to prevent: Bind mount '/home/USER => /home/USER' overlaps container CWD 
singularity run --no-home docker://maximilianheeg/baysor:v0.6.2 preview --help

# Or a locally downloaded sif file
singularity run baysor.sif run --help

Hopefully, this can help you to get Baysor running on your HPC too.

Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants