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

KeyError: '40075' Easy coassembly binning mode #151

Open
gabrieleghiotto opened this issue Feb 7, 2024 · 2 comments
Open

KeyError: '40075' Easy coassembly binning mode #151

gabrieleghiotto opened this issue Feb 7, 2024 · 2 comments

Comments

@gabrieleghiotto
Copy link

Hi, I reported the following error.

2024-02-07 10:09:00 rasputin SemiBin[3664292] INFO Training model and clustering.
2024-02-07 10:09:01 rasputin SemiBin[3664292] INFO Start training from one sample.
2024-02-07 10:09:13 rasputin SemiBin[3664292] INFO Training model...
0%| | 0/15 [05:43<?, ?it/s]
Traceback (most recent call last):
File "/home/bioinfo/anaconda3/envs/semibin2/bin/SemiBin", line 10, in
sys.exit(main1())
^^^^^^^
File "/home/bioinfo/anaconda3/envs/semibin2/lib/python3.12/site-packages/SemiBin/main.py", line 1514, in main1
main2(args, is_semibin2=False)
File "/home/bioinfo/anaconda3/envs/semibin2/lib/python3.12/site-packages/SemiBin/main.py", line 1481, in main2
single_easy_binning(
File "/home/bioinfo/anaconda3/envs/semibin2/lib/python3.12/site-packages/SemiBin/main.py", line 1162, in single_easy_binning
training(logger, [args.contig_fasta],
File "/home/bioinfo/anaconda3/envs/semibin2/lib/python3.12/site-packages/SemiBin/main.py", line 1001, in training
model = train(
^^^^^^
File "/home/bioinfo/anaconda3/envs/semibin2/lib/python3.12/site-packages/SemiBin/semi_supervised_model.py", line 218, in train
train_input_1.append(train_data_input[contig2ix[str(link[0])]])
~~~~~~~~~^^^^^^^^^^^^^^
KeyError: '40075'

SemiBinRun.log

I attached also the log file. Could you please provide suggestion on how to solve it?

Best,
Gabriele

@psj1997
Copy link
Collaborator

psj1997 commented Feb 13, 2024

Hi,

Sorry for the late reply.

Can you show me the command line you used and the name of contig in the fasta file?

Sincerely
Shaojun

@gabrieleghiotto
Copy link
Author

SemiBin2 single_easy_bin -i contig.fa -b */.sorted.bam -o co-assembly_output

output.txt

The fasta file used was bigger, I attached only the first 10 sequences. The header is an incremental number from 1 to N.

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

2 participants