src/pybel/dsl/node_classes.py
def as_bel(self, use_identifiers=False) -> str:
        """Return this fragment variant as a BEL string."""
        res = '"{}"'.format(self.range)

        if FRAGMENT_DESCRIPTION in self:
            res += ', "{}"'.format(self[FRAGMENT_DESCRIPTION])

        return 'frag({})'.format(res)
Return this fragment variant as a BEL string.
Return this fragment variant as a BEL string.
Return this fragment variant as a BEL string .
def as_bel(self, use_identifiers=False) -> str:
        res = '"{}"'.format(self.range)
        if FRAGMENT_DESCRIPTION in self:
            res += ', "{}"'.format(self[FRAGMENT_DESCRIPTION])
        return 'frag({})'.format(res)
def as_bel ( self , use_identifiers = False ) -> str : res = '"{}"' . format ( self . range ) if FRAGMENT_DESCRIPTION in self : res += ', "{}"' . format ( self [ FRAGMENT_DESCRIPTION ] ) return 'frag({})' . format ( res )
Return this fragment variant as a BEL string.
Return this fragment variant as a BEL string .
"""Return this fragment variant as a BEL string."""
self
use_identifiers