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 when running advntr addmodel #67

Open
jsquaredosquared opened this issue Nov 25, 2023 · 0 comments
Open

IndexError when running advntr addmodel #67

jsquaredosquared opened this issue Nov 25, 2023 · 0 comments

Comments

@jsquaredosquared
Copy link

jsquaredosquared commented Nov 25, 2023

@mehrdadbakhtiari

Issue:
I get an IndexError when I try to run advntr addmodel. What can be done to fix this error?

Version:
adVNTR 1.3.3 (downloaded using conda)
(Note: I have tried to install the latest GitHub version but it fails to build because of a Cython CompileError.)

Command:

advntr addmodel \
-r ~/[...]/hg38_no-alt-no-random.fa \
-c 18 -s 57024495 -e 57024955 \
-p GTTATGTCCCTTATAGAATTTCACATATCCCTATTCTCAGACAGGAATAGGGATATGTGAGCTATGATA \
-g WDR7 \
-m vntr_data/hg38_selected_VNTRs_Illumina.db

Output:

Searching reference genome for regions with shared kmers with VNTR. It takes a few hours for human genome
Traceback (most recent call last):
  File "/home/jeffr/miniconda3/envs/advntr-test/bin/advntr", line 11, in <module>
    sys.exit(main())
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/__main__.py", line 138, in main
    add_model(args, addmodel_parser)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/advntr_commands.py", line 193, in add_model
    scaled_recruitment_score = vntr_finder.train_classifier_threshold(args.reference)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/profiler.py", line 8, in wrapper
    retval = func(*args, **kwargs)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/vntr_finder.py", line 687, in train_classifier_threshold
    hmm = self.get_vntr_matcher_hmm(read_length=read_length)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/vntr_finder.py", line 87, in get_vntr_matcher_hmm
    vntr_matcher = self.build_vntr_matcher_hmm(copies, flanking_region_size)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/profiler.py", line 8, in wrapper
    retval = func(*args, **kwargs)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/vntr_finder.py", line 69, in build_vntr_matcher_hmm
    vntr_matcher = get_read_matcher_model(left_flanking_region, right_flanking_region, patterns, copies)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/profiler.py", line 8, in wrapper
    retval = func(*args, **kwargs)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/hmm_utils.py", line 485, in get_read_matcher_model    model = get_suffix_matcher_hmm(left_flanking_region)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/profiler.py", line 8, in wrapper
    retval = func(*args, **kwargs)
  File "/home/jeffr/miniconda3/envs/advntr-test/lib/python3.6/site-packages/advntr/hmm_utils.py", line 317, in get_suffix_matcher_hmm    model.add_transition(unit_start, delete_states[0], delete_error)
IndexError: list index out of range
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