src/pybel/dsl/node_classes.py
def as_bel(self, use_identifiers: bool = True) -> str:
        """Return this gene 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 'gmod({})'.format(x)
Return this gene modification variant as a BEL string.
Return this gene modification variant as a BEL string.
Return this gene 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 'gmod({})'.format(x)
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 'gmod({})' . format ( x )
Return this gene modification variant as a BEL string.
Return this gene modification variant as a BEL string .
"""Return this gene modification variant as a BEL string."""
self
use_identifiers
bool