Beispiel #1
0
 def test6(self):
     ''' output formatting test 3'''
     ln1 = 'ATOM   7016  CB  SER A1449     -35.964 -34.300 -27.433  1.00100.34      A    C'
     ln2 = 'ATOM      1  CB  SER A1449     -35.964 -34.300 -27.433  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'], a['resSeq'], a['x'], a['y'], a['z'] )
     self.assert_( oln == ln2 )
Beispiel #2
0
 def test5(self):
     ''' output formatting test 2'''
     ln1 = 'ATOM   7838  N   LEU A1000     -31.768 -60.286 -16.708  1.00103.83      A    N\n'
     ln2 = 'ATOM      1  N   LEU A1000     -31.768 -60.286 -16.708  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'], a['resSeq'], a['x'], a['y'], a['z'] )
     self.assert_( oln == ln2 )
Beispiel #3
0
 def test4(self):
     ''' output formatting test 1'''
     ln1 = 'ATOM  18027  CA  VAL I  43      32.664-109.147  -0.440  1.00139.76      I    C\n'
     ln2 = 'ATOM      1  CA  VAL I  43      32.664-109.147  -0.440  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'], a['resSeq'], a['x'], a['y'], a['z'] )
     self.assert_( oln == ln2 )
Beispiel #4
0
 def test6(self):
     ''' output formatting test 3'''
     ln1 = 'ATOM   7016  CB  SER A1449     -35.964 -34.300 -27.433  1.00100.34      A    C'
     ln2 = 'ATOM      1  CB  SER A1449     -35.964 -34.300 -27.433  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'],
                                  a['resSeq'], a['x'], a['y'], a['z'])
     self.assert_(oln == ln2)
Beispiel #5
0
 def test5(self):
     ''' output formatting test 2'''
     ln1 = 'ATOM   7838  N   LEU A1000     -31.768 -60.286 -16.708  1.00103.83      A    N\n'
     ln2 = 'ATOM      1  N   LEU A1000     -31.768 -60.286 -16.708  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'],
                                  a['resSeq'], a['x'], a['y'], a['z'])
     self.assert_(oln == ln2)
Beispiel #6
0
 def test4(self):
     ''' output formatting test 1'''
     ln1 = 'ATOM  18027  CA  VAL I  43      32.664-109.147  -0.440  1.00139.76      I    C\n'
     ln2 = 'ATOM      1  CA  VAL I  43      32.664-109.147  -0.440  1.00 23.42\n'
     a = parse_pdb_atom_line(ln1)
     oln = generate_pdb_atom_line(1, a['name'], a['resName'], a['chainID'],
                                  a['resSeq'], a['x'], a['y'], a['z'])
     self.assert_(oln == ln2)