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

An error occurred while executing the ribodetector_cpu command. #55

Open
kinako0130 opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@kinako0130
Copy link

kinako0130 commented Dec 10, 2024

Hi, I encountered the following error.
Is there a solution for this?
I have tried using RiboDetector versions 0.3.1 and 0.3.0 installed via Conda.
Additionally, I tested it with Python versions 3.8.0 and 3.8.20.

Thank you in advance for your help.

Input command

ribodetector_cpu -t 20 -l 100 -i /datafilepath/SRR22266027_1_qc20.fastq -e norrna --chunk_size 256 -o /datafilepath/SRR22266027_rRNA.fastq --log /datafilepath/27_1.log

The output

2024-12-10 21:22:46 : INFO  Using high RECALL model
2024-12-10 21:22:46 : INFO  Log file: None
2024-12-10 21:22:46 : INFO  Classify reads with chunk size �[1m256�[0m
2024-12-10 21:22:46 : INFO  Writing output non-rRNA sequences into file: �[94m/datafilepath/SRR22266027_rRNA.fastq�[0m
Traceback (most recent call last):
  File "/opt/anaconda3/envs/ribodetector/bin/ribodetector_cpu", line 10, in <module>
    sys.exit(main())
  File "/opt/anaconda3/envs/ribodetector/lib/python3.8/site-packages/ribodetector/detect_cpu.py", line 822, in main
    seq_pred.detect()
  File "/opt/anaconda3/envs/ribodetector/lib/python3.8/site-packages/ribodetector/detect_cpu.py", line 599, in detect
    self.run_with_chunks()
  File "/opt/anaconda3/envs/ribodetector/lib/python3.8/site-packages/ribodetector/detect_cpu.py", line 500, in run_with_chunks
    for chunk in SeqEncoder.get_seq_chunks(*self.input,
  File "/opt/anaconda3/envs/ribodetector/lib/python3.8/site-packages/ribodetector/data_loader/seq_encoder.py", line 83, in get_seq_chunks
    seqs_chunk = list(islice(seq_iterator, chunk_size))
  File "/opt/anaconda3/envs/ribodetector/lib/python3.8/site-packages/ribodetector/data_loader/fastx_parser.py", line 21, in seq_parser
    if line[0] == '@' and record_line == 0:
IndexError: string index out of range
@dawnmy
Copy link
Member

dawnmy commented Dec 13, 2024

Could you show the first 8 lines in your /datafilepath/SRR22266027_rRNA.fastq file? It seems the fastq format was not correctly recognized by fastq parser.

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