nanome.api.structure.complex module

class Complex[source]

Bases: nanome._internal.structure.models._Complex, nanome.api.structure._deprecated.ComplexDeprecated, nanome.api.structure.base.Base

Represents a Complex that contains molecules.
add_molecule(molecule)[source]
Add a molecule to this complex
Parameters:molecule (Molecule) – Molecule to add to the chain
static align_origins(target_complex, *other_complexes)[source]
atoms
The list of atoms within this complex
bonds
The list of bonds within this complex
box_label
Represents the label on the box surrounding the complex
Type:str
boxed
Represents if this complex is boxed/bordered in Nanome.
Type:bool
chains
The list of chains within this complex
computing
convert_to_conformers(force_conformers=None)[source]
convert_to_frames()[source]
current_frame
Represents the current animation frame the complex is in.
Type:int
full_name
Represents the full name of the complex with its tags and name
Type:str
get_all_selected()[source]
get_complex_to_workspace_matrix()[source]
get_selected()[source]
get_workspace_to_complex_matrix()[source]
index_tag
io = <nanome.api.structure.io.complex_io.ComplexIO object>
locked
Represents if this complex is locked and unmovable in Nanome.
Type:bool
molecules
The list of molecules within this complex
name
Represents the name of the complex
Type:str
position
Position of the complex
Type:Vector3
register_complex_updated_callback(callback)[source]
register_selection_changed_callback(callback)[source]
remarks
remarks section of the complex file
Type:
class:dict
remove_molecule(molecule)[source]
Remove a molecule from this complex
Parameters:molecule (Molecule) – Molecule to remove from the chain
residues
The list of residues within this complex
rotation
Rotation of the complex
Type:Quaternion
set_all_selected(value)[source]
set_current_frame(value)[source]
set_surface_needs_redraw()[source]
split_tag
visible
Represents if this complex is visible in Nanome.
Type:bool