X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=files%2Fpbs8.csh;h=650f7f9d63e1ff01473b50afac80eb17210db993;hb=a2b1056ddd4ae89d0ba9ac2e7638ec28e103be45;hp=7f8f0becc037f9dfda6dd5d4797b2f10d5b6be35;hpb=81afcbe06c2b06f623c30db8f3e83c7fca106b97;p=django_unres.git diff --git a/files/pbs8.csh b/files/pbs8.csh index 7f8f0be..650f7f9 100755 --- a/files/pbs8.csh +++ b/files/pbs8.csh @@ -67,6 +67,21 @@ setenv CLUSTER_WHAM_BIN /users2/czarek/UNRES/git3_tmp/build/bin/cluster_wham-mul $MPIRUN -machinefile $PBS_NODEFILE -np 2 $CLUSTER_WHAM_BIN +if `awk '{cap=toupper($0); if (cap!=$0) {print 1;exit}}' file.seq` then +#no allatom conversion/refinementkx for proteins with D-aminoacids + ln -s file_wham_T*K_ave.pdb ave + sed -n '/ENERGY/,/ENDMDL/p' ave >tmp.pdb + setenv numstruc `grep ENERGY tmp.pdb|wc -l` + setenv allline `cat tmp.pdb|wc -l` + setenv onestruc `echo $allline "/" $numstruc| bc -l|sed 's/\.0*//'` + foreach i (2 4 6 8 10) + setenv headval `echo $i "*" $onestruc|bc -l` + setenv halfi `echo $i/2|bc` + head -n $headval tmp.pdb | tail -n $onestruc >MODEL${halfi}.pdb + end + rm ave tmp.pdb +else +# proteins with L-aminoacids only ln -s file_wham_T*K_ave.pdb ave ../files/cluster2allatom.sh ave rm ave @@ -75,6 +90,7 @@ rm ave foreach i (`seq 1 5`) ../files/refine.sh MODEL$i.pdb $ssbond end +endif /users2/local/pymol_1.6/pymol -c ../files/model.pml