gseapy/enrichr.py
def check_genes(self, gene_list, usr_list_id):
        '''
        Compare the genes sent and received to get successfully recognized genes
        '''
        response = requests.get('http://amp.pharm.mssm.edu/Enrichr/view?userListId=%s' % usr_list_id)
        if not response.ok:
            raise Exception('Error getting gene list back')
        returnedL = json.loads(response.text)["genes"]
        returnedN = sum([1 for gene in gene_list if gene in returnedL])
        self._logger.info('{} genes successfully recognized by Enrichr'.format(returnedN))
def check_genes(self, gene_list, usr_list_id):
        '''
        Compare the genes sent and received to get successfully recognized genes
        '''
        response = requests.get('http://amp.pharm.mssm.edu/Enrichr/view?userListId=%s' % usr_list_id)
        if not response.ok:
            raise Exception('Error getting gene list back')
        returnedL = json.loads(response.text)["genes"]
        returnedN = sum([1 for gene in gene_list if gene in returnedL])
        self._logger.info('{} genes successfully recognized by Enrichr'.format(returnedN))
def check_genes ( self , gene_list , usr_list_id ) : response = requests . get ( 'http://amp.pharm.mssm.edu/Enrichr/view?userListId=%s' % usr_list_id ) if not response . ok : raise Exception ( 'Error getting gene list back' ) returnedL = json . loads ( response . text ) [ "genes" ] returnedN = sum ( [ 1 for gene in gene_list if gene in returnedL ] ) self . _logger . info ( '{} genes successfully recognized by Enrichr' . format ( returnedN ) )
Compare the genes sent and received to get successfully recognized genes
Compare the genes sent and received to get successfully recognized genes