BioJava
ウィキペディアから非常に単純なサンプルのコピーと貼り付けを実行しようとしました。
package test;
import org.biojava.nbio.data.sequence.FastaSequence;
import org.biojava.nbio.ronn.Jronn;
public class Run {
public static void main(String[] args) {
FastaSequence fsequence = new FastaSequence("Prot1", "LLRGRHLMNGTMIMRPWNFLNDHHFPKFFPHLIEQQAIWLADWWRKKHC" +
"RPLPTRAPTMDQWDHFALIQKHWTANLWFLTFPFNDKWGWIWFLKDWTPGSADQAQRACTWFFCHGHDTN" +
"CQIIFEGRNAPERADPMWTGGLNKHIIARGHFFQSNKFHFLERKFCEMAEIERPNFTCRTLDCQKFPWDDP");
Jronn.Range[] ranges = Jronn.getDisorder(fsequence);
}
}
ただし、実行すると、次の例外が発生します。
Exception in thread "main" java.lang.ExceptionInInitializerError
at test.Run.main(Run.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:864)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextFloat(Scanner.java:2345)
at org.biojava.nbio.ronn.ModelLoader.loadModels(ModelLoader.java:188)
at org.biojava.nbio.ronn.Jronn.<clinit>(Jronn.java:55)
... 6 more
Process finished with exit code 1
バージョン:
"biojava-protein-disorder" 4.1.0