kmayerb / tcrdist3

flexible CDR based distance metrics
MIT License
53 stars 17 forks source link

Update adpt_funcs.py #43

Closed kmayerb closed 3 years ago

kmayerb commented 3 years ago

To Address issue #42

We designed this with one subject per file in mind.

If I understand, the file Tissue_Bioidentity_TCRdist.tsv have multiple subject ids that you want to retain

Once all the tests pass and this PR has been added to master:

you can reinstall with

pip install git+https://github.com/kmayerb/tcrdist3.git@master

Then you can add 'subject' to the new argument:

use_cols : list ['bio_identity', 'productive_frequency', 'templates', 'rearrangement', 'subject'] list of columns to retain from original input file. Add 'subject' if you wish to retain the subject or leave it blank to use filename as before.