I'm working on making some sequence logos and I can't seem to generate the centroid sequence using the get_centroid_seq function. I tried following the example provided in the function and I receive the same TypeError.
python = 3.8.13
pandas = 1.5.0
tcrdist3 = 0.2.2
from tcrdist.adpt_funcs import get_centroid_seq
seqs = ['CASSEILAALGTQYF', 'CASSWTSRETQYF', 'CASSLAQETQYF', 'CASSLAPGDVSQYF', 'CASSWDQETQYF', 'CASSLWWDSGANVLTF', 'CASSLARTLSSGANVLTF', 'CASIPGTLFTFSGANVLTF', 'CASSFASSGANVLTF', 'CASSYRLLSGANVLTF']
get_centroid_seq(seqs)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tcrdist/adpt_funcs.py", line 275, in get_centroid_seq
seqs = df[cdr3_name]
TypeError: list indices must be integers or slices, not str
Hello,
I'm working on making some sequence logos and I can't seem to generate the centroid sequence using the get_centroid_seq function. I tried following the example provided in the function and I receive the same TypeError.
python = 3.8.13 pandas = 1.5.0 tcrdist3 = 0.2.2