modules/pymol/api.py (408 lines of code) (raw):

#-------------------------------------------------------------------- from .importing import \ finish_object, \ load, \ loadall, \ load_brick, \ load_callback, \ load_cgo, \ load_coords, \ load_coordset, \ load_embedded, \ load_map, \ load_model, \ load_mtz, \ load_object, \ load_traj, \ load_raw, \ loadable, \ read_mmodstr, \ read_molstr, \ read_sdfstr, \ read_pdbstr, \ read_xplorstr, \ fetch, \ set_session, \ space #-------------------------------------------------------------------- from . import creating from .creating import \ copy, \ create, \ extract, \ fragment, \ group, \ gradient, \ isodot, \ isolevel, \ isomesh, \ isosurface, \ join_states, \ map_generate, \ map_new, \ pseudoatom, \ set_raw_alignment, \ slice_new, \ symexp, \ ramp_new, \ ramp_update, \ ungroup, \ volume #-------------------------------------------------------------------- from .colorramping import \ volume_ramp_new, \ volume_panel, \ volume_color #-------------------------------------------------------------------- from . import commanding from .commanding import \ async_, \ cls, \ delete, \ do, \ log, \ log_close, \ log_open, \ quit, \ resume, \ splash, \ reinitialize, \ sync #-------------------------------------------------------------------- from . import controlling from .controlling import \ button, \ config_mouse, \ mouse, \ mask, \ order, \ set_key, \ unmask, \ edit_mode #-------------------------------------------------------------------- from .querying import \ angle, \ auto_measure, \ centerofmass, \ count_atoms, \ count_frames, \ count_states, \ count_discrete, \ dist, \ dihedral, \ distance, \ export_dots, \ find_pairs, \ get_angle, \ get_area, \ get_assembly_ids, \ get_bonds, \ get_chains, \ get_collada, \ get_color_index, \ get_color_indices, \ get_object_color_index, \ get_object_list, \ get_object_settings,\ get_object_state, \ get_color_tuple, \ get_atom_coords, \ get_coords, \ get_coordset, \ get_dihedral, \ get_distance, \ get_drag_object_name, \ get_extent, \ get_idtf, \ get_modal_draw, \ get_model, \ get_movie_locked, \ get_movie_length, \ get_names, \ get_names_of_type, \ get_legal_name, \ get_unused_name, \ get_object_matrix, \ get_object_ttt, \ get_mtl_obj, \ get_phipsi, \ get_position, \ get_povray, \ get_raw_alignment, \ get_renderer, \ get_selection_state,\ get_symmetry, \ get_title, \ get_type, \ get_version, \ get_volume_field, \ get_volume_histogram, \ get_vrml, \ id_atom, \ identify, \ index, \ overlap, \ phi_psi #-------------------------------------------------------------------- from .selecting import \ deselect, \ indicate, \ select, \ select_list, \ pop #-------------------------------------------------------------------- from . import exporting from .exporting import \ copy_image, \ cache, \ export_coords, \ get_str, \ get_bytes, \ get_pdbstr, \ get_cifstr, \ get_session, \ get_fastastr, \ multifilesave, \ multifilenamegen, \ multisave, \ png, \ save #-------------------------------------------------------------------- from . import editing from .editing import \ alter, \ alter_list, \ alter_state, \ alphatoall, \ attach, \ bond, \ copy_to, \ cycle_valence, \ deprotect, \ drag, \ dss, \ edit, \ fix_chemistry, \ flag, \ fuse, \ get_editor_scheme, \ h_add, \ h_fill, \ h_fix, \ invert, \ iterate, \ iterate_state, \ map_set, \ map_set_border, \ map_double, \ map_halve, \ map_trim, \ matrix_copy, \ matrix_reset, \ mse2met, \ protect, \ push_undo, \ reference, \ redo, \ remove, \ remove_picked, \ rename, \ replace, \ rotate, \ sculpt_purge, \ sculpt_deactivate, \ sculpt_activate, \ sculpt_iterate, \ set_dihedral, \ set_name, \ set_geometry, \ set_object_color, \ set_object_ttt, \ set_state_order, \ set_symmetry, \ set_title, \ smooth, \ sort, \ split_chains, \ split_states, \ symmetry_copy, \ torsion, \ transform_object, \ transform_selection,\ translate, \ translate_atom, \ unbond, \ undo, \ uniquify, \ unpick, \ update, \ valence, \ vdw_fit from .editor import \ fab from .computing import \ clean matrix_transfer = matrix_copy # legacy #-------------------------------------------------------------------- from .externing import \ cd, \ ls, \ paste, \ pwd, \ system #-------------------------------------------------------------------- from . import wizarding from .wizarding import \ get_wizard, \ get_wizard_stack, \ refresh_wizard, \ replace_wizard, \ set_wizard, \ set_wizard_stack, \ dirty_wizard, \ wizard #-------------------------------------------------------------------- from .fitting import \ align, \ alignto, \ extra_fit, \ fit, \ super, \ rms, \ rms_cur, \ intra_fit, \ intra_rms, \ intra_rms_cur, \ cealign, \ pair_fit #-------------------------------------------------------------------- # ARE ALL OF THESE UNUSED AND/OR DEPRECATED (?) from .preset import \ simple, \ technical, \ pretty, \ publication #-------------------------------------------------------------------- from .morphing import \ morph #-------------------------------------------------------------------- from . import moving from .moving import \ madd, \ mcopy, \ mdelete, \ mmove, \ minsert, \ mset, \ mclear, \ mdo, \ mappend, \ mmatrix, \ mdump, \ accept, \ decline, \ mpng, \ mview, \ forward, \ backward, \ rewind, \ middle, \ ending, \ mplay, \ mtoggle, \ mstop, \ mpng, \ frame, \ get_movie_playing, \ set_frame, \ get_state, \ get_frame #-------------------------------------------------------------------- from . import viewing from .viewing import \ show_as, \ bg_color, \ bg_colour, \ cartoon, \ capture, \ clip, \ color, \ colour, \ del_colorection, \ dirty, \ disable, \ draw, \ enable, \ full_screen, \ get_colorection, \ get_view, \ get_viewport, \ get_vis, \ get_scene_list, \ hide, \ label, \ label2, \ load_png, \ meter_reset, \ move, \ orient, \ origin, \ center, \ ray, \ rebuild, \ recolor, \ recolour, \ refresh, \ reset, \ rock, \ scene, \ scene_order, \ scene_recall_message, \ set_color, \ set_colour, \ set_colorection, \ set_vis, \ set_view, \ show, \ spectrum, \ stereo, \ toggle, \ turn, \ view, \ viewport, \ window, \ zoom #-------------------------------------------------------------------- from . import setting from .setting import \ set, \ set_bond, \ get_bond, \ get, \ unset, \ unset_bond, \ unset_deep, \ get_setting_boolean, \ get_setting_int, \ get_setting_float, \ get_setting_float as get_setting_legacy, \ get_setting_tuple, \ get_setting_updates, \ get_setting_text #-------------------------------------------------------------------- from .parsing import \ run, \ spawn #-------------------------------------------------------------------- from . import helping from .helping import \ abort, \ api, \ show_help, \ help, \ help_setting, \ commands #-------------------------------------------------------------------- from .experimenting import \ check, \ dump, \ get_bond_print, \ fast_minimize, \ import_coords, \ mem, \ minimize, \ spheroid, \ focal_blur, \ callout, \ desaturate, \ test from .internal import \ download_chem_comp, \ file_read from .util import \ get_sasa_relative from .stereochemistry import \ assign_stereo #-------------------------------------------------------------------- #from m4x import \ # metaphorics #-------------------------------------------------------------------- # Modules which contain programs used explicity as "module.xxx" from . import util from . import movie from . import gui # dang! Python 2.6 will break PyMOL's "as" method. # Proposal: # 1. stick with Python <=2.5 for as long as possible # 2. convert API method to cmd.show_as() and leave "as" in the scripting langauge # 3. allow "show_as" in the scripting language globals()['as'] = show_as