src/pybel/io/triples/converters.py
def convert(u: BaseEntity, v: BaseEntity, key: str, edge_data: EdgeData) -> Tuple[str, str, str]:
        """Convert a transcription factor for edge."""
        relation = edge_data[RELATION]
        if relation in CAUSAL_INCREASE_RELATIONS:
            relation = 'increasesAmountOf'
        elif relation in CAUSAL_DECREASE_RELATIONS:
            relation = 'decreasesAmountOf'
        elif relation == REGULATES:
            relation = 'regulatesAmountOf'
        else:
            raise ValueError('invalid relation type')

        return u.safe_label, relation, v.safe_label
Convert a transcription factor for edge.
Convert a transcription factor for edge.
Convert a transcription factor for edge .
def convert(u: BaseEntity, v: BaseEntity, key: str, edge_data: EdgeData) -> Tuple[str, str, str]:
        relation = edge_data[RELATION]
        if relation in CAUSAL_INCREASE_RELATIONS:
            relation = 'increasesAmountOf'
        elif relation in CAUSAL_DECREASE_RELATIONS:
            relation = 'decreasesAmountOf'
        elif relation == REGULATES:
            relation = 'regulatesAmountOf'
        else:
            raise ValueError('invalid relation type')
        return u.safe_label, relation, v.safe_label
def convert ( u : BaseEntity , v : BaseEntity , key : str , edge_data : EdgeData ) -> Tuple [ str , str , str ] : relation = edge_data [ RELATION ] if relation in CAUSAL_INCREASE_RELATIONS : relation = 'increasesAmountOf' elif relation in CAUSAL_DECREASE_RELATIONS : relation = 'decreasesAmountOf' elif relation == REGULATES : relation = 'regulatesAmountOf' else : raise ValueError ( 'invalid relation type' ) return u . safe_label , relation , v . safe_label
Convert a transcription factor for edge.
Convert a transcription factor for edge .
"""Convert a transcription factor for edge."""
u
BaseEntity
v
BaseEntity
key
str
edge_data
EdgeData