-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: addition of snakemake compatible format and linting (#104)
- Loading branch information
Showing
13 changed files
with
1,791 additions
and
1,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
# Required fields | ||
samples: "tests/input_files/samples.tsv" | ||
output_dir: "results" | ||
log_dir: "logs" | ||
cluster_log_dir: "logs/cluster" | ||
kallisto_indexes: "results/kallisto_indexes" | ||
salmon_indexes: "results/salmon_indexes" | ||
star_indexes: "results/star_indexes" | ||
alfa_indexes: "results/alfa_indexes" | ||
# Optional fields | ||
rule_config: "tests/input_files/rule_config.yaml" | ||
report_description: "No description provided by user" | ||
report_logo: "images/logo.128px.png" | ||
report_url: "https://zavolan.biozentrum.unibas.ch/" | ||
author_name: "NA" | ||
author_email: "NA" | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ channels: | |
dependencies: | ||
- bedtools=2.29.2 | ||
- biopython=1.76 | ||
- snakefmt | ||
- unzip=6.0 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# This script is currently exiting with non-zero status. | ||
# This is expected behaviour though, as several parameters can't be inferred from the test files. | ||
|
||
# Tear down test environment | ||
cleanup () { | ||
rc=$? | ||
cd $user_dir | ||
echo "Exit status: $rc" | ||
} | ||
trap cleanup EXIT | ||
|
||
# Set up test environment | ||
set -eo pipefail # ensures that script exits at first command that exits with non-zero status | ||
set -u # ensures that script exits when unset variables are used | ||
set -x # facilitates debugging by printing out executed commands | ||
user_dir=$PWD | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
cd $script_dir | ||
|
||
# Run tests | ||
snakefmt --check ../../workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# This script is currently exiting with non-zero status. | ||
# This is expected behaviour though, as several parameters can't be inferred from the test files. | ||
|
||
# Tear down test environment | ||
cleanup () { | ||
rc=$? | ||
cd $user_dir | ||
echo "Exit status: $rc" | ||
} | ||
trap cleanup EXIT | ||
|
||
# Set up test environment | ||
set -eo pipefail # ensures that script exits at first command that exits with non-zero status | ||
set -u # ensures that script exits when unset variables are used | ||
set -x # facilitates debugging by printing out executed commands | ||
user_dir=$PWD | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
cd $script_dir | ||
|
||
# Run tests | ||
snakemake \ | ||
--snakefile="../../workflow/Snakefile" \ | ||
--profile="../../profiles/local-singularity" \ | ||
--configfile="../input_files/config.yaml" \ | ||
--lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.