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

Singularity/Docker #3

Open
alexcorm opened this issue May 20, 2021 · 4 comments
Open

Singularity/Docker #3

alexcorm opened this issue May 20, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@alexcorm
Copy link

Hello,

Do you have any plan to release a Singularity/Docker version of Agnostos? It would be great as both are able to run with MPI and the portability will be better.

@genomewalker genomewalker added the enhancement New feature or request label May 20, 2021
@genomewalker
Copy link
Contributor

Hi
it is a good idea. We will need to investigate which is the best way on how to do it properly. We will try to implement it after we are finished with some improvements in the workflow.
Thanks
Antonio

@alexcorm
Copy link
Author

As far I know, Singularity/Docker can be used with the latest Snakemake version using --use-singularity and adding something like that in each rule:

rule NAME:
    input:
        "table.txt"
    output:
        "plots/myplot.pdf"
    container:
        "docker://joseespinosa/docker-r-ggplot2"
    script:
        "scripts/plot-stuff.R"

And for Singularity/Docker, if MPI is installed in the image, it can be run as follow:

mpirun -n <NUMBER_OF_RANKS> singularity exec <PATH/TO/MY/IMAGE> </PATH/TO/BINARY/WITHIN/CONTAINER>

But I never tried to use run Docker image in MPI into a Snakemake Workflow!

@genomewalker
Copy link
Contributor

I never tried it either. Will come back to you once we figure it out.

@rhernandvel
Copy link

Hi,
Is there any update on this?
Thanks

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

No branches or pull requests

3 participants