1 subroutine pdbout(etot,rmsd,tytul)
3 include 'COMMON.CONTROL'
5 include 'COMMON.INTERACT'
7 include 'COMMON.IOUNITS'
8 include 'COMMON.HEADER'
9 include 'COMMON.SBRIDGE'
12 if (refstr.or.pdbref) then
13 write (ipdb,'(3a,1pe15.5,a,0pf8.3)')
14 & 'REMARK ',tytul,' ENERGY ',etot,' RMS ',rmsd
16 write (ipdb,'(3a,1pe15.5)') 'REMARK ',tytul,' ENERGY ',etot
24 write (ipdb,10) iatom,restyp(iti),ires,(c(j,i),j=1,3)
25 if (.not. caonly .and. iti.ne.10) then
27 write (ipdb,20) iatom,restyp(iti),ires,(c(j,nres+i),j=1,3)
30 write (ipdb,'(a)') 'TER'
33 write (ipdb,30) ica(i),ica(i+1)
37 if (itype(i).eq.10) then
38 write (ipdb,30) ica(i),ica(i+1)
40 write (ipdb,30) ica(i),ica(i+1),ica(i)+1
43 write (ipdb,30) ica(i),ica(i)+1
45 if (.not. caonly .and. itype(nct).ne.10) then
46 write (ipdb,30) ica(nct),ica(nct)+1
49 write (ipdb,30) ica(ihpb(i))+1,ica(jhpb(i))+1
51 10 FORMAT ('ATOM',I7,' CA ',A3,I6,4X,3F8.3)
52 20 FORMAT ('ATOM',I7,' CB ',A3,I6,4X,3F8.3)
53 30 FORMAT ('CONECT',8I5)
56 c------------------------------------------------------------------------------
57 subroutine MOL2out(etot,tytul)
58 C Prints the Cartesian coordinates of the alpha-carbons in the Tripos mol2
61 include 'COMMON.CHAIN'
62 include 'COMMON.INTERACT'
63 include 'COMMON.NAMES'
64 include 'COMMON.IOUNITS'
65 include 'COMMON.HEADER'
66 include 'COMMON.SBRIDGE'
69 character*6 res_num,pom,ucase
75 write (imol2,'(a)') '#'
77 & '# Creating user name: unres'
78 write (imol2,'(2a)') '# Creation time: ',
80 write (imol2,'(/a)') '@<TRIPOS>MOLECULE'
81 write (imol2,'(a)') tytul
82 write (imol2,'(5i5)') nct-nnt+1,nct-nnt+nss,nct-nnt+1,0,0
83 write (imol2,'(a)') 'SMALL'
84 write (imol2,'(a)') 'USER_CHARGES'
85 write (imol2,'(a)') '@<TRIPOS>ATOM'
88 pom=ucase(restyp(itype(i)))
89 c res_num = pom(:3)//liczba(2:)
90 write (imol2,10) i-nnt+1,(c(j,i),j=1,3),i-nnt+1,pom,0.0
92 write (imol2,'(a)') '@<TRIPOS>BOND'
94 write (imol2,'(i5,2i6,i2)') i-nnt+1,i-nnt+1,i-nnt+2,1
97 write (imol2,'(i5,2i6,i2)') nct-nnt+i,ihpb(i),jhpb(i),1
99 write (imol2,'(a)') '@<TRIPOS>SUBSTRUCTURE'
101 write (liczba,'(i4)') i
102 pom = ucase(restyp(itype(i)))
103 c res_num = pom(:3)//liczba(2:)
104 write (imol2,30) i-nnt+1,pom,i-nnt+1,0
106 10 FORMAT (I7,' CA ',3F10.4,' C.3',I8,1X,A,F11.4,' ****')
107 30 FORMAT (I7,1x,A,I14,' RESIDUE',I13,' **** ****')
110 c------------------------------------------------------------------------
113 include 'COMMON.IOUNITS'
114 include 'COMMON.CHAIN'
116 include 'COMMON.LOCAL'
117 include 'COMMON.INTERACT'
118 include 'COMMON.NAMES'
120 write (iout,'(/a)') 'Geometry of the virtual chain.'
121 write (iout,'(6a)') ' Res ',' Theta',' Phi',
122 & ' Dsc',' Alpha',' Omega'
125 write (iout,'(a3,i4,5f10.3)') restyp(iti),i,rad2deg*theta(i),
126 & rad2deg*phi(i),dsc(iti),rad2deg*alph(i),rad2deg*omeg(i)
130 c---------------------------------------------------------------------------
131 subroutine briefout(it,klasa,ener,free,nss,ihpb,jhpb,plik)
133 include 'COMMON.IOUNITS'
134 include 'COMMON.CHAIN'
136 include 'COMMON.LOCAL'
137 include 'COMMON.INTERACT'
138 include 'COMMON.NAMES'
140 dimension ihpb(maxdim),jhpb(maxdim)
142 c print '(a,i5)',intname,igeom
144 open (igeom,file=plik,position='append')
146 open (igeom,file=plik,access='append')
148 open (igeom,file=plik,position='append')
151 WRITE (igeom,180) IT,ENER,free,NSS,(IHPB(I),JHPB(I),I=1,NSS)
153 WRITE (igeom,180) IT,ENER,free,NSS,(IHPB(I),JHPB(I),I=1,8)
155 WRITE (igeom,190) (IHPB(I),JHPB(I),I=9,NSS)
157 write (igeom,'(i10)') klasa
158 c IF (nvar.gt.nphi) WRITE (igeom,200) (RAD2DEG*THETA(I),I=3,NRES)
159 WRITE (igeom,200) (RAD2DEG*THETA(I),I=3,NRES)
160 WRITE (igeom,200) (RAD2DEG*PHI(I),I=4,NRES)
161 c if (nvar.gt.nphi+ntheta) then
162 write (igeom,200) (rad2deg*alph(i),i=2,nres-1)
163 write (igeom,200) (rad2deg*omeg(i),i=2,nres-1)
166 180 format (I5,F12.3,I2,8(1X,2I3,$))
167 190 format (3X,11(1X,2I3,$))
171 c---------------------------------------------------------------------------
172 subroutine cartout(igr,i,etot,free,rmsd,plik)
174 include 'sizesclu.dat'
175 include 'COMMON.IOUNITS'
176 include 'COMMON.CHAIN'
178 include 'COMMON.LOCAL'
179 include 'COMMON.INTERACT'
180 include 'COMMON.NAMES'
182 include 'COMMON.CLUSTER'
185 open (igeom,file=plik,access='append')
187 open (igeom,file=plik,position='append')
189 write (igeom,'(2e15.5,f10.5,$)') etot,free,rmsd
190 write (igeom,'(i4,$)')
191 & nss_all(i),(ihpb_all(j,i),jhpb_all(j,i),j=1,nss_all(i))
192 write (igeom,'(i10)') iscore(i)
193 write (igeom,'(8f10.5)')
194 & ((allcart(k,j,i),k=1,3),j=1,nres),
195 & ((allcart(k,j+nres,i),k=1,3),j=nnt,nct)