Skip to content

Commit

Permalink
Add explanation for max search depth
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Nov 6, 2024
1 parent e8f28d6 commit 6d32dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PopPUNK/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,9 @@ def __init__(self, outPrefix, ranks, max_search_depth, reciprocal_only, count_un
ClusterFit.__init__(self, outPrefix)
self.type = 'lineage'
self.preprocess = False
self.max_search_depth = max_search_depth+5
self.max_search_depth = max_search_depth+5 # Set to highest rank by default in main; need to store additional distances
# when there is redundancy (e.g. reciprocal matching, unique distance counting)
# or other sequences may be pruned out of the database
self.nn_dists = None # stores the unprocessed kNN at the maximum search depth
self.ranks = []
for rank in sorted(ranks):
Expand Down

0 comments on commit 6d32dcc

Please sign in to comment.