Boilerplate code used by all/most of the Ley Lab snakemake pipelines
- Version: 0.1.0
- Authors:
- Nick Youngblut nyoungb2@gmail.com
- Alexander Tyakht alexander.tyakht@tuebingen.mpg.de
- Maintainers:
- Alexander Tyakht alexander.tyakht@tuebingen.mpg.de
The repo acts as a "submodule" in the git repos of each pipeline. Submodules are repos inside other repos that can be updated separately from the main (parent) repo.
The repo also includes snakemake profiles
for running snakemake on a cluster. SGE & SLURM are currently supported, but
you may want to edit each, depending on your cluster setup. You do NOT
need to add the profile(s) to your ~/.config/snakemake/
directory!
cd /path/to/PIPELINE/
git submodule update --remote --init --recursive
cd /path/to/PIPELINE/
cd bin/
git submodule add https://github.com/leylabmpi/ll_pipeline_utils.git
git submodule update --remote --init --recursive
git clone --recurse-submodules git@URL_OF_THE_PIPELINE_CHANGE_THIS
From this gist
PATH_TO_SUBMODULE=./bin/ll_pipeline_utils/
git submodule deinit -f $PATH_TO_SUBMODULE
git rm $PATH_TO_SUBMODULE
git commit -m "Removed ll_pipeline_utils submodule"
rm -rf .git/modules/$PATH_TO_SUBMODULE
If you get the following error:
Cloning into '/path/to/by/pipeline/bin/ll_pipeline_utils'...
... Permission denied (publickey).
fatal: Could not read from remote repository.
...then you probably need to add an ssh key to your Github/GitLab account.
Basically, you just need to paste in the public ssh key from your ~/.ssh/id_rsa.pub
file that is in your home directory.
If you do not have a ~/.ssh/id_rsa.pub
file, then you need to create one (see the docs above).
If you get an error like this:
Error: profile given but no config.yaml found. Profile has to be given as either absolute path, relative path or name of a directory available in either /etc/xdg/snakemake or /ebio/abt3/USERNAME/.config/snakemake.
...then make sure to update the submodule: git submodule update --init --remote