dgenies¶
-
dgenies.
init
(all_jobs, mode)¶ Initialise dgenies client app
Arguments: - all_jobs (array) – list of user jobs (in standalone mode, empty in other modes)
- mode (string) – server mode (standalone or webserver)
-
dgenies.
ajax
(url, data, success, error, method)¶ Ajax server call
Arguments: - url – url to call
- data – data to send
- success – success function
- error – error function
- method – method (GET, POST, …)
-
dgenies.
fill_select_zones
(x_targets, y_contigs)¶ Fill list of zones on select boxes (contigs and chromosomes)
Arguments: - x_targets (array) – list of chromosomes of target
- y_contigs (array) – list of contigs of query
-
dgenies.
get
(url, data, success, error)¶ Get server call
Arguments: - url – url to call
- data – data to send
- success – success function
- error – error function
-
dgenies.
hide_loading
()¶ Hide loading popup
-
dgenies.
notify
(text, type, delay)¶ Show new notification
Arguments: - text (string) – notification text
- type (string) – notification type (danger, warning, info, success) according to Bootstrap Notify library
- delay (int) – time before hide notification
-
dgenies.
numberWithCommas
(x)¶ Show human readable number higher than 1000: 1000 -> 1,000
Arguments: - x (int) – number
Returns: string – human readable number
-
dgenies.
post
(url, data, success, error, async)¶ Post server call
Arguments: - url – url to call
- data – data to send
- success – success function
- error – error function
- async – make call asynchronous
-
dgenies.
reset_loading_message
()¶ Reset loading message to its default value
Save cookie on the browser
Arguments: - cookies (array) – list of jobs
-
dgenies.
set_loading_message
(message)¶ Change loading message on current popup
Arguments: - message (string) – new message
-
dgenies.
show_loading
(message, width)¶ Show loading popup
Arguments: - message (string) – loading message
- width (int) – popup width
-
dgenies.
update_results
(results:)¶ Update list of jobs
Arguments: - results: (array) – new list of jobs