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

IndexError: list index out of range when running remora dataset prepare due to k-mer table parsing #190

Open
iza-mcac opened this issue Sep 28, 2024 · 0 comments

Comments

@iza-mcac
Copy link

Hello,
I'm encountering an error while trying to run the remora dataset prepare command. The issue seems to occur when loading the k-mer table provided (5mer_levels_v1.txt). Below is the command I ran and the traceback of the error:

Command:

remora \
  dataset prepare \
  output_pod5s/ \
  output_dorado/calls_nonmod.bam \
  --refine-kmer-level-table /home/izamamede/nanopore_rs/remora/ref/5mer_levels_v1.txt \
  --refine-rough-rescale \
  --motif CG 0 \
  --mod-base-control

Error:

Traceback (most recent call last):
  File "/home/izamamede/.conda/envs/remora_py38/bin/remora", line 8, in <module>
    sys.exit(run())
  File "/home/izamamede/.conda/envs/remora_py38/lib/python3.8/site-packages/remora/main.py", line 71, in run
    cmd_func(args)
  File "/home/izamamede/.conda/envs/remora_py38/lib/python3.8/site-packages/remora/parsers.py", line 300, in run_dataset_prepare
    sig_map_refiner = SigMapRefiner(
  File "<string>", line 17, in __init__
  File "/home/izamamede/.conda/envs/remora_py38/lib/python3.8/site-packages/remora/refine_signal_map.py", line 294, in __post_init__
    self.load_kmer_table()
  File "/home/izamamede/.conda/envs/remora_py38/lib/python3.8/site-packages/remora/refine_signal_map.py", line 230, in load_kmer_table
    self.kmer_len = len(kmer_fp.readline().split()[0])
IndexError: list index out of range

Linux v: Ubuntu 22.04.3 LTS, 22.04

Could you please investigate this issue? Let me know if you need any further information or files for troubleshooting.

Thanks!

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