Skip to content

Commit

Permalink
setting up snakemake workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminJPerry committed Oct 19, 2022
1 parent 54564bd commit 583030f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 2022 Benjamin J Perry
# MIT License
# Copyright (c) 2022 Benjamin J Perry
# Version: 1.0
# Maintainer: Benjamin J Perry
# Email: [email protected]

configfile: "config/config.yaml"

import os

onstart:
print(f"Working directory: {os.getcwd()}")
print("TOOLS: ")
os.system('echo " bash: $(which bash)"')
os.system('echo " PYTHON: $(which python)"')
os.system('echo " CONDA: $(which conda)"')
os.system('echo " SNAKEMAKE: $(which snakemake)"')
os.system('echo " PYTHON VERSION: $(python --version)"')
os.system('echo " CONDA VERSION: $(conda --version)"')
print(f"Env TMPDIR={os.environ.get('TMPDIR', '<n/a>')}")

# Define samples from data directory using wildcards
SAMPLES, = glob_wildcards('fastq/{samples}.fastq.gz')
2 changes: 2 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TMPDIR
TMPDIR: /dataset/{Data Direcotry}/itmp #TODO: Update
1 change: 1 addition & 0 deletions fastq/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Location for fastq files

0 comments on commit 583030f

Please sign in to comment.