Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0a57d30
Update reduce.py
anaome Dec 2, 2015
14a6a63
Create reduce_imc.py
anaome Dec 2, 2015
5e1308c
Create at2cg_imc.dat
anaome Dec 2, 2015
2eced9c
Update attract.py
anaome Dec 2, 2015
bb98154
Update attractrigidbody.h
anaome Dec 2, 2015
8291bd8
Create imcforcefield.cpp
anaome Dec 2, 2015
a49fb95
Create imcforcefield.h
anaome Dec 2, 2015
458a30b
Update setup.py
anaome Dec 2, 2015
c2050cd
Create ligandH.pdb
anaome Dec 2, 2015
386fe53
Create receptorH.pdb
anaome Dec 2, 2015
c5535f3
Create imc.par
anaome Dec 3, 2015
1d012b2
Create imcforcefield.pyx
anaome Dec 3, 2015
ea4fa9b
Create imc_lbfgs.pyx
anaome Dec 3, 2015
5013cd0
Update _ptools.pyx
anaome Dec 3, 2015
e25cfbd
Update imcforcefield.cpp
anaome Dec 3, 2015
d5f73c9
Delete imcforcefield.cpp
anaome Dec 3, 2015
1e41574
Create imcforcefield.cpp
anaome Dec 3, 2015
0db6823
Update imcforcefield.cpp
anaome Dec 4, 2015
d31c2b7
Update imcforcefield.cpp
anaome Dec 4, 2015
f0f8e3c
Update at2cg_imc.dat
anaome Dec 4, 2015
43e5dca
Update at2cg_imc.dat
anaome Dec 4, 2015
6d569e0
Update at2cg_imc.dat
anaome Dec 4, 2015
410f391
Update at2cg_imc.dat
anaome Dec 4, 2015
940aae9
Update imcforcefield.cpp
anaome Dec 7, 2015
ebb96db
Update attract.py
anaome Dec 17, 2015
154def5
Update attract.py
anaome Dec 17, 2015
193ce90
Update imc.par
anaome Dec 17, 2015
4d141d3
Delete imcforcefield.cpp
anaome Dec 17, 2015
517faaa
Create imcforcefield.cpp
anaome Dec 17, 2015
e9d8952
Create mag1.red
anaome Dec 17, 2015
15e9e93
Create mag2.red
anaome Dec 17, 2015
e98dddb
Create attract.inp
anaome Dec 17, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions PyAttract/attract.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def checkFile(name, comment):
def check_ffversion(reduced):
header = open(reduced, 'r').readline()
if not 'HEADER' in header:
sys.stderr.write("ERROR: reduced PDB file must contain a HEADER line specifying the chosen forcefield (scorpion, attract1, attract2)\n")
sys.stderr.write("ERROR: reduced PDB file must contain a HEADER line specifying the chosen forcefield (scorpion, attract1, attract2, imc)\n")
sys.exit(1)

#read cg format:
Expand Down Expand Up @@ -260,7 +260,11 @@ def check_ffversion(reduced):
'ff_class': AttractForceField2,
'minimizer_class': Lbfgs
},


'IMC': {'ff_file': 'imc.par',
'ff_class': ImcForceField,
'minimizer_class': ImcLbfgs
},
}


Expand Down Expand Up @@ -418,9 +422,9 @@ def check_ffversion(reduced):

#calculates true energy, and rmsd if possible
#with the new ligand position
forcefield=ff_specs['ff_class'](ff_specs['ff_file'], surreal(500))
forcefield=ff_specs['ff_class'](ff_specs['ff_file'], surreal(15))
print "%4s %6s %6s %13s %13s" %(" ","Trans", "Rot", "Ener", "RmsdCA_ref")
pl = AttractPairList(rec, ligand,surreal(500))
pl = AttractPairList(rec, ligand,surreal(15))
print "%-4s %6d %6d %13.7f %13s" %("==", transnb, rotnb, forcefield.nonbon8(rec,ligand,pl), str(rms))
output.PrintMatrix()

Expand Down
12 changes: 9 additions & 3 deletions PyAttract/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
parser = OptionParser(usage)

# --ff option: choice of forcefield
parser.add_option("--ff",type="str",dest="ffversion",help="choice of CG force field: attract1, attract2 or scorpion")
parser.add_option("--ff",type="str",dest="ffversion",help="choice of CG force field: attract1, attract2, scorpion, or imc")

# --cgopt option: choice of charge optimization with SCORPION
parser.add_option("--cgopt", dest="optimizecharges", action="store_true", default=False,
Expand Down Expand Up @@ -39,8 +39,8 @@

# define other parameter files
cmd_options=[]
if options.ffversion not in ["attract1","attract2","scorpion"]:
sys.stderr.write ("Error: please choose one of the following CG force field: attract1, attract2 or scorpion\n")
if options.ffversion not in ["attract1","attract2","scorpion","imc"]:
sys.stderr.write ("Error: please choose one of the following CG force field: attract1, attract2, scorpion, or imc\n")
sys.exit(1)
if options.warning:
if options.ffversion!="scorpion":
Expand Down Expand Up @@ -72,3 +72,9 @@
prgname = os.path.join(thispath, "reduce_attract2.py")

os.system(prgname + " %s"%" ".join(cmd_options))

if options.ffversion=="imc":
cmd_options.append(args[0])
prgname = os.path.join(thispath, "reduce_imc.py")

os.system(prgname + " %s"%" ".join(cmd_options))
469 changes: 469 additions & 0 deletions PyAttract/reduce_data/at2cg_imc.dat

Large diffs are not rendered by default.

615 changes: 615 additions & 0 deletions PyAttract/reduce_data/imc.par

Large diffs are not rendered by default.

Loading