Skip to content

leylabmpi/ll_pipeline_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ll_pipeline_utils

Boilerplate code used by all/most of the Ley Lab snakemake pipelines

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!

Setup

How to update this submodule in an existing pipeline

cd /path/to/PIPELINE/
git submodule update --remote --init --recursive

How to add this submodule to an existing pipeline repository

cd /path/to/PIPELINE/
cd bin/
git submodule add https://github.com/leylabmpi/ll_pipeline_utils.git
git submodule update --remote --init --recursive

How to clone a pipeline repo and include the updated submodule

git clone --recurse-submodules git@URL_OF_THE_PIPELINE_CHANGE_THIS

How to remove this submodule

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

Troubleshooting

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

About

Utility scripts for running Ley Lab pipelines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published