Package schrodinger :: Package application :: Package phase :: Package packages :: Module phase_convert_MOE :: Class PhpMOEConverter
[hide private]
[frames] | no frames]

Class PhpMOEConverter

object --+
         |
        PhpMOEConverter

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
(PhpHypoAdaptor, str)
createPhaseHypothesis(self, ph4_file)
Reads a MOE pharmacophore file, creating a Phase hypothesis from relevant information.
 
_readMOEFile(self, ph4_file)
Reads a MOE pharmacophore file, returning feature data as list of pharmacophore site data organized by header indexed dictionaries.
 
_formInputData(self, count, headers, input_list)
Creates a dictionary from MOE ph4 data, supplied as a number of entries, headers with header types, and a list of all input values in order.
 
_castMOEType(self, value, MOE_type)
Casts raw MOE pharmacophore strings.
 
_extractFeatures(self, feature_data)
Extracts feature data from raw data dictionary read from MOE file into Feature namedtuples.
 
_createFragmentLigand(self, features)
Creates reference CT from fragments estimated from Feature namedtuples
 
_createPhpDeltaHypo(self, features)
Creates site tolerance PhpDeltaHypo data from Feature namedtuples
 
_createPhpFeatureRules(self, features)
Creates site feature permitted and prohibitted rules PhpFeatureRules from Feature namedtuples

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

createPhaseHypothesis(self, ph4_file)

 

Reads a MOE pharmacophore file, creating a Phase hypothesis from relevant information.

Parameters:
  • ph4_file (str) - path to MOE .ph4 file to read
Returns: (PhpHypoAdaptor, str)
tuple containing the Phase hypothesis adapted from the MOE input file, and a string with any conversion warnings

_readMOEFile(self, ph4_file)

 

Reads a MOE pharmacophore file, returning feature data as list of pharmacophore site data organized by header indexed dictionaries.

Parameters:
  • ph4_file (str) - path to MOE .ph4 file to read

    @rtype : list of dict

Returns:
list of feature data dictionaries

_formInputData(self, count, headers, input_list)

 

Creates a dictionary from MOE ph4 data, supplied as a number of entries, headers with header types, and a list of all input values in order.

Parameters:
  • count (int) - number of entries to create
  • headers (list of tuples) - (header, header type) pairs
  • input_list (list of str) - list of all inputs in a given section of MOE file

    @rtype : list of dict

Returns:
list of dictionaries containing cast data indexed by header

_castMOEType(self, value, MOE_type)

 

Casts raw MOE pharmacophore strings.

Parameters:
  • value (str) - value read from MOE text
  • MOE_type (str) - value type (tt, t, r, i, ix)
Returns:
value cast to corresponding type (str, int, float, hex)

_extractFeatures(self, feature_data)

 

Extracts feature data from raw data dictionary read from MOE file into Feature namedtuples.

Parameters:
  • feature_data (list of dict) - list of MOE data dictionaries

    @rtype : list of Feature

Returns:
list of Feature data, sorted by Phase feature type character

_createFragmentLigand(self, features)

 

Creates reference CT from fragments estimated from Feature namedtuples

@rtype : list of Feature

Returns:
list of Feature data

@rtype : MM_Index

_createPhpDeltaHypo(self, features)

 

Creates site tolerance PhpDeltaHypo data from Feature namedtuples

@rtype : list of Feature

Returns:
list of Feature data

@rtype : PhpDeltaHypo

_createPhpFeatureRules(self, features)

 

Creates site feature permitted and prohibitted rules PhpFeatureRules from Feature namedtuples

@rtype : list of Feature

Returns:
list of Feature data

@rtype : PhpFeatureRules