Skip to content

Commit

Permalink
inclusive density threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
nlouwen committed Dec 12, 2024
1 parent fdbf1b9 commit 39141cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions big_scape/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ EXTEND_GAP_SCORE: -2
# as a percentage of total domains present in the compared record.
EXTEND_MAX_MATCH_PERC: 0.1

# CLUSTER
# GCF Calling
# Internal parameter of the Affinity Propagation clustering algorithm, governs the number
# of families created. Higher preference will result in more families and vice versa.
PREFERENCE: 0.0
# Connected component density threshold and Affinity Propagation preference to be used
# Connected component density threshold (incl.) and Affinity Propagation preference to be used
# on dense connected components.
DENSITY: 0.85
DENSE_PREFERENCE: -5.0
Expand Down
2 changes: 1 addition & 1 deletion big_scape/network/families.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate_families(

similarity_matrix, node_ids = edge_list_to_sim_matrix(connected_component)

if get_cc_density(connected_component) > BigscapeConfig.DENSITY:
if get_cc_density(connected_component) >= BigscapeConfig.DENSITY:
# if a connected component is highly connected, no (or less) splitting is needed
# run affinity propagation with a lower preference to find the best family center
labels, centers = aff_sim_matrix(
Expand Down

0 comments on commit 39141cf

Please sign in to comment.