@@ -392,16 +392,18 @@ def get_gene_information(
392392
393393 Function is originally from pori_ipr_python::annotate.py
394394
395- Gene flags (categories) are: ['cancerGene', 'cancerRelated', 'knownFusionPartner', 'knownSmallMutation',
396- 'oncogene', 'therapeuticAssociated', 'tumourSuppressor']
395+ Gene flags (categories) are: [
396+ 'cancerGeneListMatch', 'kbStatementRelated', 'knownFusionPartner',
397+ 'knownSmallMutation', 'oncogene', 'therapeuticAssociated', 'tumourSuppressor'
398+ ]
397399
398400 Args:
399401 graphkb_conn ([type]): [description]
400402 gene_names ([type]): [description]
401403 Returns:
402404 List of gene_info dicts of form [{'name':<gene_str>, <flag>: True}]
403405 Keys of False values are simply omitted from ipr upload to reduce info transfer.
404- eg. [{'cancerRelated ': True,
406+ eg. [{'kbStatementRelated ': True,
405407 'knownFusionPartner': True,
406408 'knownSmallMutation': True,
407409 'name': 'TERT',
@@ -423,7 +425,7 @@ def get_gene_information(
423425 statements = [s for s in statements if s .get ("reviewStatus" ) != FAILED_REVIEW_STATUS ]
424426
425427 gene_flags : Dict [str , Set [str ]] = {
426- "cancerRelated " : set (),
428+ "kbStatementRelated " : set (),
427429 "knownFusionPartner" : set (),
428430 "knownSmallMutation" : set (),
429431 }
@@ -432,9 +434,9 @@ def get_gene_information(
432434 for condition in statement ["conditions" ]:
433435 if not condition .get ("reference1" ):
434436 continue
435- gene_flags ["cancerRelated " ].add (condition ["reference1" ])
437+ gene_flags ["kbStatementRelated " ].add (condition ["reference1" ])
436438 if condition ["reference2" ]:
437- gene_flags ["cancerRelated " ].add (condition ["reference2" ])
439+ gene_flags ["kbStatementRelated " ].add (condition ["reference2" ])
438440 gene_flags ["knownFusionPartner" ].add (condition ["reference1" ])
439441 gene_flags ["knownFusionPartner" ].add (condition ["reference2" ])
440442 elif condition ["@class" ] == "PositionalVariant" :
@@ -444,8 +446,8 @@ def get_gene_information(
444446 gene_flags ["oncogene" ] = convert_to_rid_set (get_oncokb_oncogenes (graphkb_conn ))
445447 logger .info ("fetching tumour supressors list" )
446448 gene_flags ["tumourSuppressor" ] = convert_to_rid_set (get_oncokb_tumour_supressors (graphkb_conn ))
447- logger .info ("fetching cancerGene list" )
448- gene_flags ["cancerGene " ] = convert_to_rid_set (get_cancer_genes (graphkb_conn ))
449+ logger .info ("fetching cancerGeneListMatch list" )
450+ gene_flags ["cancerGeneListMatch " ] = convert_to_rid_set (get_cancer_genes (graphkb_conn ))
449451
450452 logger .info ("fetching therapeutic associated genes lists" )
451453 gene_flags ["therapeuticAssociated" ] = convert_to_rid_set (
0 commit comments