Debian Codegraph @

test/test_2.sh

raw symbols SCIP
1 #!/bin/bash
2
3 NAME="simple read length test"
4 BIN="ngmlr-"`grep -o "set( NGM_VERSION_MAJOR [0-9]* )" CMakeLists.txt | cut -d " " -f 3`"."`grep -o "set( NGM_VERSION_MINOR [0-9]* )" CMakeLists.txt | cut -d " " -f 3`"."`grep -o "set( NGM_VERSION_BUILD [^ ]* )" CMakeLists.txt | grep -v debug | cut -d " " -f 3`
5 PARAMETER=" --skip-write "
6
7 echo "Test: $NAME ($BIN)"
8
9 bin/${BIN}/ngmlr $PARAMETER -r test/data/test_2/ref_chr21_20kb.fa -q test/data/test_2/reads_100_2200bp.fa 2> /dev/null | samtools view -Sb - 2> /dev/null | bedtools bamtobed > test/data/test_2/found.bed
10
11 diff test/data/test_2/expected.bed test/data/test_2/found.bed && echo "Success"
12
13 rm test/data/test_2/found.bed