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."""