BioSimSpace.Align.flexAlign

BioSimSpace.Align.flexAlign(molecule0, molecule1, mapping=None, fkcombu_exe=None, roi=None, property_map0={}, property_map1={})[source]

Flexibly align atoms in molecule0 to those in molecule1 using the mapping between matched atom indices.

Parameters:
  • molecule0 (Molecule) – The molecule to align.

  • molecule1 (Molecule) – The reference molecule.

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

  • fkcombu_exe (str) – Path to the fkcombu executable. If None is passed, then BioSimSpace will attempt to find fkcombu by searching your PATH.

  • roi (list) – The region of interest to align. Consists of a list of ROI residue indices.

  • 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.

Returns:

molecule – The aligned molecule.

Return type:

Molecule

Examples

Align molecule0 to molecule1 based on a precomputed mapping.

>>> import BioSimSpace as BSS
>>> molecule0 = BSS.Align.flexAlign(molecule0, molecule1, mapping)

Align molecule0 to molecule1. Since no mapping is passed one will be autogenerated using matchAtoms with default options.

>>> import BioSimSpace as BSS
>>> molecule0 = BSS.Align.flexAlign(molecule0, molecule1)

Align residue of interest from molecule0 to molecule1.

>>> import BioSimSpace as BSS
>>> molecule0 = BSS.Align.flexAlign(molecule0, molecule1, roi=[12])

Align multiple residues of interest from molecule0 to molecule1.

>>> import BioSimSpace as BSS
>>> molecule0 = BSS.Align.flexAlign(molecule0, molecule1, roi=[12,13])