Skip to content

Commit

Permalink
Hot fix for normalization with batches
Browse files Browse the repository at this point in the history
  • Loading branch information
jvivian committed Jun 10, 2024
1 parent 49159d3 commit d5d3816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covid19_drdfm/streamlit/pages/1_Factor_Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def normalize(df):
ad = ann.read_h5ad(res_dir / "data.h5ad")
new = ad.to_df().reset_index()
new["State"] = ad.obs["State"].to_list()
new = normalize(new)
new = normalize(new[new.State == state])

# Normalize factors and add to new dataframe
if st.sidebar.checkbox("Invert Factor"):
Expand Down

0 comments on commit d5d3816

Please sign in to comment.