Skip to content

Commit

Permalink
Update subject ID list
Browse files Browse the repository at this point in the history
1. Iterate over single subject ID from the list provided.
  • Loading branch information
EshaniHS committed Aug 23, 2024
1 parent b9a4e7f commit ed9b9af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions genomics-apps/mendelianScreening.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,13 @@ def decorate_conditions(condition_df, df_final, selected_genes):
# Streamlit sidebar for user inputs
st.sidebar.title("Genetic Variant Information")
subject_ids = ['HG00403', 'HG00406', 'HG02657', 'NA18498', 'NA18499', 'NA18871', 'NA19210', 'NA19247', 'NB6TK329']
subject = st.sidebar.multiselect("Enter Subject ID", subject_ids, default=None)
selected_subjects = st.sidebar.multiselect("Enter Subject ID", subject_ids, default=None)

# Check if exactly one subject is selected
if len(selected_subjects) == 1:
subject = selected_subjects[0]
elif len(selected_subjects) > 1:
st.warning("Please select only one Subject ID.")

genes = list(gene_ranges.keys())
selected_genes = st.sidebar.multiselect("Select Genes", genes, default=None)
Expand Down Expand Up @@ -781,7 +787,7 @@ def decorate_conditions(condition_df, df_final, selected_genes):
st.warning("Please enter both Subject ID \
and select at least one Gene.")
else:
st.write("Please enter a Subject ID, select Genes, \
st.write("Please select a Subject ID, select Genes, \
and click 'Run' in the sidebar to start the analysis.")

st.markdown("---")

0 comments on commit ed9b9af

Please sign in to comment.