schrodinger.application.matsci.maestrocmds module¶
Common Maestro commands.
Copyright Schrodinger, LLC. All rights reserved.
- schrodinger.application.matsci.maestrocmds.get_colors(palette=None, seed=None, n_colors=10, normalized=False)¶
Return RGB color tuples.
- Parameters
palette (str) – if not a palette in PALETTES then this is the palette kwarg passed to seaborn.color_palette
seed (None or int) – if given randomize the RGB color tuples using the given seed
n_colors (int) – the number of colors to return
normalized (bool) – whether to normalize the RGB tuples
- Return type
list
- Returns
contains RGB color tuples
- schrodinger.application.matsci.maestrocmds.normalize_rgb_color(rgb)¶
Normalize the given color.
- Parameters
rgb (tuple) – an RGB triple of integers in [0, 255]
- Return type
tuple
- Returns
normalized RGB triple of floats in [0, 1]
- schrodinger.application.matsci.maestrocmds.get_atoms_asl(idxs)¶
Return the atoms ASL.
- Parameters
idxs (list(int)) – atom indices
- Return type
str
- Returns
the atoms ASL
- schrodinger.application.matsci.maestrocmds.execute_cmd(cmd)¶
Execute the Maestro command.
- Parameters
cmd (str) – the Maestro command
- schrodinger.application.matsci.maestrocmds.color_atoms(rgb, idxs)¶
Color atoms in the Maestro WS.
- Parameters
rgb (tuple) – an RGB triple of integers in [0, 255]
idxs (list(int)) – atom indices
- schrodinger.application.matsci.maestrocmds.color_atom_groups(all_idxs, rgbs=None)¶
Color groups of atoms in the Maestro WS.
- Parameters
all_idxs (list(list(int))) – groups of atom indices
rgbs (list(tuple) or None) – RGB triples of integers in [0, 255] for coloring the different groups of atoms, if None then some defaults colors are used
- schrodinger.application.matsci.maestrocmds.select_all_atoms()¶
Context manager to temporarily select all atoms in the Maestro WS.
- schrodinger.application.matsci.maestrocmds.select_atoms(index)¶
Select specified atoms in Maestro WS
- Parameters
index (list) – list of atom indexes
- schrodinger.application.matsci.maestrocmds.color_by_element()¶
Color all atoms in the Maestro WS by element.
- schrodinger.application.matsci.maestrocmds.set_ballnstick_repr(idxs)¶
Set the representation of atoms in the Maestro WS to ball-and-stick.
- Parameters
idxs (list(int)) – atom indices
- schrodinger.application.matsci.maestrocmds.set_included(entry_id)¶
Set the included entry to that of the given entry ID.
- Parameters
entry_id (str) – the entry ID