pyrepseq icon indicating copy to clipboard operation
pyrepseq copied to clipboard

Support partial TCRdist calculation with incomplete information

Open andim opened this issue 1 year ago • 2 comments

Currently the TCRdist calculation on e.g. CDR3A will fail when no TRAV gene is in the dataframe. It would be preferable if each function worked with only its required input.

andim avatar Mar 19 '24 10:03 andim

Good point- do you know if raw tcrdist3 allows you to compute distances just for CDR3s? I remember thinking that it is possible to get CDR3-only distances but the code wants you to still have a v_gene column specified...

yutanagano avatar Mar 19 '24 15:03 yutanagano

Yes, it is possible using internal functions. Take a look in the find_neighbors_tcrdist function in nn.py for an example

andim avatar Mar 28 '24 21:03 andim