File: test_ann_scripts.sh

package info (click to toggle)
fasta3 36.3.8i.14-Nov-2020-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,016 kB
  • sloc: ansic: 77,269; perl: 10,677; python: 2,461; sh: 428; csh: 86; sql: 55; makefile: 40
file content (30 lines) | stat: -rwxr-xr-x 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

## a script to test the annotation scripts ann_*.pl
## acc_examples contains:
# P09488  -- new NCBI format
# sp|P09488 --more traditional format
# up|P09488|GSTM1_HUMAN
# SP:GSTM1_HUMAN P09488  ---ebi searches with accession
# SP:GSTM1_HUMAN -- ebi searches without accession
##

if [ ! "$1" = '' ]; then
   script_file=$1
else
   script_file=/usr/share/fasta3/scripts/ann_script_list
fi

if [ ! "$1" = '' ]; then
   ex_file=$1
else
   ex_file=/usr/share/fasta3/scripts/acc_examples
fi

while read -r script ; do
  while read -r acc_type ; do
      echo "${script}" "${acc_type}"
      "${script}" "${acc_type}"
  done < ${ex_file}
  echo '***DONE***'  "$script" "$(date)"
done < ${script_file}