docking working version
[django_unres.git] / files / pbs8_new.csh
index ec056c1..cdd73f6 100755 (executable)
@@ -96,6 +96,9 @@ endif
 
 if ( `grep -c pdbref file.inp` ) then
  awk '{printf "%s%s%s\n",substr($0,0,21)," ",substr($0,23)}' plik.pdb > tmp.pdb
+ if ( -f "plik1ter.pdb" ) then
+  grep -v TER plik1ter.pdb | awk '{printf "%s%s%s\n",substr($0,0,21)," ",substr($0,23)}' > tmp.pdb
+ endif
  /users2/local/mmtsb/perl/convpdb.pl -renumber 1 -out generic tmp.pdb > plik1.pdb
  rm tmp.pdb