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

list index out of range #28

Closed
agos316 opened this issue Jun 14, 2021 · 5 comments
Closed

list index out of range #28

agos316 opened this issue Jun 14, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@agos316
Copy link

agos316 commented Jun 14, 2021

Hi,
Everything seems to work until selection of candidates for full alignment.

"var_qual_cut_off = variant_qual_list[:int(var_pct_full * len(variant_qual_list))][-1]
IndexError: list index out of range"

Is there a way to bypass this or the reason for this error?

thanks

Marc

@zhengzhenxian
Copy link
Collaborator

zhengzhenxian commented Jun 15, 2021

Hi, Marc,

Thanks for trying out Clair3. For us to pinpoint the problem, could you send the running log ${OUTPUT_DIR}/run_clair3.log and the log directory ${OUTPUT_DIR}/log to zxzheng@cs.hku.hk?

BTW, were you using the most recently released v0.1-r3 version?

@agos316
Copy link
Author

agos316 commented Jun 15, 2021

Zheng,

It is no problem, the clair software works great for my application. let me gather the files and send them. Additionally, yes I am using v0.1-r3

Best

@zhengzhenxian
Copy link
Collaborator

zhengzhenxian commented Jun 17, 2021

Hi, Marc,

Thanks for sending over your log, we confirmed it is a bug in Clair3 that will be triggered when candidate variants are too few. We updated the code with a boundary check (preprocess/SelectQual.py line 52 and line 70, preprocess/SelectCandidates.py line 234). The fix will be included in r4 that will be rollout by the end of June.

@aquaskyline aquaskyline added the bug Something isn't working label Jun 17, 2021
@agos316
Copy link
Author

agos316 commented Jun 17, 2021

Look forward to the update. Thanks for your help.

@aquaskyline
Copy link
Member

fixed in v0.1-r4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants