Skip to content

Commit

Permalink
changed visualization file naming for chains feature to show that lig…
Browse files Browse the repository at this point in the history
… is a peptide
  • Loading branch information
Philipp Schake committed Dec 16, 2024
1 parent 54c26b3 commit 7569212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plip/visualization/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def visualize_in_pymol(plcomplex):
pdbid = plcomplex.pdbid
lig_members = plcomplex.lig_members
chain = plcomplex.chain
if config.PEPTIDES:
if config.PEPTIDES or config.CHAINS:
vis.ligname = 'PeptideChain%s' % plcomplex.chain
if config.INTRA is not None:
vis.ligname = 'Intra%s' % plcomplex.chain
Expand Down Expand Up @@ -100,7 +100,7 @@ def visualize_in_pymol(plcomplex):
cmd.hide('cartoon', '%sLines' % plcomplex.pdbid)
cmd.show('lines', '%sLines' % plcomplex.pdbid)

if config.PEPTIDES:
if config.PEPTIDES or config.CHAINS:
filename = "%s_PeptideChain%s" % (pdbid.upper(), plcomplex.chain)
if config.PYMOL:
vis.save_session(config.OUTPATH, override=filename)
Expand Down

0 comments on commit 7569212

Please sign in to comment.