Skip to main content

layout_or_align

Function layout_or_align 

Source
pub fn layout_or_align(
    query: &LayoutMolecule,
    query_atom_indices: &[i32],
    reference: Option<&LayoutMolecule>,
    ref_atom_indices: Option<&[i32]>,
    atom_map: Option<&[(i32, i32)]>,
    peer_id: Option<&str>,
    align: Option<&AlignOpts>,
) -> Result<(LayoutResult, Option<AlignDebug>), CoordGenError>
Expand description

Free-layout query, or constrained-align onto reference when given.

atom_map is atom-index pairs (query_atom, ref_atom); dense indices are derived from query_atom_indices / ref_atom_indices (parallel to the LayoutMolecule atom tables). When omitted, MCS supplies the map.

align sets mode / timeout / min_atoms. mode: skip free-layouts. Omit align → house MCS timeout (not unbounded exact).