datasnakes / OrthoEvolution

An easy to use and comprehensive python package which aids in the analysis and visualization of orthologous genes. 🐵
https://orthoevolution.readthedocs.io/en/master/
29 stars 4 forks source link

Light refactoring of database management patch #146

Closed sdhutchins closed 5 years ago

sdhutchins commented 5 years ago

Changes

One issue I was having is that BioSQL was not being imported properly from biopython since our package has a BioSQL. I changed it to biosql in our package.

    def _check_ingredients(self, cookie, path, no_input, extra_context):
        """Check if a directory exists. If not, create it."""
        if self.cookie_jar:
            if self.exists(str(path)):
                os.chmod(str(path), mode=0o777)
                self.cookielog.warning('%s already exists. ✔' % str(path))

        else:
            cookiecutter(str(cookie), no_input=no_input,
                            extra_context=extra_context, 
                            output_dir=str(self.cookie_jar))
            os.chmod(str(path), mode=0o777)
            self.cookielog.info('%s was created. ✔' % str(path))
sdhutchins commented 5 years ago

This is still in progress.

sdhutchins commented 5 years ago

@grabear This should be ready!