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

Java exception when running RO2 in CIRI-Full #23

Open
sgardiner01 opened this issue Nov 29, 2022 · 3 comments
Open

Java exception when running RO2 in CIRI-Full #23

sgardiner01 opened this issue Nov 29, 2022 · 3 comments

Comments

@sgardiner01
Copy link

Hello,

I'm not having any problems running the CIRI-full module up until the RO2 module. At that point, I'm getting this exception:

Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 1, length 0
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at RO2.getro2(RO2.java:238)

Any ideas?

@felixhell2004
Copy link

Hello, I had the similar problems shown at the RO2 step. Finally, I fixed the problem by rerun the index contrusted by bwa again.
I think the option '-a bwtsw' of bwa index is necessary.

@Kevinzjy
Copy link
Member

Hi @felixhell2004 , empty lines in the reference fasta could also cause this error. The reference fasta should be strictly in uncompressed fasta format without any blank lines.

Hello, I had the similar problems shown at the RO2 step. Finally, I fixed the problem by rerun the index contrusted by bwa again. I think the option '-a bwtsw' of bwa index is necessary.

@sgardiner01
Copy link
Author

Hey @felixhell2004 and @Kevinzjy, I solved this problem by deleting the line breaks in my reference fasta to make it a single 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

3 participants