Skip to content

Commit

Permalink
made the snakemake bash files submittable by qsub
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdaniel committed Jun 29, 2020
1 parent a96beee commit 2845552
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
13 changes: 12 additions & 1 deletion dryrun_snakemake.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash
#!/usr/bin/env bash

#$ -cwd
#$ -r n
#$ -V
#$ -l h_vmem=2G
#$ -j y

#Uncomment the next two lines if you want to 'qsub' this script
#source ~/.bashrc #needed to make "conda" command to work
#conda activate qiime2-snakemake

set -xeuo pipefail

if [ $# -ne 1 ]; then
Expand Down
16 changes: 12 additions & 4 deletions run_snakemake.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash
#!/usr/bin/env bash

#$ -cwd
#$ -r n
#$ -V
#$ -l h_vmem=2G
#$ -j y

#Uncomment the next two lines if you want to 'qsub' this script
#source ~/.bashrc #needed to make "conda" command to work
#conda activate qiime2-snakemake

set -xeuo pipefail

if [ $# -ne 1 ]; then
Expand All @@ -8,9 +19,6 @@ fi

CONFIG_FP=$1

#source ~/.bashrc
#conda activate qiime2-snakemake

snakemake \
--jobs 100 \
--configfile ${CONFIG_FP} \
Expand Down

0 comments on commit 2845552

Please sign in to comment.