BioSANS2020.BioSANS
¶
This module is the BioSANS module
The purpose of this module is to provide a graphical user interface and to facilitate the transfer of information from BioSANS topology file to other modules.
The following are the list of functions in this module
load_data
show_file_dir
create_file
extract_ode
sbml_to_topo2
save_file
runpy_file
run_ssl
load_data2
tload_data2
delete_this
canvas_update_widgets
load_image
eval2
dict_trans
convert
range_trans
range_prep
mrun_propagation
tprocess
analysis_case
plot_traj_d2
param_set
Module Contents¶
Functions¶
|
This fuction reads topology file and display the contents in a |
|
This function opens the current working directory |
|
This function creates a temporary file in a temporary directory |
|
This function extracts topology from ODE file format |
|
This function helps in the conversion of SBML files to BioSANS |
This function saves the content of the last opened text area into |
|
This module write the contents of the text area into a python |
|
|
This function initiates BioSSL or the BioSABS structured |
|
This function loads data for numerical processing or for plotting |
|
This function starts a thread that handles loading data. |
|
This function delete an object in the canvas |
|
This function rearranged the elements in the canvas. |
|
This function load image into a canvas and display in BioSANS. |
|
This function evaluates expression |
|
This function creates a dictionary from a list assignment |
|
This function converts a variable into con data type. |
|
This function converts the x_1 comma concatenated string into a |
|
This function process some string input and converts them to a |
|
Ths function grabs the values from defs2 whcih serves as the set |
|
This function creates a thread and sed defs to the |
|
This function redirects input to the corresponding numerical or |
|
This function plot the trajectory data stored as current data. |
|
This function returns the components name with a check from el_1 |
|
This function is another plotting function. |
|
This function opens the parameter setting dialof box and grab the |
Attributes¶
- BioSANS2020.BioSANS.TEMPORARY_FOLDER¶
- BioSANS2020.BioSANS.TOP¶
- BioSANS2020.BioSANS.HEADER¶
- BioSANS2020.BioSANS.FRAME¶
- BioSANS2020.BioSANS.FOOTER¶
- BioSANS2020.BioSANS.FILE_NAME¶
- BioSANS2020.BioSANS.load_data(itups)¶
This fuction reads topology file and display the contents in a text area.
- Args:
itups (tuple): (canvas, scroll_x, scroll_y)
- BioSANS2020.BioSANS.show_file_dir(path)¶
This function opens the current working directory
- Args:
path (str): directory path
- BioSANS2020.BioSANS.create_file(itups, ftype)¶
This function creates a temporary file in a temporary directory where new topology / files can be placed.
- Args:
itups (tuple): (canvas, scroll_x, scroll_y) ftype (int): 1 for BioSANS topology file, 2 for ODE file
- BioSANS2020.BioSANS.extract_ode(itups)¶
This function extracts topology from ODE file format
- Args:
itups (tuple): (canvas, scroll_x, scroll_y)
- BioSANS2020.BioSANS.sbml_to_topo2(tocon, itups)¶
This function helps in the conversion of SBML files to BioSANS topology files.
- Args:
tocon (str): sbml file name to convert itups (tuple): (canvas, scroll_x, scroll_y)
- BioSANS2020.BioSANS.save_file()¶
This function saves the content of the last opened text area into a file.
- BioSANS2020.BioSANS.runpy_file()¶
This module write the contents of the text area into a python file and run the file as a python script.
- BioSANS2020.BioSANS.run_ssl()¶
This function initiates BioSSL or the BioSABS structured simulation language.
- BioSANS2020.BioSANS.load_data2(plot=False)¶
This function loads data for numerical processing or for plotting
- Args:
plot (bool, optional): if True, loaded trajectory is plotted. Defaults to False.
- BioSANS2020.BioSANS.tload_data2(plot=False)¶
This function starts a thread that handles loading data.
- Args:
plot (bool, optional): if True, loaded trajectory is plotted. Defaults to False.
- BioSANS2020.BioSANS.delete_this(frame, canvas)¶
This function delete an object in the canvas
- Args:
frame (tkinter.Frame): frame or other objects canvas (tkinter.Canvas): canvas object
- BioSANS2020.BioSANS.canvas_update_widgets(_, canvas)¶
This function rearranged the elements in the canvas.
- Args:
_ (None): Not needed canvas (tkinter.Canvas): canvas object]
- Returns:
str: “break”
- BioSANS2020.BioSANS.load_image(wdata=False)¶
This function load image into a canvas and display in BioSANS.
- Args:
- wdata (bool, optional): if True, data will also be loaded in the
memory. Defaults to False.
- BioSANS2020.BioSANS.eval2(xvar)¶
This function evaluates expression
- Args:
xvar (str): expression
- Returns:
str: evaluated expression
- BioSANS2020.BioSANS.CURRENT_DATA¶
- BioSANS2020.BioSANS.dict_trans(x_1)¶
This function creates a dictionary from a list assignment Args:
x_1 (str): string of symbols and assinged values.
- Returns:
dict: a dictionary from a list assignment
- BioSANS2020.BioSANS.convert(xvar, con)¶
This function converts a variable into con data type.
- Args:
xvar (str): string con (con): new data type con
- Returns:
con: xvar equivalent in con
- BioSANS2020.BioSANS.range_trans(x_1)¶
This function converts the x_1 comma concatenated string into a list and put the first element as the last element.
- Args:
x_1 (str): comma concatenated string
- Returns:
list: the first element goes last now
- BioSANS2020.BioSANS.range_prep(x_1)¶
This function process some string input and converts them to a list which is used as a range on other fuctions.
- Args:
x_1 (str): comma concatenated string
- Returns:
list: list of float or list of list and floats
- BioSANS2020.BioSANS.mrun_propagation(par, entry_list, defs2)¶
Ths function grabs the values from defs2 whcih serves as the set of input for the tprocess function.
- Args:
par (tkinter.Toplevel): top level container entry_list (list): list of tkinter.Entry or tkinter.OptionMenu defs2 (list): values
- BioSANS2020.BioSANS.SUPER_THREAD_RUN¶
- BioSANS2020.BioSANS.tprocess(defs)¶
This function creates a thread and sed defs to the BioSANS2020.prepcodes.process function.
- Args:
defs (list): inputs for process fucntion
- BioSANS2020.BioSANS.analysis_case(ana_case, itups)¶
This function redirects input to the corresponding numerical or plotting processes.
- Args:
ana_case (str): type of analysis itups (tuple): (canvas, scroll_x, scroll_y)
- Returns:
np.ndarray : numerical values or None
- BioSANS2020.BioSANS.plot_traj_d(current_data, itups)¶
This function plot the trajectory data stored as current data. The plot can be the phase portrait.
- Args:
current_data (np.ndarray or list): loaded data itups (tuple): (canvas, scroll_x, scroll_y)
- BioSANS2020.BioSANS.get_checked(el_1, slabels)¶
This function returns the components name with a check from el_1 check boxes list.
- Args:
el_1 (list): list of values slabels (list):components or species labels
- Returns:
[type]: [description]
- BioSANS2020.BioSANS.plot_traj_d2(current_data, itups)¶
This function is another plotting function.
- Args:
current_data (np.ndarray or list): loaded data itups (tuple): (canvas, scroll_x, scroll_y)
- BioSANS2020.BioSANS.param_set(method)¶
This function opens the parameter setting dialof box and grab the user custom settings.
- Args:
- method (str): Defaults to “CLE”. Any of the option in
the list of available method keywords is listed below;
Stochastic (refer to section 10.2.4)
“CLE” - Molecules(micro), tau-adaptive
“CLE2” - Molecules(micro), cle-fixIntvl
“Gillespie_” - Molecules(micro), Direct method
- “Tau-leaping” - Molecules(micro),
Not swapping with Gillespie
- “Tau-leaping2” - Molecules(micro),
Swapping with Gillespie
- “Sim-TauLeap” - Molecules(micro), Simplified,
Swapping with Gillespie
Deterministic (refer to section 10.2.1)
“Euler-1” - Molecules(micro), tau-adaptive-1
“Euler-2” - Molar (macro), tau-adaptive-1
“Euler-3” - Mole (macro), tau-adaptive-1
“Euler2-1” - Molecules(micro), tau-adaptive-2
“Euler2-2” - Molar (macro), tau-adaptive-2
“Euler2-3” - Mole (macro), tau-adaptive-2
- “ODE-1” - Molecules(micro),
using ode_int from scipy
- “ODE-2” - Molar(macro),
using ode_int from scipy
“ODE-3” - Mole(macro), using ode_int from scipy
“rk4-1” - Molecules(micro), fix-interval
“rk4-2” - Molar(macro), fix-interval
“rk4-3” - Mole(macro), fix-interval
“rk4-1a” - Molecules(micro), tau-adaptive
“rk4-2a” - Molar(macro), tau-adaptive
“rk4-3a” - Mole(macro), tau-adaptive
Linear Noise Approximation (refer to 10.1.2 & 10.2.2)
“LNA” - Numeric, values
“LNA-vs” - Symbolic, values, Macroscopic
“LNA-ks” - Symbolic, f(ks), Macroscopic
“LNA-xo” - Symbolic, f(xo), Macroscopic
“LNA2” - Symbolic, f(xo,ks), Microscopic
“LNA3” - Symbolic, f(xo,ks), Macroscopic
“LNA(t)” - COV-time-dependent, Macroscopic
“LNA2(t)” - FF-time-dependent, Macroscopic
Network Localization (refer to 10.1.3)
“NetLoc1” - Symbolic, Macroscopic
“NetLoc2” - Numeric, Macroscopic
Parameter estimation (refer to 10.2.3)
“k_est1” - MCEM, Macroscopic
“k_est2” - MCEM, Microscopic
“k_est3” - NM-Diff. Evol., Macroscopic
“k_est4” - NM-Diff. Evol., Microscopic
“k_est5” - Parameter slider/scanner
“k_est6” - Nelder-Mead (NM), Macroscopic
“k_est7” - Nelder-Mead (NM), Microscopic
“k_est8” - Powell, Macroscopic
“k_est9” - Powell, Microscopic
“k_est10” - L-BFGS-B, Macroscopic
“k_est11” - L-BFGS-B, Microscopic
Symbolic/Analytical expression of species (refer to 10.1.1)
“Analyt” - Pure Symbolic :f(t,xo,k)
“Analyt-ftx” - Semi-Symbolic :f(t,xo)
“SAnalyt” - Semi-Symbolic :f(t)
“SAnalyt-ftk” - Semi-Symbolic :f(t,k)
“Analyt2” - Creates commands for wxmaxima
- BioSANS2020.BioSANS.MENUBUT1¶