Skip to content

Commit 825d9dd

Browse files
committed
flex efp scripts and fragment database
1 parent eb7d467 commit 825d9dd

10 files changed

Lines changed: 74 additions & 3 deletions

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.0)
22
# project_VERSION* variables populated from project(... VERSION x.x.x) string
33
cmake_policy(SET CMP0048 NEW)
44

5-
project(libefp VERSION 1.5.0 LANGUAGES C)
6-
set(libefp_AUTHORS "Ilya A. Kaliman")
5+
project(libefp VERSION 1.7.2 LANGUAGES C)
6+
set(libefp_AUTHORS "Ilya A. Kaliman, Lori A. Burns, Dmitry Morozov, Carlos H. Borca, Yen (Terri) Bui, Yongbin Kim, Lyudmila V. Slipchenko")
77
set(libefp_DESCRIPTION "Parallel implementation of the Effective Fragment Potential method")
8-
set(libefp_URL "https://libefp.github.io/")
8+
set(libefp_URL "https://github.com/libefp2/libefp")
99
set(libefp_LICENSE "BSD 2-clause")
1010

1111
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Lori A. Burns
55
Dmitry Morozov
66
Carlos H. Borca
77
Yen (Terri) Bui
8+
Yongbin Kim
89
Lyudmila V. Slipchenko
910

fraglib/flex_efp_protein/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Amino acid parameters as published
2+
3+
aa_flex_params_631Gd.tar.gz : parameters in 6-31G(d) basis
4+
aa_flex_params_631Gd-631+G3df2p.tar.gz: parameters in a hybrid 6-31G(d) / 6-31-+G(3df,2p) basis (diffuse functions on H atoms only)
5+
aa_flex_params_631Gd-6311++G3df2p.tar.gz: parameters in a hybrid 6-31G(d) / 6-311++G(3df,2p) basis (standard hybrid basis)
6+
12.6 MB
Binary file not shown.
Binary file not shown.
7.82 MB
Binary file not shown.

tools/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
## Scripts and tools
22

33
Flexible_V5.py: flexible EFP script by Yongbin Kim
4+
5+
create_hybrid_basis.py: generates a hybrid-basis potential from two original potentials in different basis sets; first (small) basis: elec, elec screening; second (large) basis: pol, disp, exrep, by Yongbin Kim

tools/create_hybrid_basis.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import sys,os
2+
3+
def main(inputfile1,inputfile2):
4+
pwd = os.getcwd()+'/'
5+
ifile1 = open(inputfile1,'r') # for elec
6+
ifile2 = open(inputfile2,'r') # for rest
7+
reflines1 = ifile1.readlines()
8+
reflines2 = ifile2.readlines()
9+
10+
lineN = 0
11+
for obj in reflines1:
12+
line = obj.strip()
13+
lineN += 1
14+
if 'POLARIZABLE' in line and 'DYNAMIC' not in line:
15+
elec1 = lineN
16+
elif 'SCREEN2' in line:
17+
elec2 = lineN
18+
else:
19+
continue
20+
print(inputfile1,inputfile2)
21+
lineN = 0
22+
for obj in reflines2:
23+
line = obj.strip()
24+
lineN += 1
25+
if 'POLARIZABLE' in line and 'DYNAMIC' not in line:
26+
rest1 = lineN
27+
elif 'SCREEN2' in line:
28+
rest2 = lineN
29+
else:
30+
continue
31+
32+
lineN = 0
33+
parm1,parm3 = [],[]
34+
for obj in reflines1:
35+
lineN += 1
36+
if lineN < elec1:
37+
if lineN == 4:
38+
parm1.append('6-31G* elec, 6-31+xG(3df,2p) - else\n')
39+
else:
40+
parm1.append(obj)
41+
elif lineN >= elec2:
42+
parm3.append(obj)
43+
else:
44+
continue
45+
46+
lineN = 0
47+
parm2 = []
48+
for obj in reflines2:
49+
lineN += 1
50+
if lineN >= rest1 and lineN < rest2:
51+
parm2.append(obj)
52+
else:
53+
continue
54+
55+
56+
efparm = parm1+parm2+parm3
57+
output = inputfile1.split('/')[1]
58+
ofile = open(output,'w')
59+
for i in range(len(efparm)):
60+
ofile.write(efparm[i])
61+
62+
main(sys.argv[1],sys.argv[2])
File renamed without changes.

0 commit comments

Comments
 (0)