Skip to content

Commit

Permalink
Fix bug when dealing with integers as bools.
Browse files Browse the repository at this point in the history
  • Loading branch information
loucerac committed May 5, 2023
1 parent 5e47b8b commit 43e57ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drexml/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def get_disease_data(disease, debug):
pathvals.columns = pathvals.columns.str.replace("-", ".").str.replace(" ", ".")
circuits = fetch_file(disease, key="circuits", version="latest", debug=debug)
circuits.index = circuits.index.str.replace("-", ".").str.replace(" ", ".")
circuits[circuits_column] = circuits[circuits_column].astype(bool)
genes = fetch_file(disease, key="genes", version="latest", debug=debug)

# gene_exp = gene_exp[genes.index[genes[genes_column]]]
Expand Down

0 comments on commit 43e57ac

Please sign in to comment.