File: example6.sh

package info (click to toggle)
sra-sdk 2.9.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 31,724 kB
  • sloc: ansic: 182,592; cpp: 33,717; sh: 5,385; perl: 4,969; makefile: 4,030; python: 3,560; java: 2,363; yacc: 786; lex: 416; lisp: 77; xml: 54
file content (15 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
echo "----- count how many alignments we have in a given slice -----"

TOOL="vdb-sql"
ACC="SRR341578"
ID="NC_011748.1"
START="123456"
END="133456"
SELECT="select count() from VDB where REF_SEQ_ID='$ID' and REF_POS BETWEEN $START AND $END;"

#to prevent the shell from expanding '*' into filenames!
set -f

CMD="$TOOL :memory: -acc $ACC -tbl PRIM \"$SELECT\""
echo $CMD
eval $CMD