Skip to content

Commit

Permalink
small changes in calcLigandInteractions
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Oct 15, 2023
1 parent 27c55e3 commit 6715524
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2062,10 +2062,6 @@ def calcLigandInteractions(atoms, **kwargs):
writePDB(temp_pdb_file.name, atoms)
temp_pdb_file_name = temp_pdb_file.name

#pdb_name = atoms.getTitle()+'_sele.pdb'
#LOGGER.info("Writing PDB file with selection in the local directory.")
#writePDB(pdb_name, atoms)

try:
if atoms.hydrogen == None or atoms.hydrogen.numAtoms() < 30: # if there is no hydrogens in PDB structure
LOGGER.info("Lack of hydrogens in the structure. Use addMissingAtoms to add them.")
Expand All @@ -2084,8 +2080,7 @@ def calcLigandInteractions(atoms, **kwargs):
if 'ignore_ligs' in kwargs:
ignore_ligs = kwargs['ignore_ligs']
else:
ignore_ligs=['NAG','BMA','MAN']
LOGGER.info('Three molecules will be ignored from analysis: NAG, BMA and MAN.')
ignore_ligs=['MAN']

select = select+' and not (resname '+' '.join(ignore_ligs)+')'
ligand_select = atoms.select(select)
Expand Down

0 comments on commit 6715524

Please sign in to comment.