gseapy/enrichr.py
def get_organism(self):
        """Select Enrichr organism from below:

           Human & Mouse: H. sapiens & M. musculus
           Fly: D. melanogaster
           Yeast: S. cerevisiae
           Worm: C. elegans
           Fish: D. rerio

        """

        organism = {'default': ['', 'hs', 'mm', 'human','mouse',
                                'homo sapiens', 'mus musculus',
                                'h. sapiens', 'm. musculus'],
                    'Fly': ['fly', 'd. melanogaster', 'drosophila melanogaster'],
                    'Yeast': ['yeast', 's. cerevisiae', 'saccharomyces cerevisiae'],
                    'Worm': ['worm', 'c. elegans', 'caenorhabditis elegans', 'nematode'],
                    'Fish': ['fish', 'd. rerio', 'danio rerio', 'zebrafish']
                 }

        for k, v in organism.items():
            if self.organism.lower() in v :
                self._organism = k

        if self._organism is None:
            raise Exception("No supported organism found !!!")

        if self._organism == 'default':
            self._organism = ''
        return
def get_organism(self):
        """Select Enrichr organism from below:

           Human & Mouse: H. sapiens & M. musculus
           Fly: D. melanogaster
           Yeast: S. cerevisiae
           Worm: C. elegans
           Fish: D. rerio

        """

        organism = {'default': ['', 'hs', 'mm', 'human','mouse',
                                'homo sapiens', 'mus musculus',
                                'h. sapiens', 'm. musculus'],
                    'Fly': ['fly', 'd. melanogaster', 'drosophila melanogaster'],
                    'Yeast': ['yeast', 's. cerevisiae', 'saccharomyces cerevisiae'],
                    'Worm': ['worm', 'c. elegans', 'caenorhabditis elegans', 'nematode'],
                    'Fish': ['fish', 'd. rerio', 'danio rerio', 'zebrafish']
                 }

        for k, v in organism.items():
            if self.organism.lower() in v :
                self._organism = k

        if self._organism is None:
            raise Exception("No supported organism found !!!")

        if self._organism == 'default':
            self._organism = ''
        return
Select Enrichr organism from below:

           Human & Mouse: H. sapiens & M. musculus
           Fly: D. melanogaster
           Yeast: S. cerevisiae
           Worm: C. elegans
           Fish: D. rerio