def to_list(self):
src = self._source or '<STR_LIT>'<EOL>coll = self._collection or '<STR_LIT>'<EOL>desc = self._description or '<STR_LIT>'<EOL>l = [self._id, src, coll, self._name,<EOL>'<STR_LIT:U+002C>'.join(sorted(self._genes)), desc]<EOL>return l<EOL>
Converts the GeneSet object to a flat list of strings.

        Note: see also :meth:`from_list`.

        Parameters
        ----------

        Returns
        -------
        list of str
            The data from the GeneSet object as a flat list.