Skip to content

Commit

Permalink
fixed filtering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Aug 14, 2024
1 parent 4220692 commit d950fb7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lusSTR/wrappers/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,12 @@ def process_input(
data_type,
output_type,
strand,
nofilters,
nofiltering,
separate,
custom,
sex,
info,
):
print(nofilters)
full_df = pd.read_csv(f"{input_name}.txt", sep="\t")
if custom:
seq_col = "Custom_Range_Sequence"
Expand All @@ -463,7 +462,7 @@ def process_input(
if strand == "uas"
else "Forward_Strand_Bracketed_Notation"
)
if nofilters:
if nofiltering:
full_df["allele_type"] = "real_allele"
marker_plots(full_df, input_name, sex)
if output_type == "efm" or output_type == "mpsproto":
Expand Down Expand Up @@ -508,7 +507,6 @@ def main(
if output_dir is None:
raise ValueError("No output specified using --out.")
if sex:
print(nofilters)
outpath_sex = f"{output_dir}/ystrs/"
input_name_sex = f"{os.path.splitext(input)[0]}_sexloci"
process_input(
Expand All @@ -526,16 +524,15 @@ def main(
)
input_name = os.path.splitext(input)[0]
outpath = output_dir
print(nofilters)
process_input(
input_name,
outpath,
profile_type,
data_type,
output_type,
strand,
separate,
nofilters,
separate,
custom,
sex,
info,
Expand Down

0 comments on commit d950fb7

Please sign in to comment.