schrodinger.livedesign.registration module

Control the registration of entities in LiveDesign.

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.livedesign.registration.RegistrationData(serialized_rdmol, entity_class, deduplication_hash, display_string, input_string, input_property_data, computed_data, child_data, to_deprecate_sdf, to_deprecate_no_stereo_hash)

Bases: NamedTuple

serialized_rdmol: str

Alias for field number 0

entity_class: EntityClass

Alias for field number 1

deduplication_hash: str

Alias for field number 2

display_string: str

Alias for field number 3

input_string: Optional[str]

Alias for field number 4

input_property_data: Optional[Dict]

Alias for field number 5

computed_data: Optional[Dict]

Alias for field number 6

child_data: Optional[Dict]

Alias for field number 7

to_deprecate_sdf: Optional[str]

Alias for field number 8

to_deprecate_no_stereo_hash: Optional[str]

Alias for field number 9

class schrodinger.livedesign.registration.RegistrationOptions(preprocessor_options: ~schrodinger.livedesign.preprocessor.PreprocessorOptions = PreprocessorOptions(MAX_NUM_ATOMS=None, STRICT=True, KEEP_ONLY_LARGEST_STRUCTURE=True, STRIP_SALTS=None, NEUTRALIZE=True, TRANSFORMATIONS=('[#7+0;v5:1]=[#8+0:2]>>[#7+:1]-[#8-:2]', '[#6:3][P+:1]([#6:4])([#6:5])[#6-:2]>>[#6:3][P-0:1]([#6:4])([#6:5])=[#6+0:2]', '[#6:3][P-:1]([#6:4])([#6:5])[#6+:2]>>[#6:3][P-0:1]([#6:4])([#6:5])=[#6+0:2]', '[#6:3][S+:1]([#6:4])-[#8-:2]>>[#6:3][S;X3+0:1]([#6:4])=[#8-0:2]', '[#6:3][P+:1]([#8;X2:4])([#8;X2:5])[#8-:2]>>[#6:3][P+0:1]([#8:4])([#8:5])=[#8-0:2]', '[#6:3][S+:1]([#6:4])([#8-:2])=[O:5]>>[#6:3][S+0:1]([#6:4])(=[#8-0:2])=[O:5]', '[#7;A;X2-:1][N;X2+:2]#[N;X1:3]>>[#7-0:1]=[N+:2]=[#7-:3]', '[#6;X3-:1][N;X2+:2]#[N;X1:3]>>[#6-0;A:1]=[N+:2]=[#7-:3]'), CHOOSE_CANONICAL_TAUTOMER=False, RESOLVE_AMBIGUOUS_TAUTOMERS=False, CHIRAL_FLAG_0_MEANING=<ChiralFlag0Meaning.UNGROUPED_ARE_ABSOLUTE: 1>, STRIP_AND_GROUPS_ON_SINGLE_ATOM=False, PRESERVE_ENHANCED_STEREO_GROUP_IDS=False, REMOVE_PROPERTIES=False, GENERATE_COORDINATES=<GenerateCoordinates.FULL_ALIGNED: 3>, EXPLICIT_HYDROGENS=<ExplicitHydrogens.REMOVE_ALL: 1>, CLEAR_INVALID_WEDGE_BONDS=True, WEDGE_TWO_BONDS_AROUND_CHIRAL_ATOMS=False), hash_scheme: ~rdkit.Chem.RegistrationHash.HashScheme = HashScheme.ALL_LAYERS, data_field_names: ~typing.Optional[~typing.Iterable[str]] = None, fasta_single_entity_mapping: ~typing.Optional[~typing.Dict] = None)

Bases: NamedTuple

Options controling Registration in LiveDesign.

Deduplication is a combination of “preprocessing” and “hashing”

preprocessor_options: PreprocessorOptions

Alias for field number 0

hash_scheme: HashScheme

Alias for field number 1

data_field_names: Optional[Iterable[str]]

Alias for field number 2

fasta_single_entity_mapping: Optional[Dict]

Alias for field number 3

schrodinger.livedesign.registration.get_registration_data(input_data: str, input_format: Format, options: RegistrationOptions) Iterator[RegistrationData]

Runs through the registration pipeline for the compound provided in the input data, which includes the preprocessor and canonicalization.

Parameters:
  • data – input text string to be deserialized into RDKit mols

  • options – registration options

schrodinger.livedesign.registration.to_binary(mol: Mol) str
Parameters:

mol – rdkit mol

Returns:

base64 encoded binary string of the mol