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

IndexOutOfBoundsException #2

Open
IdoBar opened this issue Jan 9, 2018 · 1 comment
Open

IndexOutOfBoundsException #2

IdoBar opened this issue Jan 9, 2018 · 1 comment

Comments

@IdoBar
Copy link

IdoBar commented Jan 9, 2018

Hi there,

I'm trying to impute genotypes from a .vcf file (v4.2 from Stacks) and I get the following error (not very informative):

java -jar ..\..\mapping_tools\LB-Impute.jar -method impute -f gstacks_no
_RL_Homo_pol_GATK.vcf -window 7 -o gstacks_no_RL_Homo_pol_imputed.vcf -parents ILL6002_RF,ILL7537_RF -parentimpute

That's the output:

Imputing sequence 9
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at imputation.ImputeBySample.imputebysample(ImputeBySample.java:31)
        at imputation.Impute.impute(Impute.java:54)
        at imputation.ImputeMain.start(ImputeMain.java:97)
        at imputation.ImputeMain.main(ImputeMain.java:34)

I guess it has to do with the .vcf format, but I have no idea what can it be.
See example input file.
Any ideas?

@asifzubair
Copy link

Getting the same error. were you able to resolve it, @IdoBar ? Thanks!

a.

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