Skip to content

Commit

Permalink
parent function
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Aug 13, 2022
1 parent 755ede1 commit 11f5765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gseapy/biomart.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, host="www.ensembl.org", verbose=False):

self.attributes_xml = []
self.filters_xml = []
self.dataset_xml = None
self.dataset_xml = ""

params = {
"version": "1.0",
Expand Down Expand Up @@ -86,7 +86,7 @@ def add_dataset(self, dataset):
def reset(self):
self.attributes_xml = []
self.filters_xml = []
self.dataset_xml = None
self.dataset_xml = ""

def get_xml(self):
xml = self.header
Expand Down Expand Up @@ -178,7 +178,7 @@ def query(
v = ",".join(list(v))
self.add_filter_to_xml(k, v)

xml_query = self.get_xml()
xml_query = super(Biomart, self).get_xml()
results = super(Biomart, self).query(xml_query)
if str(results).startswith("Query ERROR"):
print(results)
Expand Down

0 comments on commit 11f5765

Please sign in to comment.