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

Q: Error when using bedgraph option: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException #91

Open
jamesc99 opened this issue Nov 16, 2021 · 1 comment

Comments

@jamesc99
Copy link

Hey, I am using hmmr and I encountered some problems. when I use the default syntax (java -jar HMMRATAC_V1.2.4_exe.jar -b ATACseq.sorted.bam -i ATACseq.sorted.bam.bai -g genome.info), it works good. but when I add a --bedgraph option to it (java -jar HMMRATAC_V1.2.4_exe.jar -b ATACseq.sorted.bam -i ATACseq.sorted.bam.bai -g genome.info --bedgraph), I will get error below:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at HMMR_ATAC.ArgParser.set(ArgParser.java:383)
at HMMR_ATAC.ArgParser.(ArgParser.java:70)
at HMMR_ATAC.Main_HMMR_Driver.main(Main_HMMR_Driver.java:104)

I dont know why and I would be really appreciate if you have any idea. thanks

@EvanTarbell
Copy link
Collaborator

You have to put the word "True" after --bedgraph. ie:
java -jar HMMRATAC_V1.2.4_exe.jar -b ATACseq.sorted.bam -i ATACseq.sorted.bam.bai -g genome.info --bedgraph True
--bedgraph isnt a "flag" option, so the argument parser (which is throwing the error) is expecting something after it.
Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants