BioSimSpace.Convert.toRDKit

BioSimSpace.Convert.toRDKit(obj, force_stereo_inference=False, property_map={})[source]

Convert an object to RDKit format.

Parameters:
  • obj – The input object to convert.

  • bool (force_stereo_inference) – Whether to force inference of stereochemistry, overriding any stereochemistry present in the input object. This is useful when the object has been loaded from a file with invalid stereochemistry.

  • property_map (dict) – A dictionary that maps system “properties” to their user defined values. This allows the user to refer to properties with their own naming scheme, e.g. { “charge” : “my-charge” }

Returns:

The object in OpenMM format.

Return type:

converted_obj