diff --git a/src/boltzgen/task/filter/filter.py b/src/boltzgen/task/filter/filter.py index 794a6968..bbd537df 100644 --- a/src/boltzgen/task/filter/filter.py +++ b/src/boltzgen/task/filter/filter.py @@ -399,9 +399,9 @@ def filter_df(self): filter_col = f"pass_{feat}_filter" filter_cols.append(filter_col) if low: - self.df[filter_col] = self.df[feat] <= threshold + self.df[filter_col] = self.df[feat] < threshold else: - self.df[filter_col] = self.df[feat] >= threshold + self.df[filter_col] = self.df[feat] > threshold self.df["num_filters_passed"] += self.df[filter_cols].all(axis=1) self.df["pass_filters"] = self.df[filter_cols].all(axis=1)