Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cokelaer/bioservices into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Oct 1, 2022
2 parents 73058b1 + 6bb04cf commit e8391e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/bioservices/quickgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ def go_search(self, query, limit=600, page=1):
return res

def get_go_terms(self, query, max_number_of_pages=None):
"""Get information on all terms and page through the result"""
"""Get information on all terms and page through the result
:param str query: terms as string of comma seperated values
"""

query = query.replace(":", "%3A")
query = query.replace(",", "%2C")
Expand Down
4 changes: 2 additions & 2 deletions src/bioservices/uniprot.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,11 @@ def get_df(self, entries, nChunk=100, organism=None, limit=10):
if isinstance(output, type(None)):
output = df.copy()
else:
output = output.append(df, ignore_index=True)
# output = output.append(df, ignore_index=True)
output = pd.concat([output, df], ignore_index=True)

# you may end up with duplicated...
output.drop_duplicates(inplace=True)

# Sequences are splitted into chunks of 10 characters. let us remove
# the spaces:
if "sequence" in output.columns:
Expand Down

0 comments on commit e8391e2

Please sign in to comment.