forked from dseeliger/pmx
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathtest_ffparser.py
More file actions
38 lines (31 loc) · 954 Bytes
/
test_ffparser.py
File metadata and controls
38 lines (31 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sys, os
from pmx.forcefield2 import ITPFile
def test_ffparser():
top = ITPFile('./protLig_benchmark/pde2/ligands_cgenff/lig_50181001/MOL.itp')
## for atom in top.atoms:
## atom.atomtypeB = 'DUM'
## atom.qB = 0
## atom.mB = atom.m
top.write('new.itp')
## from pmx.ffparser import *
## ## from pmx.library import _aacids_dic
## rtp = RTPParser( 'ffamber99sb.rtp')
## print rtp['ALA']
## for name, entry in rtp:
## print name, entry['atoms'][0]
## print 'XXX'
## for name, entry in rtp:
## print name, entry['atoms'][0]
## ala = rtp['ALA']
## print _aacids_dic
## for aa in _aacids_dic.values():
## try:
## del rtp[aa]
## except:
## pass
## rtp.add_entry( "ala", ala )
## print "ala" in rtp
#rtp.write(sys.stdout)
#print rtp["ALA"]['bonds']
#nb = NBParser("ffamber99sbnb.itp")
#print nb