CCBR Snakemake Pipeline Cookiecutter

public public 1yr ago Version: 2 0 bookmarks

This is a dummy folder framework for CCBR snakemake workflows. New workflows can be started using this repository as a template.

Creating PAT for GH

This is a prerequisite for the next step. You will need gh cli installed on your laptop or use /data/CCBR_Pipeliner/db/PipeDB/bin/gh_1.7.0_linux_amd64/bin/gh on biowulf. Skip if can access github in an automated way already.

Personal Access Token (PAT) is required to access GitHub (GH) without having to authenticate by other means (like password) every single time. You can create a PAT by going here . Then you can copy the PAT and save it into a file on biowulf (say ~/gh_token ). Next, you can run the following command to set everything up correctly on biowulf (or your laptop)

gh auth login --with-token < ~/git_token

Creating new repository

You can use gh cli to

  • create a new repository under CCBR, and

  • copy over the template code from CCBR_SnakemakePipelineCookiecutter with the following command

gh repo create CCBR/<reponame> \
--description "<repo description>" \
--public \
--template CCBR/CCBR_SnakemakePipelineCookiecutter \
--confirm

On biowulf, you may have to specify the full path of the gh executable is located here: /data/CCBR_Pipeliner/db/PipeDB/bin/gh_1.7.0_linux_amd64/bin/gh

Then you can clone a local copy of the new repository:

gh repo clone CCBR/<reponame>.git

If you drop the CCBR/ from the gh command above, then the new repo is created under your username. The commands would then look like this:

gh repo create <reponame> \
--description "<repo description>" \
--public \
--template CCBR/CCBR_SnakemakePipelineCookiecutter \
--confirm
gh repo clone <your_github_handle>/<reponame>.git

You can change --public to --private in the above gh command to make the newly created repository private.

Code Snippets

16
17
18
19
    shell:"""
outdir=$(basedir {output})
fastqc -i {input} -o $outdir
    """

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/kopardev/test
Name: test
Version: 2
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Other Versions:
Downloaded: 0
Copyright: Public Domain
License: MIT License
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...