Skip to content

Commit

Permalink
fixed detection threshold (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell authored Sep 7, 2023
1 parent c80eaf4 commit cf07cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lusSTR/scripts/filter_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def multiple_allele_thresholds(metadata, locus_reads, locus_allele_info):
for i in range(len(locus_allele_info)): # check for alleles below detection threshold
quest_al_reads = locus_allele_info.loc[i, "Reads"]
if thresholds("Detection", metadata, locus_reads, quest_al_reads)[1] is False:
locus_allele_info = locus_allele_info.drop(locus_allele_info.index[i])
locus_allele_info = locus_allele_info.drop(index=i)
locus_reads = thresholds("Detection", metadata, locus_reads, quest_al_reads)[0]
locus_allele_info = locus_allele_info.reset_index(drop=True)
for i in range(len(locus_allele_info)): # check for alleles below AT threshold
Expand Down

0 comments on commit cf07cc2

Please sign in to comment.