Skip to content

Commit

Permalink
exclude empty pucks when default matches: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
danilexn committed Jan 18, 2024
1 parent 3dc82ca commit 79ffb15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spacemake/snakemake/main.smk
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,8 @@ rule count_barcode_matches:
'matching_ratio': [matching_ratio],
})], ignore_index=True, sort=False)

above_threshold_mask = out_df.matching_ratio >= params['run_mode_variables']['spatial_barcode_min_matches']
# we use > so whenever default: 0 we exclude empty pucks
above_threshold_mask = out_df.matching_ratio > params['run_mode_variables']['spatial_barcode_min_matches']
out_df['pass_threshold'] = 0
out_df['pass_threshold'][above_threshold_mask] = 1

Expand Down

0 comments on commit 79ffb15

Please sign in to comment.