source: helix.f@ e40e335

Last change on this file since e40e335 was e40e335, checked in by baerbaer <baerbaer@…>, 16 years ago

Initial import to BerliOS corresponding to 3.0.4

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@1 26dc1dd8-5c4e-0410-9ffe-d298b4865968

  • Property mode set to 100644
File size: 1.9 KB
Line 
1c **************************************************************
2c
3c This file contains the subroutines: helix
4c
5c Copyright 2003 Frank Eisenmenger, U.H.E. Hansmann,
6c Shura Hayryan, Chin-Ku
7c Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
8c Jan H. Meinke, Sandipan Mohanty
9c
10c **************************************************************
11
12
13 subroutine helix(nhel,mhel,nbet,mbet)
14c---------------------------------------------------------------
15c
16c PURPOSE: simple identification of secondary structure content
17c
18c CALLS: none
19c
20c ---------------------------------------------------------------
21 include 'INCL.H'
22
23cf2py intent(out) nhel
24cf2py intent(out) mhel
25cf2py intent(out) nbet
26cf2py intent(out) mbet
27
28 logical lhel,lbet
29
30 parameter(hlim=30.0d0,philim=-70.0d0,psilim=-37.0d0)
31 parameter(hlim2=30.0d0,philim2=-150.0d0,psilim2=150.0d0)
32
33 nhel = 0 ! Number of helical residues
34 mhel = 0 ! Number of helical segments
35 nbet = 0 ! Number of sheet-like residues
36 mbet = 0 ! Number of sheet-like segments
37 lhel = .false.
38 lbet = .false.
39 do i=1,nvr
40 iv=idvr(i)
41 if(nmvr(iv).eq.'phi') then
42 xphi = vlvr(iv)*crd
43 xpsi = vlvr(idvr(i+1))*crd
44C Helicity
45 if(abs(xphi-philim).le.hlim) then
46 lbet=.false.
47 if(abs(xpsi-psilim).le.hlim) then
48 nhel = nhel+1
49 if(.not.lhel) mhel = mhel + 1
50 lhel = .true.
51 else
52 lhel = .false.
53 end if
54C Sheetness
55 else if(abs(xphi-philim2).le.hlim2) then
56 lhel = .false.
57 if(abs(xpsi-psilim2).le.hlim2) then
58 nbet = nbet + 1
59 if(.not.lbet) mbet = mbet + 1
60 lbet = .true.
61 else
62 lbet = .false.
63 end if
64 else
65 lhel=.false.
66 lbet=.false.
67 end if
68 end if
69 end do
70
71 return
72 end
73
Note: See TracBrowser for help on using the repository browser.