Skip to content

Commit

Permalink
updated filter script from real_allele to Typed
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Sep 24, 2024
1 parent cdb411b commit c496e7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lusSTR/cli/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,7 @@ def show_STR_page():
f"{st.session_state.output}_custom_range"
)
else:
file = (
f"{wd_dirname}/{st.session_state.output}/{st.session_state.output}"
)
file = f"{wd_dirname}/{st.session_state.output}/{st.session_state.output}"
try:
sequence_info = pd.read_csv(f"{file}_sequence_info.csv")
interactive_setup(sequence_info, file)
Expand Down
2 changes: 1 addition & 1 deletion lusSTR/wrappers/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def make_plot(df, sample_id, sameyaxis=False, filters=False, at=True):
sample_df = df[df["SampleID"] == sample_id].copy()
# sample_id = f"{id}_sexchr" if sex else id
conditions = [
sample_df["allele_type"].str.contains("real"),
sample_df["allele_type"].str.contains("Typed"),
sample_df["allele_type"].str.contains("BelowAT"),
sample_df["allele_type"].str.contains("stutter"),
]
Expand Down

0 comments on commit c496e7f

Please sign in to comment.