Skip to content
Snippets Groups Projects
Commit 10b4c8be authored by tobias's avatar tobias
Browse files

fix selections in msms binding

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2669 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 972463fa
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ def _RunMSMS(command): ...@@ -135,7 +135,7 @@ def _RunMSMS(command):
# \return Touplet of lists for (SES, SAS) # \return Touplet of lists for (SES, SAS)
def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False, def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False,
no_hydrogens=False, no_hetatoms=False, no_waters=False, no_hydrogens=False, no_hetatoms=False, no_waters=False,
selection="", selection='',
msms_exe=None, msms_env=None, keep_files=False, msms_exe=None, msms_env=None, keep_files=False,
attach_asa=None, attach_esa=None): attach_asa=None, attach_esa=None):
import re import re
...@@ -147,17 +147,17 @@ def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False, ...@@ -147,17 +147,17 @@ def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False,
if no_hydrogens: if no_hydrogens:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="ele!=H" selection+="ele!=H"
if no_hetatoms: if no_hetatoms:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="ishetatm=False" selection+="ishetatm=False"
if no_waters: if no_waters:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="rname!=HOH" selection+="rname!=HOH"
# setup files for msms # setup files for msms
(msms_data_dir, msms_data_file)=_SetupFiles(entity, selection) (msms_data_dir, msms_data_file)=_SetupFiles(entity, selection)
...@@ -219,7 +219,7 @@ def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False, ...@@ -219,7 +219,7 @@ def CalculateSurfaceArea(entity, density=1.0, radius=1.5, all_surf=False,
# \return list of OST SurfaceHandle objects # \return list of OST SurfaceHandle objects
def CalculateSurface(entity, density=1.0, radius=1.5, all_surf=False, def CalculateSurface(entity, density=1.0, radius=1.5, all_surf=False,
no_hydrogens=False, no_hetatoms=False, no_waters=False, no_hydrogens=False, no_hetatoms=False, no_waters=False,
selection="", selection='',
msms_exe=None, msms_env=None, keep_files=False): msms_exe=None, msms_env=None, keep_files=False):
import os import os
...@@ -232,20 +232,19 @@ def CalculateSurface(entity, density=1.0, radius=1.5, all_surf=False, ...@@ -232,20 +232,19 @@ def CalculateSurface(entity, density=1.0, radius=1.5, all_surf=False,
if no_hydrogens: if no_hydrogens:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="ele!=H" selection+="ele!=H"
if no_hetatoms: if no_hetatoms:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="ishetatm=False" selection+="ishetatm=False"
if no_waters: if no_waters:
if selection!='': if selection!='':
selection+=" and " selection+=" and "
selection="rname!=HOH" selection+="rname!=HOH"
# setup files for msms # setup files for msms
(msms_data_dir, msms_data_file)=_SetupFiles(entity, selection) (msms_data_dir, msms_data_file)=_SetupFiles(entity, selection)
# set command line # set command line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment