BioSimSpace.Align.viewMapping

BioSimSpace.Align.viewMapping(molecule0, molecule1, mapping=None, roi=None, pixels=300, property_map0={}, property_map1={}, **kwargs)[source]

Visualise the mapping between molecule0 and molecule1. This draws a 2D depiction of both molecules with the mapped atoms highlighted in green. Labels specify the indices of the atoms, along with the indices of the atoms to which they map in the other molecule.

Parameters:
  • molecule0 (Molecule) – The first molecule.

  • molecule1 (Molecule) – The second molecule.

  • mapping (dict) – A dictionary mapping atoms in molecule0 to those in molecule1.

  • roi (int) – The region of interest to highlight.

  • pixels (int) – The size in pixels of the 2D drawing.

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

  • property_map1 (dict) – A dictionary that maps “properties” in molecule1 to their user defined values.

  • show_adjacent_residues (bool, optional default=False) – If set to True, will show neighouring residues to the ROI region.