Skip to content

Commit

Permalink
Keep TER statements when joining PDBs
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoukos committed Jul 12, 2017
1 parent 2261e53 commit 8221fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdb_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def _join_pdb(pdb_list):
with open(pdb_f, 'r') as handle:
for line in handle:
line = line.strip('\n')
if line.startswith('TER'):
pdb_data.append('TER')
continue
if coord_re.match(line):
pdb_data.append(line)
model_auids.add(auid(line))
Expand Down

0 comments on commit 8221fa1

Please sign in to comment.