File: run-tests.functions

package info (click to toggle)
velvet 1.2.10%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 56,204 kB
  • sloc: ansic: 22,940; perl: 1,194; python: 295; sh: 125; makefile: 121
file content (36 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36

#-----------------------------------------------
# GLOBALS
#-----------------------------------------------

VH=../velveth
VG=../velvetg
K=31
SEQ="Sequences.$K"
ROADMAP="Roadmaps.$K"
FQL=read1.fq.gz
FQR=read2.fq.gz
FQI=reads.fq.gz
FAL=read1.fa.gz
FAR=read2.fa.gz
FAI=reads.fa.gz

#-----------------------------------------------
# FUNCTIONS
#-----------------------------------------------

function inform {
  # [Wed Mar 11 13:33:52 2009] 
  # TIMESTAMP=`date --iso-8601=seconds`
  TIMESTAMP=`date +"%a %b %d %X %Y"`
  echo "[$TIMESTAMP] $*" 1>&2
}

function problem {
  # [Wed Mar 11 13:33:52 2009] 
  # TIMESTAMP=`date --iso-8601=seconds`
  TIMESTAMP=`date +"%a %b %d %T %Y"`
  echo "[$TIMESTAMP] *ERROR*: $*" 1>&2
  exit 2
}