IUPred result readers. IUpred binaries compilation scripts. IUpred executable descrip...
[jabaws.git] / testsrc / compbio / data / sequence / SequenceUtilTester.java
index 7db01ee..d992216 100644 (file)
@@ -19,6 +19,7 @@ import static org.testng.AssertJUnit.assertNotNull;
 import static org.testng.AssertJUnit.assertTrue;\r
 import static org.testng.AssertJUnit.fail;\r
 \r
+import java.io.File;\r
 import java.io.FileInputStream;\r
 import java.io.FileNotFoundException;\r
 import java.io.FileOutputStream;\r
@@ -287,6 +288,40 @@ public class SequenceUtilTester {
        }\r
 \r
        @Test\r
+       public void testReadIUPredForShortAndLongDisorder() {\r
+               try {\r
+                       Map<String, Score> scores = SequenceUtil.readIUPred(new File(\r
+                                       AllTestSuit.TEST_DATA_PATH, "output.long"),\r
+                                       IUPredResult.Long);\r
+                       ScoreManager man = ScoreManager.newInstanceSingleScore(scores);\r
+                       man.writeOut(new PrintWriter(System.out, true));\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getLocalizedMessage());\r
+               } catch (UnknownFileFormatException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getLocalizedMessage());\r
+               }\r
+       }\r
+\r
+       @Test\r
+       public void testReadIUPredForGlobDomain() {\r
+               try {\r
+                       Map<String, Score> scores = SequenceUtil.readIUPred(new File(\r
+                                       AllTestSuit.TEST_DATA_PATH, "output.glob"),\r
+                                       IUPredResult.Glob);\r
+                       ScoreManager man = ScoreManager.newInstanceSingleScore(scores);\r
+                       man.writeOut(new PrintWriter(System.out, true));\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getLocalizedMessage());\r
+               } catch (UnknownFileFormatException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getLocalizedMessage());\r
+               }\r
+       }\r
+\r
+       @Test\r
        public void testReadAAConResults() {\r
                try {\r
                        InputStream inStream = new FileInputStream(\r