gseapy/enrichr.py
def send_genes(self, gene_list, url):
        """ send gene list to enrichr server"""
        payload = {
          'list': (None, gene_list),
          'description': (None, self.descriptions)
           }
        # response
        response = requests.post(url, files=payload)
        if not response.ok:
            raise Exception('Error analyzing gene list')
        sleep(1)
        job_id = json.loads(response.text)

        return job_id
def send_genes(self, gene_list, url):
        payload = {
          'list': (None, gene_list),
          'description': (None, self.descriptions)
           }
        # response
        response = requests.post(url, files=payload)
        if not response.ok:
            raise Exception('Error analyzing gene list')
        sleep(1)
        job_id = json.loads(response.text)

        return job_id
def send_genes ( self , gene_list , url ) : payload = { 'list' : ( None , gene_list ) , 'description' : ( None , self . descriptions ) } # response response = requests . post ( url , files = payload ) if not response . ok : raise Exception ( 'Error analyzing gene list' ) sleep ( 1 ) job_id = json . loads ( response . text ) return job_id
send gene list to enrichr server
send gene list to enrichr server