Input to Database
bin.input_to_database
¶
Script to crawl Synapse folder for a center, validate, and update database tables.
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
parser = argparse.ArgumentParser(description='GENIE center ')
module-attribute
¶
args = parser.parse_args()
module-attribute
¶
Functions¶
main(process, project_id, center=None, delete_old=False, only_validate=False, oncotree_link=None, genie_annotation_pkg=None, create_new_maf_database=False, debug=False, format_registry=None)
¶
Invoke the GENIE ETL pipeline from data input files to synapse tables
PARAMETER | DESCRIPTION |
---|---|
process
|
main or mutation processing
TYPE:
|
project_id
|
Synapse project id that houses GENIE project
TYPE:
|
center
|
GENIE center. Defaults to None.
TYPE:
|
delete_old
|
True to delete all old input/processed files. Defaults to False.
TYPE:
|
only_validate
|
True if only validate files. Defaults to False.
TYPE:
|
oncotree_link
|
Link to oncotree version. Defaults to None.
TYPE:
|
genie_annotation_pkg
|
vcf/maf conversion tools. Defaults to None.
TYPE:
|
create_new_maf_database
|
To create new maf table. Defaults to False.
TYPE:
|
debug
|
Debug mode. Defaults to False.
TYPE:
|
format_registry
|
File format registry python package. Defaults to None.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
If invalid center name is specified |
Exception
|
If processing is already happening. |
Source code in bin/input_to_database.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|