From 8fdcd986015eea44e8a458b5585557503b93b13a Mon Sep 17 00:00:00 2001 From: rnmitchell Date: Wed, 6 Sep 2023 09:45:56 -0400 Subject: [PATCH] fixed detection threshold --- lusSTR/scripts/filter_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lusSTR/scripts/filter_settings.py b/lusSTR/scripts/filter_settings.py index b845a17c..9edb028b 100644 --- a/lusSTR/scripts/filter_settings.py +++ b/lusSTR/scripts/filter_settings.py @@ -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