File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ if [ $# -ne 3 ]; then
5
5
echo " Create GenomeHash.{CDS,PRT,HMM}"
6
6
echo " #1: distance tree directory"
7
7
echo " #2: #1/../genome is large (0/1)"
8
- echo " #3: Create Genomehash.CDS (0/1) "
8
+ echo " #3: Suffix: HMM, PRT, CDS "
9
9
exit 1
10
10
fi
11
11
INC=$1
12
12
LARGE=$2
13
- CDS=$3
13
+ SUF=$3
14
+
14
15
15
16
16
17
TMP=$( mktemp )
@@ -19,31 +20,18 @@ TMP=$( mktemp )
19
20
GENOME=$INC /../genome
20
21
$THIS /../../check_file.sh $GENOME 0
21
22
22
-
23
- # $TMP
23
+ # $TMP, H
24
24
if [ $LARGE -eq 1 ]; then
25
25
$THIS /../../trav $GENOME " ls %d/%f" > $TMP
26
+ H=" %h/"
26
27
else
27
28
ls $GENOME > $TMP
29
+ H=" "
28
30
fi
29
31
wc -l $TMP
30
32
31
- function run
32
- {
33
- local SUF=$1
34
- H=" "
35
- if [ $LARGE -eq 1 ]; then
36
- H=" %h/"
37
- fi
38
- section " GenomeHash.$SUF "
39
- $THIS /../../trav $TMP " cat $GENOME /$H %f/%f.hash-$SUF | sed 's/^/%f\t/1'" > GenomeHash.$SUF
40
- }
41
-
42
- if [ $CDS -eq 1 ]; then
43
- run " CDS"
44
- fi
45
- run " PRT"
46
- run " HMM"
33
+ $THIS /../../trav $TMP " cat $GENOME /$H %f/%f.hash-$SUF | sed 's/^/%f\t/1'" > GenomeHash.$SUF
34
+
47
35
48
36
49
37
rm $TMP *
You can’t perform that action at this time.
0 commit comments