Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lusSTR/cli/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ def show_SNP_page():

clicked_wd = col1.button("Please Select An Output Folder")
if clicked_wd:
wd = folder_picker_dialog()
st.session_state.wd_dirname = wd
wd_dirname = folder_picker_dialog()
st.session_state.wd_dirname = wd_dirname

# Display selected path
if st.session_state.wd_dirname:
Expand All @@ -937,7 +937,7 @@ def show_SNP_page():
if st.button("Submit"):

# Check if all required fields are filled
if analysis_software and samp_input and output and wd_dirname:
if analysis_software and samp_input and output and st.session_state.wd_dirname:

# Validate output prefix
if not validate_prefix(output):
Expand Down Expand Up @@ -976,7 +976,7 @@ def show_SNP_page():
command = ["lusstr", "snps", "all"]

# Specify WD to lusSTR
if wd_dirname:
if st.session_state.wd_dirname:
command.extend(["-w", st.session_state.wd_dirname + "/"])

# Run lusSTR command in terminal
Expand Down
2 changes: 1 addition & 1 deletion lusSTR/wrappers/snps_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def straitrazor_filtering(sr_df, thresh):
if sr_df.loc[i, "Issues"] == "Allele call does not match expected allele!":
sr_df = sr_df.drop(i)
else:
if allele_reads < (total_snp_reads * thresh):
if allele_reads < (total_snp_reads * thresh) or allele_reads < 11:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a detection threshold of 10

sr_df.loc[i, "Reads"] = 0
return sr_df

Expand Down