Skip to content

Commit

Permalink
add test to lofreq call
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiWaldrant committed Feb 6, 2024
1 parent afee952 commit 9bdb3fa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lofreq/call/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

dir_in="${meta_resources_dir%/}/test_data"

echo "> Run lofreq call"
"$meta_executable" \
--input "$dir_in/a.bam" \
--input_bai "$dir_in/a.bai" \
--ref "$dir_in/genome.fasta" \
--output "output.vcf" \

echo ">> Checking output"
[ ! -f "output.vcf" ] && echo "Output file output.vcf does not exist" && exit 1

echo "> Test successful"
10 changes: 10 additions & 0 deletions src/lofreq/call/test_data/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# pear test data

# Test data was obtained from https://github.com/snakemake/snakemake-wrappers/tree/master/bio/lofreq/call/test/data

if [ ! -d /tmp/snakemake-wrappers ]; then
git clone --depth 1 --single-branch --branch master https://github.com/snakemake/snakemake-wrappers /tmp/snakemake-wrappers
fi

cp -r /tmp/snakemake-wrappers/bio/lofreq/call/test/data/* src/lofreq/call/test_data

0 comments on commit 9bdb3fa

Please sign in to comment.