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

        return 'pmod({}{})'.format(
            x,
            ''.join(', {}'.format(self[x]) for x in PMOD_ORDER[2:] if x in self),
        )
Return this protein modification variant as a BEL string.
Return this protein modification variant as a BEL string.
Return this protein modification variant as a BEL string .
def as_bel(self, use_identifiers: bool = True) -> str:
        if use_identifiers and self.entity.identifier and self.entity.name:
            x = self.entity.obo
        else:
            x = self.entity.curie
        return 'pmod({}{})'.format(
            x,
            ''.join(', {}'.format(self[x]) for x in PMOD_ORDER[2:] if x in self),
        )
def as_bel ( self , use_identifiers : bool = True ) -> str : if use_identifiers and self . entity . identifier and self . entity . name : x = self . entity . obo else : x = self . entity . curie return 'pmod({}{})' . format ( x , '' . join ( ', {}' . format ( self [ x ] ) for x in PMOD_ORDER [ 2 : ] if x in self ) , )
Return this protein modification variant as a BEL string.
Return this protein modification variant as a BEL string .
"""Return this protein modification variant as a BEL string."""
self
use_identifiers
bool