--- /dev/null
+re="(.+)_hmmscan$"
+for i in *
+do
+ if test -f "$i"
+ then
+ if [[ $i =~ $re ]]
+ then
+ name=${BASH_REMATCH[1]}
+ echo $name
+ ruby /home/zma/git/forester/forester/ruby/evoruby/exe/dsx.rb -d -e=1e-6 -l=50 ${name} ${name}_hmmscan
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+done
\ No newline at end of file
-re="(.+)\.fasta"
+re="(.+)_ni\.fasta$"
for i in *
do
if test -f "$i"
then
name=${BASH_REMATCH[1]}
echo $name
- /usr/local/bin/hmmscan --max --domtblout ${name}.hmmscan -E 20 --domE 20 --noali ~/DATA/PFAM/PFAM_30/Pfam-A.hmm ${name}.fasta
+ /usr/local/bin/hmmscan --max --domtblout ${name}_hmmscan -E 20 --domE 20 --noali ~/DATA/PFAM/PFAM_30/Pfam-A.hmm ${name}_ni.fasta
fi
fi
done
\ No newline at end of file
--- /dev/null
+re="(.+)_hmmscan$"
+for i in *
+do
+ if test -f "$i"
+ then
+ if [[ $i =~ $re ]]
+ then
+ name=${BASH_REMATCH[1]}
+ echo $name
+ ruby /home/zma/git/forester/forester/ruby/evoruby/exe/hsp.rb $i
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ ruby /home/zma/git/forester/forester/ruby/evoruby/exe/d2f.rb -o ${name}_hmmscan_domain_table
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+done
-re="(.+)_ni\.fasta"
+re="(.+)_ni\.fasta$"
+#re="(.+)\.fasta$"
cutoff=3
for i in *
do
echo $count
if [ $count -gt $cutoff ]
then
- /usr/local/bin/mafft --maxiterate 1000 --globalpair $i > ${name}_mafft_1000_g.aln
+ /usr/local/bin/mafft --maxiterate 1000 --localpair $i > ${name}_mafft_1000_l.fasta
rc=$?
if [[ $rc != 0 ]]
then
-re="(.+)_mafft_1000_g\.aln"
+re="(.+)_mafft_1000_l\.fasta"
for i in *
do
if test -f "$i"
then
name=${BASH_REMATCH[1]}
echo $name
- ruby /home/zma/git/forester/forester/ruby/evoruby/exe/msa_pro.rb -i=f -o=p -d -c -rr=0.5 -rsl=20 $i ${name}_mafft_1000_g_05_20
+ ruby /home/zma/git/forester/forester/ruby/evoruby/exe/msa_pro.rb -i=f -o=p -d -c -rr=0.5 -rsl=20 $i ${name}_mafft_1000_l_05_20
rc=$?
if [[ $rc != 0 ]]
then
-re="(.+)_mafft_1000_g_05_20"
+re="(.+)_mafft_1000_l_05_20"
for i in *
do
if test -f "$i"
-re="(.+)\.fasta"
+re="(.+)\.fasta$"
for i in *
do
if test -f "$i"