Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When training the model, the code reports an error #2

Open
yanpinlu opened this issue Sep 13, 2023 · 0 comments
Open

When training the model, the code reports an error #2

yanpinlu opened this issue Sep 13, 2023 · 0 comments

Comments

@yanpinlu
Copy link

When I run:
python3 predictor/run_tcrconv.py --name b_small
--dataset training_data/vdjdb-b-small.csv
--mode cv
--h_cdr31 CDR3B --h_long1 LongB
--folds training_data/folds_vdjdb-b-small. npy
--fold_num 5
--epitope_labels training_data/unique_epitopes_vdjdb-b-small. npy --chains B --embedfile1 check_embs.bin
What should I do if the following error occurs

Traceback (most recent call last):
File "predictor/run_tcrconv.py", line 19, in
loader, n_categories, n_feat = utils.get_dataloaders(p,device=device,usetypes=usetypes)
File "/home/luyanping/data/TCR_epitope_prediction/Compare_models_same_data/tcrconv/tcrconv/predictor/utils.py", line 509, in get_datalo
embeddings = get_embeddings(tcr_emb_dict,cdr3s,cdr3s,maxlen(cdr3s),append_onehot=p['append_oh'],device=device)
File "/home/luyanping/data/TCR_epitope_prediction/Compare_models_same_data/tcrconv/tcrconv/predictor/utils.py", line 451, in get_embedd
nfeat=tcr_emb_dict[longs[0]].shape[0]
TypeError: list indices must be integers or slices, not str

@emmijokinen @Dumitrescu-Alexandru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant