src/pybel/io/triples/converters.py
def convert(cls, u: BaseEntity, v: BaseEntity, key: str, edge_data: EdgeData) -> Tuple[str, str, str]:
        """Convert a transcription factor for edge."""
        gene = v.get_gene()
        if gene == u.members[0]:
            return u.members[1].safe_label, edge_data[RELATION], v.safe_label
        else:
            return u.members[0].safe_label, edge_data[RELATION], v.safe_label
Convert a transcription factor for edge.
Convert a transcription factor for edge.
Convert a transcription factor for edge .
def convert(cls, u: BaseEntity, v: BaseEntity, key: str, edge_data: EdgeData) -> Tuple[str, str, str]:
        gene = v.get_gene()
        if gene == u.members[0]:
            return u.members[1].safe_label, edge_data[RELATION], v.safe_label
        else:
            return u.members[0].safe_label, edge_data[RELATION], v.safe_label
def convert ( cls , u : BaseEntity , v : BaseEntity , key : str , edge_data : EdgeData ) -> Tuple [ str , str , str ] : gene = v . get_gene ( ) if gene == u . members [ 0 ] : return u . members [ 1 ] . safe_label , edge_data [ RELATION ] , v . safe_label else : return u . members [ 0 ] . safe_label , edge_data [ RELATION ] , v . safe_label
Convert a transcription factor for edge.
Convert a transcription factor for edge .
"""Convert a transcription factor for edge."""
cls
u
BaseEntity
v
BaseEntity
key
str
edge_data
EdgeData