polish: try to make current masce multiple threads
This commit is contained in:
parent
d06242d91f
commit
6d3dde8c11
1 changed files with 7 additions and 1 deletions
|
@ -250,12 +250,18 @@ if [ "$ARG_F" = "all" ] || [ "$ARG_F" = "align" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
current_thread=0
|
||||
mkdir -p $DirAlign
|
||||
mkdir -p $DirAlign/AA && mkdir -p $DirAlign/NT
|
||||
cd $DirMerge
|
||||
for (( i=0; i<$length_gn; i++ ))
|
||||
do
|
||||
java -jar $PathMacse -prog alignSequences -seq ${genes[$i]}.fasta -out_AA ../$DirAlign/AA/${genes[$i]}.fasta -out_NT ../$DirAlign/NT/${genes[$i]}.fasta
|
||||
java -jar $PathMacse -prog alignSequences -seq ${genes[$i]}.fasta -out_AA ../$DirAlign/AA/${genes[$i]}.fasta -out_NT ../$DirAlign/NT/${genes[$i]}.fasta &
|
||||
((current_thread++))
|
||||
if [ $current_thread -eq $ARG_T ]; then
|
||||
wait
|
||||
current_thread=0
|
||||
fi
|
||||
done
|
||||
cd -
|
||||
|
||||
|
|
Loading…
Reference in a new issue