You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.warning(f"Object in subject-object pair ({original_subject}, {original_object}) has no preferred CURIE, skipping.")
456
+
ifobjectnotinpreferred_curie_for_curie:
457
+
logger.warning(f"Object in subject-object pair ({subject}, {object}) has no preferred CURIE, skipping.")
458
458
continue
459
-
object=preferred_curie_for_curie[original_object]
459
+
object=preferred_curie_for_curie[object]
460
460
461
461
ifsubject==object:
462
-
logger.warning(f"Subject and object in subject-object pair ({original_subject}, {original_object}) normalize to the same identifier ({subject}), skipping.")
462
+
logger.warning(f"Subject and object in subject-object pair ({subject}, {object}) normalize to the same identifier ({subject}), skipping.")
463
463
continue
464
464
465
465
# Either the subject or the object might not be a chemical -- for example, MESH:C415772 shows up here,
466
466
# but it's a gene, not a chemical.
467
467
subject_type=type_for_preferred_curie[subject]
468
468
ifCHEMICAL_ENTITYnotinbiolink_chemical_types:
469
-
logger.warning(f"Subject in subject-object pair ({original_subject}, {original_object}) has type {subject_type}, which is is not a chemical type, skipping.")
469
+
logger.warning(f"Subject in subject-object pair ({subject}, {object}) has type {subject_type}, which is is not a chemical type, skipping.")
470
470
continue
471
471
472
472
object_type=type_for_preferred_curie[object]
473
473
ifCHEMICAL_ENTITYnotinbiolink_chemical_types:
474
-
logger.warning(f"Object in subject-object pair ({original_subject}, {original_object}) has type {object_type}, which is is not a chemical type, skipping.")
474
+
logger.warning(f"Object in subject-object pair ({subject}, {object}) has type {object_type}, which is is not a chemical type, skipping.")
0 commit comments