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 in simulate.py #3

Open
jopineda opened this issue Apr 12, 2019 · 1 comment
Open

List index out of range in simulate.py #3

jopineda opened this issue Apr 12, 2019 · 1 comment

Comments

@jopineda
Copy link

Hi,

I hope you are doing well! I am trying to run the samovar pipeline and I get the following issue:

Traceback (most recent call last): File "/u/jpineda/tools/samovar/pipeline/1.simulate/simulate.py", line 253, in <module> regions = readIntervalFile(args.varfile,simMode,hetMode,homMode) File "/u/jpineda/tools/samovar/pipeline/1.simulate/simulate.py", line 29, in readIntervalFile if len(region[3]) != 1 or len(region[4]) != 1 or "PASS" not in region[6] or ("0|1" not in region[9] and "1|0" not in region[9]): IndexError: list index out of range Traceback (most recent call last): File "/u/jpineda/tools/samovar/pipeline/1.simulate/simulate.py", line 253, in <module> regions = readIntervalFile(args.varfile,simMode,hetMode,homMode) File "/u/jpineda/tools/samovar/pipeline/1.simulate/simulate.py", line 35, in readIntervalFile if len(region[3]) != 1 or len(region[4]) != 1 or "PASS" not in region[6] or ("0|0" not in region[9] and "1|1" not in region[9]): IndexError: list index out of range

I would really appreciate any help on this. Thanks in advance!

@cdarby
Copy link
Owner

cdarby commented Apr 12, 2019

The VCF file appears to be formatted differently than the script expects. Can you isolate the offending line?

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