Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sjackso committed Jul 30, 2019
2 parents dab9547 + 0460f2f commit c0568a0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/pdbgen/pdbgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,7 @@ def pdbgen(filename,abtype,natype,inputdir,outputdir,log):
# Check if the base is 5'-end
if baseup == -1:
# Multi-model PDB starts new model here
f = open(outputdir + filename + '-multimodel.pdb', 'a')
f.write('MODEL' + '{0:>9s}'.format(str(chainnum + 1)) + '\n')
f.close()
fmm.write('MODEL' + '{0:>9s}'.format(str(chainnum + 1)) + '\n')

#print sslength, sslast, baseid

Expand Down Expand Up @@ -1446,9 +1444,16 @@ def pdbgen(filename,abtype,natype,inputdir,outputdir,log):
# Iterate residue indexing
resnum += 1
if basedown == -1:

# Standard PDB end chain
if numchains <= 63:
fpdb.write('TER\n')

# Chain segment PDB end chain
fseg.write('TER\n')

# Multi-model PDB ends model here
fmm.write('ENDMDL\n')
fmm.write('TER\nENDMDL\n')

# Iterate chainnum and return mmatomnum to 1
chainnum += 1
Expand Down

0 comments on commit c0568a0

Please sign in to comment.