| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | #set -x |
| 4 | |
| 5 | NAME="reads from stdin" |
| 6 | BIN="ngmlr-"`grepscip-shell system . . grep. -o "set( NGM_VERSION_MAJOR [0-9]* )" CMakeLists.txt | cutscip-shell system . . cut. -d " " -f 3`"."`grepscip-shell system . . grep. -o "set( NGM_VERSION_MINOR [0-9]* )" CMakeLists.txt | cutscip-shell system . . cut. -d " " -f 3`"."`grepscip-shell system . . grep. -o "set( NGM_VERSION_BUILD [^ ]* )" CMakeLists.txt | grepscip-shell system . . grep. -v debug | cutscip-shell system . . cut. -d " " -f 3` |
| 7 | PARAMETER=" --skip-write -x pacbio --no-progress -t 4 " |
| 8 | |
| 9 | echoscip-shell system . . echo. "Test: $NAME ($BIN)" |
| 10 | |
| 11 | LEN=`catscip-shell system . . cat. test/data/test_6/read.fa.gz | gunzipscip-shell system . . gunzip. | bin/${BIN}/ngmlr $PARAMETER -r test/data/test_6/reference.fasta.gz 2> /dev/nullscip-shell filesystem . . `/dev/null`. | samtools view -Sc - 2> /dev/nullscip-shell filesystem . . `/dev/null`.` |
| 12 | |
| 13 | if [scip-shell system . . `[`. "$LEN" -eq "5" ] |
| 14 | then |
| 15 | echoscip-shell system . . echo. "Success" |
| 16 | else |
| 17 | exit 1 |
| 18 | fi |
| 19 |