File: checkUTR

package info (click to toggle)
augustus 3.5.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 777,052 kB
  • sloc: cpp: 80,066; perl: 21,491; python: 4,368; ansic: 1,244; makefile: 1,141; sh: 171; javascript: 32
file content (68 lines) | stat: -rwxr-xr-x 1,151 bytes parent folder | download | duplicates (5)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# check if all files for utr-training are there before train with  utr-modell

workDir=$1

# check if augustus.gff and augustus.gtf exist, make augustus.gtf if it's possible and necessary

cd ${workDir}/predictions/hints.E.1

if [ ! -f augustus.gff ] 

then 
	echo "Can not find the file ${workDir}/predictions/hints.E.1/augustus.gff"
	exit 1

elif [ ! -f augustus.gtf ]

then
	grep AUGUSTUS augustus.gff > augustus.gtf
fi

# check if ${workDir}/seq/genome.fa exists

cd ${workDir}

cd ${workDir}/seq

if [ ! -f genome.fa ]

then 
    echo "Can not find the file ${workDir}/seq/genome.fa."
    exit 2
fi

# check if cdna.f.psl exists

cd ${workDir}/cdna/alignments

if [ ! -f cdna.f.psl ]

then
	echo "Can not find the file ${workDir}/cdna/alignments/cdna.f.psl"
	exit 3
fi

# check if training.gb.train.test and training.gb.onlytrain exist

cd ${workDir}/training

if [ ! -f training.gb.train.test ]
	
then 
	echo "Can not find ${workDir}/training/training.gb.train.test"
	exit 4

elif [ ! -f training.gb.onlytrain ]

then
	echo "Can not find ${workDir}/training/training.gb.onlytrain"
	exit 5
fi

# if no error, exit with 6

exit 6