igrouper
Interactive command line interface to EGEGrouper.
-
class
egegrouper.igrouper.
DialogText
(data_dict)[source]
Text dialog for input fields values.
This dialog processes data in the dictionary with keys which
correspond attributes of group.
-
input
()[source]
Process input data.
-
rlineinput
(prompt, prefill='')[source]
Output existing value to the edit area.
-
class
egegrouper.igrouper.
GrouperShell
[source]
Class for processing user’s commands.
-
default
(line)[source]
This method called if user gives not existing command.
Here the aliases processed.
Parameters: | line (str) – User’s command. |
-
do_add_group
(arg)[source]
add_group
Add new group.
Aliases: ag
-
do_add_to_group
(arg)[source]
add_to_group exam_id group_id
Add examination to group.
Aliases: at
-
do_db_info
(arg)[source]
Print information about database.
Aliases: d
-
do_delete_exam
(arg)[source]
delete_exam id
Delete examination from database.
Aliases: de
-
do_delete_from_group
(arg)[source]
delete_from_group exam_id group_id
Delete examination from group.
Aliases: df
-
do_delete_group
(arg)[source]
delete_group id
Delete group
Aliases: dg
-
do_edit_group
(arg)[source]
edit_group group_id
Edit attributes of selected group.
-
do_exam_info
(arg)[source]
exam_info id
Print information about examination.
Aliases: e
-
do_export_json
(arg)[source]
export_json exam_id file_name
Export examination to JSON file.
Aliases: ej
-
do_group_info
(arg)[source]
group_info id
Print information about group.
Aliases: g
-
do_import_gs
(arg)[source]
import_gs file_name
Import records from Gastroscan sqlite database.
-
do_import_json
(arg)[source]
import_json file_name
Add examination from JSON file.
Aliases: aj
-
do_import_sme
(arg)[source]
import_sme file_name
Add records from SME database.
-
do_merge_exams
(arg)[source]
merge_exams exam_id_1 exam_id_2
Merge two examinations.
-
do_plot_exam
(arg)[source]
plot_exam id
Plot signals of examination.
Aliases: p
-
do_quit
(arg)[source]
Close database and exit.
-
do_stats
(arg)[source]
stats [age|gender|diagnosis] group_id
Print some statistic of group.
Special values for group_id:
0 - Ungrouped exams.
* - All exams.
Examples
stats gender 1
stats diagnosis 0
stats age *
-
do_where_is
(arg)[source]
where_is id
Show where is examination.
Aliases: we
-
egegrouper.igrouper.
main
()[source]
Entry point.