Skip to content

distance_key is silently exchanged in define_clusters #687

@dansteiert

Description

@dansteiert

Report

I had trouble assiging the distance key in define_clonotypes, while digging for the issue I identified the issue (me!).

Although I still like to propose a change and can generate a pull request for it if one of my or another suggestion sounds good to you!

by defenition define_clonotypes, does not forward the distance_key to define_clonotype_clusters and thus does not allow for custom distance_keys here - as this is what define_clonotype_clusters does.
Setting distance_key is still possible but is silently redefined in define_clonotypes, which I would like to change.

suggestions:
a) send a log info if distance_key != "ir_dist_nt_identity" that this will be used instead.
b) drop distance_key from the input parameters.
c) both of the above (if passed as a kwargs)

Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions