From 5388edc151f6174b0778fb5f984e9aceea1e40b0 Mon Sep 17 00:00:00 2001 From: Zhuoqing Fang Date: Wed, 4 Dec 2024 11:59:29 -0800 Subject: [PATCH] BLK --- gseapy/biomart.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gseapy/biomart.py b/gseapy/biomart.py index 59a6931..d1638ec 100644 --- a/gseapy/biomart.py +++ b/gseapy/biomart.py @@ -98,7 +98,7 @@ def _set_host(self, host: str): # "\n\n" if request.ok and request.text.startswith("\n\n"): self.host = hosts[i] - self._marts =self._get_marts(request.text) + self._marts = self._get_marts(request.text) break self._logger.warning( "host {} is not reachable, try {} ".format( @@ -144,8 +144,8 @@ def get_xml(self): xml += line xml += self.footer return xml - - def _get_mart(self, text:str): + + def _get_mart(self, text: str): """ Parse the xml text and return a dataframe of supported marts. @@ -166,8 +166,7 @@ def _get_mart(self, text:str): marts = marts.loc[:, ["database", "displayName", "name"]] marts.columns = ["Version", "DisplayName", "Mart"] # get supported marts - return marts.loc[:, ["Mart", "Version"]] - + return marts.loc[:, ["Mart", "Version"]] def get_marts(self): """Get available marts and their names."""