dipper.models.assoc.OrthologyAssoc module

class dipper.models.assoc.OrthologyAssoc.OrthologyAssoc(graph, definedby, gene1, gene2, rel=None, subject_category=None, object_category=None)

Bases: dipper.models.assoc.Association.Assoc

add_gene_family_to_graph(family_id)

Make an association between a group of genes and some grouping class. We make the assumption that the genes in the association are part of the supplied family_id, and that the genes have already been declared as classes elsewhere. The family_id is added as an individual of type DATA:gene_family.

Triples: <family_id> a EDAM-DATA:gene_family <family_id> RO:has_member <gene1> <family_id> RO:has_member <gene2> <gene1> biolink:category <subject_category> <gene2> biolink:category <object_category> :param family_id: :param g: the graph to modify :return: