Skip to content

Commit

Permalink
WIP add indelqual test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiWaldrant committed Feb 6, 2024
1 parent 67192b6 commit 842b0e9
Show file tree
Hide file tree
Showing 5 changed files with 667,609 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/lofreq/indelqual/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -e

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

echo "> Run lofreq indelqual uniform"
"$meta_executable" \
--input "$dir_in/a.bam" \
-u 15 \
--out "uniform.bam" \

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

echo ">> Check if output is empty"
[ ! -s "out.bam" ] && echo "Output file out.bam is empty" && exit 1

echo "> run lofreq indelqual dindel"
"$meta_executable" \
--input "$dir_in/a.bam" \
--ref "$dir_in/hg38_chr21.fa" \
--dindel \
--out "dindel.bam"

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

echo ">> Check if output is empty"
[ ! -s "dindel.bam" ] && echo "Output file dindel.bam is empty" && exit 1


echo "> Test successful"
Loading

0 comments on commit 842b0e9

Please sign in to comment.