File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
data-pipeline/src/data_pipeline Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,11 @@ def import_hgnc(path):
226
226
return ds
227
227
228
228
229
- def prepare_table_for_release (genes_path ):
229
+ def prepare_table_for_release (genes_path , keep_mane_version_global_annotation ):
230
230
ds = hl .import_table (genes_path )
231
+ if keep_mane_version_global_annotation :
232
+ globals_dict = ds .index_globals ()
233
+ ds = ds .select_globals (mane_select_version = globals_dict ["annotations" ]["mane_select_transcript" ]["version" ])
231
234
ds = ds .select_globals ()
232
235
return ds
233
236
Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ def annotate_with_preferred_transcript(table_path):
328
328
f"/{ genes_subdir } /genes_grch37_public_release.ht" ,
329
329
{
330
330
"genes_path" : pipeline .get_task ("annotate_grch37_genes_step_5" ),
331
+ "keep_mane_version_global_annotation" : False ,
331
332
},
332
333
)
333
334
@@ -401,6 +402,7 @@ def annotate_with_constraint(genes_path, constraint_path):
401
402
f"/{ genes_subdir } /genes_grch38_public_release.ht" ,
402
403
{
403
404
"genes_path" : pipeline .get_task ("remove_constraint_for_release" ),
405
+ "keep_mane_version_global_annotation" : True ,
404
406
},
405
407
)
406
408
You can’t perform that action at this time.
0 commit comments