schrodinger.application.hitexpander module

schrodinger.application.hitexpander.fp_types()

Returns a (sorted) list of the available fingerprint type names.

schrodinger.application.hitexpander.make_fp_generator_from_canvas_fpfile(filename)

Instantiates fingerprint generator from Canvas FP file.

Parameters:filename (string) – Canvas FP file name.
Returns:Fingerprint generator.
Return type:canvas.ChmFPOut32
schrodinger.application.hitexpander.is_phdb_path(path)
exception schrodinger.application.hitexpander.UnsupportedFormat

Bases: ValueError

__cause__

exception cause

__class__

alias of builtins.type

__context__

exception context

__delattr__

Implement delattr(self, name).

__dict__ = mappingproxy({'__module__': 'schrodinger.application.hitexpander', '__weakref__': <attribute '__weakref__' of 'UnsupportedFormat' objects>, '__doc__': None})
__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

Initialize self. See help(type(self)) for accurate signature.

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__module__ = 'schrodinger.application.hitexpander'
__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__setstate__()
__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__suppress_context__
__traceback__
__weakref__

list of weak references to the object (if defined)

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

schrodinger.application.hitexpander.count_ligands(path)
schrodinger.application.hitexpander.structure_file_reader(filename, logger=None, molids=None, keepsmiles=False)

Generator that yields (mol_id, st) tuples for the structures in the file identified by filename. The file can be in Maestro/SD/SMILES format.

Parameters:
  • filename – File name.
  • logger (logging.Logger) – Logger for warnings.
  • molids (iterable over integers) – IDs (1-based indices) of the desired structures. None means “all”.
  • keepsmiles (bool) – Should SMILES text be converted into schrodinger.structure.Structure instances?
schrodinger.application.hitexpander.phdb_mol_reader(path, molids=None)

Generator that yields (mol_id, st) tuples for the ligands in the Phase DB.

Parameters:
  • path (str) – Path to the Phase DB.
  • molids (iterable over integers) – IDs of the desired structures. None means “all”.
exception schrodinger.application.hitexpander.UnavailableFingerprintType

Bases: KeyError

__cause__

exception cause

__class__

alias of builtins.type

__context__

exception context

__delattr__

Implement delattr(self, name).

__dict__ = mappingproxy({'__module__': 'schrodinger.application.hitexpander', '__weakref__': <attribute '__weakref__' of 'UnavailableFingerprintType' objects>, '__doc__': None})
__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

Initialize self. See help(type(self)) for accurate signature.

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__module__ = 'schrodinger.application.hitexpander'
__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__setstate__()
__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__suppress_context__
__traceback__
__weakref__

list of weak references to the object (if defined)

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

schrodinger.application.hitexpander.phdb_fpreader(path, kind, molids=None)

Generator yielding (mol_id, fp) tuples for fingerprints of the desired kind for the molecules selected via molids (in order of sorted molids) from Phase DB pointed to by path.

Parameters:
  • path (str) – Path to Phase DB.
  • kind – Name of the desired fingerprints type.
  • molids (iterable over int) – Identificators of the molecules for which fingerprints are to be loaded.
schrodinger.application.hitexpander.multifpfile_fpreader(path, kind, molids=None)

Generator yielding (mol_id, fp) tuples for fingerprints of the desired kind for the molecules selected via molids (in order of sorted molids) from multi-fingerprint file pointed to by path.

Parameters:
  • path (str) – Path to the multi-fingerprint file.
  • kind – Name of the desired fingerprints type.
  • molids (int containment checkable or None) – Identificators of the molecules for which fingerprints are to be loaded.
schrodinger.application.hitexpander.structure_fpreader(path, kind, molids=None, logger=None)

Generator yielding (mol_id, fp) tuples for fingerprints of the desired kind for the molecules selected via molids (in order of sorted molids) from multi-fingerprint file pointed to by path.

Parameters:
  • path (str) – Path to the multi-fingerprint file.
  • kind – Name of the desired fingerprints type.
  • molids (int containment checkable or None) – Identificators of the molecules for which fingerprints are to be loaded.
schrodinger.application.hitexpander.canvasfp_fpreader(path, molids=None, logger=None)

Generator yielding (mol_id, fp) tuples for fingerprints of the molecules selected via molids (in order of sorted molids) from Canvas FP file pointed to by path.

Parameters:
  • path (str) – Path to the Canvas FP file.
  • molids (iterable over int) – Identificators of the molecules for which fingerprints are to be loaded.
schrodinger.application.hitexpander.check_fp_availability(path, kinds)

Check whether fingerprints of the desired type are available, raise exception if they are not.

Parameters:
  • path (str) – Name of the structure/multi-fingerprint file or Phase DB.
  • kinds – Iterable over desired fingerprint kinds.
class schrodinger.application.hitexpander.LogFormatter

Bases: object

format(rec)
__class__

alias of builtins.type

__delattr__

Implement delattr(self, name).

__dict__ = mappingproxy({'__module__': 'schrodinger.application.hitexpander', 'format': <function LogFormatter.format>, '__dict__': <attribute '__dict__' of 'LogFormatter' objects>, '__weakref__': <attribute '__weakref__' of 'LogFormatter' objects>, '__doc__': None})
__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

Initialize self. See help(type(self)) for accurate signature.

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__module__ = 'schrodinger.application.hitexpander'
__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

schrodinger.application.hitexpander.prog_for_argparse(scriptfile)

Returns strings like “$SCHRODINGER/run script.py”.

Parameters:scriptfile – Name of a script file.
Returns:String to be used to launch the script.
Return type:str