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

make singularity container #61

Open
2 of 8 tasks
colindaven opened this issue Jun 9, 2020 · 6 comments
Open
2 of 8 tasks

make singularity container #61

colindaven opened this issue Jun 9, 2020 · 6 comments
Assignees

Comments

@colindaven
Copy link
Contributor

colindaven commented Jun 9, 2020

TODO

Advantages : more reproducible. Not dependent on changing conda libs. Distributable as single file
Disadvantages: requires singularity install. More technical to change reference FASTA paths.

@colindaven
Copy link
Contributor Author

continuumio build on basis of debian, not ubuntu.

Need to set shell to bash properly

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

@colindaven
Copy link
Contributor Author

colindaven commented Oct 1, 2020

More progress made in September

Outstanding questions:

  • modification of SLURM config? Not really possible in read only container (use srun, not sbatch)
  • edit - link file config.yaml from current dir outside container to container dir /data/wochenende (to allow modifying refseqs)
  • test
  • Workaround: only direct use of python script with full parameters ?
  • call container from runbatch srun script with full params ? <-- most realistic
  • writeable container where users change config.yml in container?

@colindaven
Copy link
Contributor Author

@B1T0 The first item in the list , https://github.com/grst/containerize-conda , could be the most promising. Haven't tried it yet, but much simpler than the others.

@B1T0
Copy link
Collaborator

B1T0 commented Mar 9, 2021

I will have a look at this now

@colindaven
Copy link
Contributor Author

Use mamba container to make conda in container easier ? (but can it read a conda env file ?)

https://www.biostars.org/p/9476786/

@colindaven colindaven assigned colindaven and unassigned B1T0 Aug 11, 2021
@colindaven
Copy link
Contributor Author

It looks really difficult / impossible to use the bash specific setup.sh and current bash methods for reading in the config.yaml because singularity does not have a good/easy source command.

It will be even more difficult to allow users to edit the config.yaml and have it sourced at runtime ...

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