@@ -89,11 +89,6 @@ def run(filename):
89
89
wgt = models .Weight (xml .emdb_id )
90
90
(wgt .emdb_id , wgt .overall_mw , wgt .units , wgt .provenance ) = (xml .emdb_id , xml .overall_mw , "MDa" , "EMDB" )
91
91
packed_models ["WEIGHT" ] = wgt
92
- if empiar :
93
- empiar_logger = start_logger_if_necessary ("empiar_logger" , empiar_log_file )
94
- empiar_mapping = EMPIARMapping (xml .emdb_id , empiar_dictionary , empiar_logger )
95
- empiar_map = empiar_mapping .execute ()
96
- packed_models ["EMPIAR" ] = empiar_map
97
92
if pmc or orcid :
98
93
pubmed_log = start_logger_if_necessary ("pubmed_logger" , pubmed_log_file ) if pmc else None
99
94
orcid_log = start_logger_if_necessary ("orcid_logger" , orcid_log_file ) if orcid else None
@@ -123,7 +118,7 @@ def run(filename):
123
118
124
119
if __name__ == "__main__" :
125
120
######### Command : python /Users/amudha/project/git_code/added_annotations/AddedAnnotations.py
126
- # -w /Users/amudha/project/ -f /Users/amudha/project/EMD_XML/ --CPX --model --uniprot --weight --empiar -- pmc
121
+ # -w /Users/amudha/project/ -f /Users/amudha/project/EMD_XML/ --CPX --model --uniprot --weight --pmc
127
122
128
123
prog = "EMDBAddedAnnotations"
129
124
usage = """
@@ -132,7 +127,7 @@ def run(filename):
132
127
python AddedAnnotations.py -w '[{"/path/to/working/folder"}]'
133
128
-f '[{"/path/to/EMDB/header/files/folder"}]'
134
129
-p '[{"/path/to/PDBe/files/folder"}]'
135
- --uniprot --CPX --component --model --weight --empiar -- pmc --GO --interpro --pfam --pbdekb
130
+ --uniprot --CPX --component --model --weight --pmc --GO --interpro --pfam --pbdekb
136
131
--cath --scop --scop2 --scop2B
137
132
"""
138
133
@@ -150,7 +145,6 @@ def run(filename):
150
145
parser .add_argument ("--component" , type = bool , nargs = '?' , const = True , default = False , help = "Mapping to ChEMBL, ChEBI and DrugBank." )
151
146
parser .add_argument ("--model" , type = bool , nargs = '?' , const = True , default = False , help = "Collect MW from PDBe." )
152
147
parser .add_argument ("--weight" , type = bool , nargs = '?' , const = True , default = False , help = "Collect sample weight from header file." )
153
- parser .add_argument ("--empiar" , type = bool , nargs = '?' , const = True , default = False , help = "Mapping EMPIAR ID to EMDB entries" )
154
148
parser .add_argument ("--pmc" , type = bool , nargs = '?' , const = True , default = False , help = "Mapping publication ID to EMDB entries" )
155
149
parser .add_argument ("--GO" , type = bool , nargs = '?' , const = True , default = False , help = "Mapping GO ids to EMDB entries" )
156
150
parser .add_argument ("--interpro" , type = bool , nargs = '?' , const = True , default = False , help = "Mapping InterPro ids to EMDB entries" )
@@ -170,7 +164,6 @@ def run(filename):
170
164
component = args .component
171
165
model = args .model
172
166
weight = args .weight
173
- empiar = args .empiar
174
167
pmc = args .pmc
175
168
orcid = pmc
176
169
go = args .GO
@@ -186,8 +179,6 @@ def run(filename):
186
179
187
180
if model :
188
181
db_list .append ("pdbe" )
189
- if empiar :
190
- db_list .append ("empiar" )
191
182
if uniprot :
192
183
db_list .append ("uniprot" )
193
184
if component :
@@ -227,7 +218,6 @@ def run(filename):
227
218
component = True
228
219
model = True
229
220
weight = True
230
- empiar = True
231
221
pmc = True
232
222
orcid = True
233
223
go = True
@@ -238,7 +228,7 @@ def run(filename):
238
228
scop2 = True
239
229
scop2B = True
240
230
pdbekb = True
241
- db_list .extend (["pdbe" , "empiar" , " uniprot" , "chembl" , "chebi" , "drugbank" , "pubmed" , "pubmedcentral" , "issn" ,
231
+ db_list .extend (["pdbe" , "uniprot" , "chembl" , "chebi" , "drugbank" , "pubmed" , "pubmedcentral" , "issn" ,
242
232
"orcid" , "cpx" , "go" , "interpro" , "pfam" , "cath" , "scop" , "scop2" , "scop2B" , "pdbekb" ])
243
233
244
234
#Get config variables:
@@ -250,7 +240,7 @@ def run(filename):
250
240
CP_ftp = config .get ("file_paths" , "CP_ftp" )
251
241
components_cif = config .get ("file_paths" , "components_cif" )
252
242
assembly_ftp = config .get ("file_paths" , "assembly_ftp" )
253
- emdb_empiar_list = config .get ("file_paths" , "emdb_empiar_list" )
243
+ # emdb_empiar_list = config.get("file_paths", "emdb_empiar_list")
254
244
pmc_api = config .get ("api" , "pmc" )
255
245
uniprot_tab = config .get ("file_paths" , "uniprot_tab" )
256
246
#GO_obo = config.get("file_paths", "GO_obo")
@@ -283,10 +273,6 @@ def run(filename):
283
273
weight_log_file = os .path .join (args .workDir , 'overall_mw.log' )
284
274
weight_log = setup_logger ('weight_logger' , weight_log_file )
285
275
weight_log .info ("EMDB_ID\t OVERALL_MW" )
286
- if empiar :
287
- empiar_log_file = os .path .join (args .workDir , 'emdb_empiar.log' )
288
- empiar_log = setup_logger ('empiar_logger' , empiar_log_file )
289
- empiar_log .info ("EMDB_ID\t EMPIAR_ID\t PROVENANCE" )
290
276
if pmc :
291
277
pubmed_log_file = os .path .join (args .workDir , 'emdb_pubmed.log' )
292
278
pubmed_log = setup_logger ('pubmed_logger' , pubmed_log_file )
@@ -333,8 +319,6 @@ def run(filename):
333
319
334
320
if uniprot :
335
321
uniprot_dictionary , uniprot_with_models = generate_unp_dictionary (uniprot_tab )
336
- if empiar :
337
- empiar_dictionary = generate_emp_dictionary (emdb_empiar_list )
338
322
if component :
339
323
chembl_map , chebi_map , drugbank_map = parseCCD (components_cif )
340
324
pubmed_dict = generate_pubmed_dictionary (args .workDir ) if pmc else {}
0 commit comments