Reference

biomappings.gilda_utils Module

Utilities for generating predictions with pyobo/gilda.

Functions

append_gilda_predictions(prefix, ...[, ...])

Add gilda predictions to the Biomappings predictions.tsv file.

iter_prediction_tuples(prefix, provenance, *)

Iterate over prediction tuples for a given prefix.

filter_custom(predictions, custom_filter)

Filter out custom mappings.

filter_existing_xrefs(predictions, prefixes)

Filter predictions that match xrefs already loaded through PyOBO.

has_mapping(prefix, identifier, target_prefix)

Check if there's already a mapping available for this entity in a target namespace.

biomappings.utils Module

Utilities.

Functions

get_git_hash()

Get the git hash.

get_script_url(fname)

Get the source path for this script.

get_canonical_tuple(mapping)

Get the canonical tuple from a mapping entry.

check_valid_prefix_id(prefix, identifier)

Check the prefix/identifier pair is valid.

get_curie(prefix, identifier, *[, preferred])

Get a normalized curie from a pre-parsed prefix/identifier pair.

Classes

UnregisteredPrefix

Raised for an invalid prefix.

UnstandardizedPrefix(prefix, norm_prefix)

Raised for an unstandardized prefix.

InvalidIdentifier(prefix, identifier)

Raised for an invalid identifier.

InvalidNormIdentifier(prefix, identifier, ...)

Raised for an invalid normalized identifier.

InvalidIdentifierPattern(prefix, identifier, ...)

Raised for an identifier that doesn't match the pattern.

Class Inheritance Diagram

digraph inheritance7e00af2976 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "InvalidIdentifier" [URL="api/biomappings.utils.InvalidIdentifier.html#biomappings.utils.InvalidIdentifier",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Raised for an invalid identifier."]; "InvalidIdentifierPattern" [URL="api/biomappings.utils.InvalidIdentifierPattern.html#biomappings.utils.InvalidIdentifierPattern",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Raised for an identifier that doesn't match the pattern."]; "InvalidIdentifier" -> "InvalidIdentifierPattern" [arrowsize=0.5,style="setlinewidth(0.5)"]; "InvalidNormIdentifier" [URL="api/biomappings.utils.InvalidNormIdentifier.html#biomappings.utils.InvalidNormIdentifier",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Raised for an invalid normalized identifier."]; "InvalidIdentifier" -> "InvalidNormIdentifier" [arrowsize=0.5,style="setlinewidth(0.5)"]; "UnregisteredPrefix" [URL="api/biomappings.utils.UnregisteredPrefix.html#biomappings.utils.UnregisteredPrefix",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Raised for an invalid prefix."]; "UnstandardizedPrefix" [URL="api/biomappings.utils.UnstandardizedPrefix.html#biomappings.utils.UnstandardizedPrefix",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Raised for an unstandardized prefix."]; }

biomappings.testing Module

Validation tests for biomappings.

Classes

IntegrityTestCase([methodName])

Data integrity tests.

PathIntegrityTestCase([methodName])

A test case that can be configured with paths.

Class Inheritance Diagram

digraph inheritance91366e06bd { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "IntegrityTestCase" [URL="api/biomappings.testing.IntegrityTestCase.html#biomappings.testing.IntegrityTestCase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Data integrity tests."]; "TestCase" -> "IntegrityTestCase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PathIntegrityTestCase" [URL="api/biomappings.testing.PathIntegrityTestCase.html#biomappings.testing.PathIntegrityTestCase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A test case that can be configured with paths."]; "IntegrityTestCase" -> "PathIntegrityTestCase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; }