Skip to content

Commit

Permalink
Update filtering_workflows.py
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva authored Jun 5, 2024
1 parent 7605640 commit d466e59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sparcscore/pipeline/filtering_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class filtering_match_nucleus_to_cytosol(BaseFiltering):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.filter_threshold = self.config["filter_threshold"]
self.filtering_threshold = self.config["filtering_threshold"]

# allow for optional downsampling to improve computation time
if "downsampling_factor" in self.config.keys():
Expand All @@ -42,10 +42,10 @@ def process(self, input_masks):

# perform filtering
filter = MatchNucleusCytosolIds(
filter_config=self.filter_threshold,
downsample_factor=self.N,
smoothing_kernel_size=self.kernel_size,
filtering_threshold=self.filtering_threshold,
downsampling_factor=self.N,
erosion_dilation=self.erosion_dilation,
smoothing_kernel_size=self.kernel_size,
)
nucleus_cytosol_pairs = filter.generate_lookup_table(
input_masks[0], input_masks[1]
Expand Down

0 comments on commit d466e59

Please sign in to comment.