forked from combogenomics/regtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doOfs
executable file
·40 lines (31 loc) · 1.03 KB
/
doOfs
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
#!/bin/bash
# Launch OFS on a genome to predict the presence of operons
# Citation: http://bioinformatics.oxfordjournals.org/content/21/7/880.long
if [ "$#" -lt 1 ]; then
echo 'doOFS ORGANISM'
exit 65
fi
ORG=$1
mkdir $ORG
cd $ORG
cp ../near/all.faa .
cp ../near/all.ptt .
cp ../$ORG.faa .
cp ../$ORG.ptt .
cp ../src/* .
cat all.faa $ORG.faa > all-genomes.faa
cat all.ptt $ORG.ptt > all-genomes.ptt
formatdb -i all-genomes.faa
formatdb -i $ORG.faa
perl get_blast_hits.pl "$ORG" all-genomes.faa > all.blast
perl get_orthologs.pl all.blast $ORG.faa all-genomes.faa > all.orthologs
perl calc_bp_distance.pl all.orthologs all-genomes.ptt > all.bp_dist
perl bp_stats.pl all.bp_dist 0.7 > informants.species
perl filter_informants.pl informants.species all-genomes.faa all-genomes.ptt informants
formatdb -i informants.faa
perl cluster_finder.pl $ORG.faa informants.faa $ORG.ptt informants.ptt
perl operon_finder.pl $ORG.ptt query_clusters.dat
./op2tab $ORG"_operon_preds.dat" gi_2_loc.tab 0.5 > $ORG.tab
mv $ORG.tab ../
cd ..
rm -rf $ORG