gseapy/enrichr.py
def prepare_outdir(self):
        """create temp directory."""
        self._outdir = self.outdir
        if self._outdir is None:
            self._tmpdir = TemporaryDirectory()
            self.outdir = self._tmpdir.name
        elif isinstance(self.outdir, str):
            mkdirs(self.outdir)
        else:
            raise Exception("Error parsing outdir: %s"%type(self.outdir))

        # handle gene_sets
        logfile = os.path.join(self.outdir, "gseapy.%s.%s.log" % (self.module, self.descriptions))
        return logfile
def prepare_outdir(self):
        """create temp directory."""
        self._outdir = self.outdir
        if self._outdir is None:
            self._tmpdir = TemporaryDirectory()
            self.outdir = self._tmpdir.name
        elif isinstance(self.outdir, str):
            mkdirs(self.outdir)
        else:
            raise Exception("Error parsing outdir: %s"%type(self.outdir))

        # handle gene_sets
        logfile = os.path.join(self.outdir, "gseapy.%s.%s.log" % (self.module, self.descriptions))
        return logfile
def prepare_outdir ( self ) : self . _outdir = self . outdir if self . _outdir is None : self . _tmpdir = TemporaryDirectory ( ) self . outdir = self . _tmpdir . name elif isinstance ( self . outdir , str ) : mkdirs ( self . outdir ) else : raise Exception ( "Error parsing outdir: %s" % type ( self . outdir ) ) # handle gene_sets logfile = os . path . join ( self . outdir , "gseapy.%s.%s.log" % ( self . module , self . descriptions ) ) return logfile
create temp directory.
create temp directory .