Visualization_chemdraw package¶
Submodules¶
Visualization_chemdraw.cdxml_editor¶
-
class
Visualization_chemdraw.cdxml_editor.
CDXML_Editor
(cdxml_files_path=None, output_path=None, BP=None, BP_predicted=None)¶ Bases:
object
-
add_color
(fba_value)¶
-
add_colortable
()¶
-
add_product
(product, last_id)¶
-
add_reactants
(reactants, previous_reactions, last_id)¶
-
add_transition
(promiscuous_reactants, promiscuous_products, misc_products, reaction_proteins='', reaction_solvents='', reaction_catalysts='', reaction_SPRESI_info='')¶
-
append
(box, arrange='')¶
-
generate_file
()¶
-
get_cpd_cdxml
(compound, id_offset=0, color='5')¶
-
parse_cdxml
(compound)¶
-
set_FBA
(color_index)¶
-
set_output_label
(text_string, output, color)¶
-
set_products
(cdxml_products)¶
-
Visualization_chemdraw.cdxml_elements¶
-
class
Visualization_chemdraw.cdxml_elements.
ARC
(el_id='-1', x_0=0, y_0=0, color='3', size=18.75, head=False)¶ -
update_position
()¶
-
-
class
Visualization_chemdraw.cdxml_elements.
ARROW
(el_id='-1', x_0=0, y_0=0, color='3', width=150.0)¶ -
update_position
()¶
-
-
class
Visualization_chemdraw.cdxml_elements.
BOX
(width=0, height=0)¶ -
append
(element, arrange='', align='middle')¶ Append elements/boxes to this box
-
append_box
(box_element)¶
-
set_color
(new_color)¶
-
set_x
(new_x)¶
-
set_y
(new_y)¶
-
update_position
(dx=0, dy=0)¶
-
-
class
Visualization_chemdraw.cdxml_elements.
COMPOUND
(cpd_xml, label_xml, id_offset=0, color='0')¶ -
append
(xml_element, shift_down=False)¶ Append elements/boxes to this box
-
offset_ids
(id_offset)¶
-
scale
()¶
-
set_dimensions
()¶
-
-
class
Visualization_chemdraw.cdxml_elements.
ELEMENT
(el_id='-1', x_0=0, y_0=0, color='0')¶ -
append
(element)¶
-
dump
()¶
-
get_color
()¶
-
get_id
()¶
-
get_x
()¶
-
get_y
()¶
-
iter
(query)¶
-
set_color
(new_color)¶
-
set_id
(new_id)¶
-
set_x
(new_x)¶
-
set_y
(new_y)¶
-
update_position
()¶
-
Visualization_chemdraw.reaction_files¶
-
class
Visualization_chemdraw.reaction_files.
ReactionFiles
(output_path, DB, reactions, target, target_organism, incpds, figures, cdxmlfiles=True)¶ Bases:
object
-
alter_name_length
(path_to_figure, cpdname)¶ Shorten compound name if it is too long
-
generate_cdxml_files
(RP=None, fba_fluxes=None, show_rxn_info=True)¶ Produce cdxml files for each pathway
-
generate_output_folders
(folder)¶ Check to see if output folders are present if not set up new output folder
-
get_cdxml
(compounds, cdxml_cpds, promiscuous_cpds)¶ Get cdxml files for relevant compounds
-
get_target_name
()¶
-
order_of_paths
()¶ Ordered pathway with target as tree root
-