src/pybel/dsl/node_classes.py
def as_bel(self, use_identifiers: bool = True) -> str:
        """Return this fusion as a BEL string."""
        if use_identifiers and self.partner_3p.entity.identifier and self.partner_3p.entity.name:
            p3p = self.partner_3p.obo
        else:
            p3p = self.partner_3p.curie

        if use_identifiers and self.partner_5p.entity.identifier and self.partner_5p.entity.name:
            p5p = self.partner_5p.obo
        else:
            p5p = self.partner_5p.curie

        return '{}(fus({}, "{}", {}, "{}"))'.format(
            self._bel_function,
            p5p,
            self.range_5p.as_bel(),
            p3p,
            self.range_3p.as_bel(),
        )
Return this fusion as a BEL string.
Return this fusion as a BEL string.
Return this fusion as a BEL string .
def as_bel(self, use_identifiers: bool = True) -> str:
        if use_identifiers and self.partner_3p.entity.identifier and self.partner_3p.entity.name:
            p3p = self.partner_3p.obo
        else:
            p3p = self.partner_3p.curie
        if use_identifiers and self.partner_5p.entity.identifier and self.partner_5p.entity.name:
            p5p = self.partner_5p.obo
        else:
            p5p = self.partner_5p.curie
        return '{}(fus({}, "{}", {}, "{}"))'.format(
            self._bel_function,
            p5p,
            self.range_5p.as_bel(),
            p3p,
            self.range_3p.as_bel(),
        )
def as_bel ( self , use_identifiers : bool = True ) -> str : if use_identifiers and self . partner_3p . entity . identifier and self . partner_3p . entity . name : p3p = self . partner_3p . obo else : p3p = self . partner_3p . curie if use_identifiers and self . partner_5p . entity . identifier and self . partner_5p . entity . name : p5p = self . partner_5p . obo else : p5p = self . partner_5p . curie return '{}(fus({}, "{}", {}, "{}"))' . format ( self . _bel_function , p5p , self . range_5p . as_bel ( ) , p3p , self . range_3p . as_bel ( ) , )
Return this fusion as a BEL string.
Return this fusion as a BEL string .
"""Return this fusion as a BEL string."""
self
use_identifiers
bool