Skip to content

Commit

Permalink
removes print statement and adds justification to try/except block
Browse files Browse the repository at this point in the history
  • Loading branch information
ackagel committed Aug 9, 2022
1 parent c96cb3f commit a7a8f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ark/analysis/spatial_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def calculate_channel_spatial_enrichment(dist_matrices_dict, marker_thresholds,
current_fov_data.groupby(context_col)[cell_label_col].apply(list).to_dict()

for name_i, name_j in context_pairings:
print(f'Context pair: {name_i}, {name_j}')
# some FoVs may not have cells with a certain context, so they are skipped here
try:
context_cell_labels = context_nums_per_id[name_i]
Expand Down Expand Up @@ -403,6 +402,7 @@ def calculate_cluster_spatial_enrichment(all_data, dist_matrices_dict, included_
current_fov_pheno_data.groupby(context_col)[cell_label_col].apply(list).to_dict()

for name_i, name_j in context_pairings:
# some FoVs may not have cells with a certain context, so they are skipped here
try:
context_cell_labels = context_nums_per_id[name_i]
context_cell_labels.extend(context_nums_per_id[name_j])
Expand Down

0 comments on commit a7a8f8b

Please sign in to comment.