Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
YojanaGadiya committed Oct 14, 2024
1 parent a1b74d4 commit 615bbf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/pyBiodatafuse/annotators/wikipathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ def get_gene_wikipathways(bridgedb_df: pd.DataFrame):
intermediate_df = pd.DataFrame()

for gene_list_str in tqdm(query_gene_lists, desc="Querying WikiPathways"):
if query_count > 10:
print("Sleeping for 5 seconds to avoid overloading the server.")
time.sleep(5)
query_count = 0

sparql_query_template = Template(sparql_query)
substit_dict = dict(gene_list=gene_list_str)
sparql_query_template_sub = sparql_query_template.substitute(substit_dict)
Expand Down
2 changes: 1 addition & 1 deletion src/pyBiodatafuse/graph/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def save_graph(

# Save the graph
g = build_networkx_graph(combined_df, disease_compound)
logger.warning(f"Graph is built successfully")
logger.warning("Graph is built successfully")

with open(graph_path_pickle, "wb") as f:
pickle.dump(g, f)
Expand Down

0 comments on commit 615bbf5

Please sign in to comment.