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

tuple index out of range error #13

Open
mja opened this issue Jun 14, 2022 · 1 comment
Open

tuple index out of range error #13

mja opened this issue Jun 14, 2022 · 1 comment

Comments

@mja
Copy link

mja commented Jun 14, 2022

When running the command

python PGxPOP/bin/PGxPOP.py --vcf chr10_HRC.vcf.gz --gene CYP2C19 --phased --build hg19 --batch --output cyp2c19 

I'm getting the error

Traceback (most recent call last):
  File "PGxPOP/bin/PGxPOP.py", line 308, in <module>
    cd.run()
  File "PGxPOP/bin/PGxPOP.py", line 54, in run
    results = self.process_gene(g)
  File "PGxPOP/bin/PGxPOP.py", line 68, in process_gene
    diplotypes, sample_variants, uncallable = self.get_calls(gene, gt_matrices)
  File "PGxPOP/bin/PGxPOP.py", line 177, in get_calls
    for samp in range(gt_mat[0].shape[1]):
IndexError: tuple index out of range

Here is a gist with the --debug output.

Is it possibly because not all of the variants are in the VCF file?

@mja
Copy link
Author

mja commented Jun 15, 2022

OK, I think I've gotten it to run by not using the --batch argument.

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