def write_tsv(self, path, encoding='<STR_LIT>'):
assert isinstance(path, (str, _oldstr))<EOL>assert isinstance(encoding, (str, _oldstr))<EOL>sep = '<STR_LIT:\t>'<EOL>if six.PY2:<EOL><INDENT>sep = sep.encode('<STR_LIT>')<EOL><DEDENT>self.to_csv(<EOL>path, sep=sep, float_format='<STR_LIT>', mode='<STR_LIT:w>',<EOL>encoding=encoding, header=True<EOL>)<EOL>logger.info('<STR_LIT>',<EOL>self.name, self.p, path)<EOL>
Write expression matrix to a tab-delimited text file.

        Parameters
        ----------
        path: str
            The path of the output file.
        encoding: str, optional
            The file encoding. ("UTF-8")

        Returns
        -------
        None