-
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(htsinfer): support Conda execution
- Loading branch information
Showing
7 changed files
with
55 additions
and
4 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
File renamed without changes.
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,45 @@ | ||
#!/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. | ||
# Snakemake called with --keep-incomplete in order to keep the created samples table for inspection. | ||
|
||
# Tear down test environment | ||
cleanup () { | ||
rc=$? | ||
rm -rf .cache/ | ||
rm -rf .config/ | ||
rm -rf .fontconfig/ | ||
rm -rf .java/ | ||
rm -rf .snakemake/ | ||
rm -rf logs/ | ||
rm -rf results/ | ||
rm -rf Log.out | ||
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/rules/htsinfer.smk" \ | ||
--restart-times=0 \ | ||
--profile="../../profiles/local-conda" \ | ||
--config outdir="results" \ | ||
samples="../input_files/htsinfer_samples.tsv" \ | ||
samples_out="samples_htsinfer.tsv" \ | ||
log_dir="logs" \ | ||
cluster_log_dir="logs/cluster_log" \ | ||
--notemp \ | ||
--keep-incomplete | ||
|
||
# Check md5 sum of some output files | ||
md5sum --check "expected_output.md5" |
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,3 @@ | ||
1dc3f566f896b72f8f0ab8b3d60da364 results/samples_htsinfer.tsv | ||
ca3f9ef26821bfa061d3b7708823ebc3 results/htsinfer_SRR1.json | ||
62303261f8dd73124c2a5a54cd28e572 results/htsinfer_SRR2.json |
File renamed without changes.
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
channels: | ||
- bioconda | ||
dependencies: | ||
- htsinfer=0.10.0 | ||
- htsinfer=0.11.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