Skip to content

Commit

Permalink
fix: change binner to lower case to ensure safe checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysnewell authored Jan 11, 2024
1 parent a729b01 commit 6450fc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aviary/modules/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def __init__(self,
self.skip_binners = ["maxbin2", "concoct"]
if args.extra_binners:
for binner in args.extra_binners:
binner = binner.lower()
if binner == "maxbin" or binner == "maxbin2":
self.skip_binners.remove("maxbin2")
elif binner == "concoct":
Expand All @@ -132,6 +133,7 @@ def __init__(self,

if args.skip_binners:
for binner in args.skip_binners:
binner = binner.lower()
if binner == "metabat":
self.skip_binners.extend(["metabat_sens", "metabat_ssens", "metabat_spec", "metabat_sspec", "metabat2"])
elif binner == "metabat1":
Expand Down Expand Up @@ -622,4 +624,4 @@ def fraction_to_percent(val):
val = float(val)
if val <= 1:
return val * 100
return val
return val

0 comments on commit 6450fc6

Please sign in to comment.