do
if test -f "$i"
then
- if [[ $i =~ $re ]];
+ if [[ $i =~ $re ]]
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
- fi
+ fi
fi
done
\ No newline at end of file
--- /dev/null
+re="(.+)_ni\.fasta"
+cutoff=3
+for i in *
+do
+ if test -f "$i"
+ then
+ if [[ $i =~ $re ]]
+ then
+ name=${BASH_REMATCH[1]}
+ echo $name
+ count=$(grep -c '>' $i)
+ echo $count
+ if [ $count -gt $cutoff ]
+ then
+ /usr/local/bin/mafft --maxiterate 1000 --globalpair $i > ${name}_mafft_1000_g.aln
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+ fi
+done
\ No newline at end of file
--- /dev/null
+re="(.+)_mafft_1000_g\.aln"
+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/msa_pro.rb -i=f -o=p -d -c -rr=0.5 -rsl=20 $i ${name}_mafft_1000_g_05_20
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+done
\ No newline at end of file
--- /dev/null
+re="(.+)_mafft_1000_g_05_20"
+for i in *
+do
+ if test -f "$i"
+ then
+ if [[ $i =~ $re ]]
+ then
+ name=${BASH_REMATCH[1]}
+ echo $name
+ perl /home/zma/git/forester/forester/perl/phylo_pl.pl -B1000Wq@1S9 $i ${name}_mafft_1000_g_05_20_tree
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+done
\ No newline at end of file
--- /dev/null
+re="(.+)\.fasta"
+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/tap.rb -t $i
+ rc=$?
+ if [[ $rc != 0 ]]
+ then
+ exit $rc
+ fi
+ fi
+ fi
+done
\ No newline at end of file