We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7640e commit 86f4514Copy full SHA for 86f4514
1 file changed
src/scirpy/ir_dist/metrics.py
@@ -1346,6 +1346,9 @@ def __init__(
1346
else:
1347
raise ValueError("`chain_type` must be 'VJ' or 'VDJ' when `base_matrix='tcrblosum'`.")
1348
1349
+ # Use one `distance_offset` across alpha and beta matrices so equal substitution scores
1350
+ # map to equal distances for both chain types. This keeps VJ and VDJ distances on a
1351
+ # shared scale for clonotype clustering.
1352
off_diagonal = ~np.eye(len(self.matrix_alphabet), dtype=bool)
1353
max_score = int(
1354
max(
0 commit comments