}\r
}\r
\r
- // This method tests the loading of horizontally formatted Jronn output file\r
+ // Potential Bug :- Sequence names are shortened to 2-3 letters\r
+ @Test\r
+ public void testReadFastaWriteClustal() {\r
+ \r
+ try {\r
+ FileInputStream fio = new FileInputStream(\r
+ AllTestSuit.TEST_DATA_PATH + "TO1381.fasta");\r
+ assertNotNull(fio);\r
+ List<FastaSequence> fseqs = SequenceUtil.readFasta(fio);\r
+ assertNotNull(fseqs);\r
+ fio.close();\r
+ \r
+ char gapChar = '-';\r
+ FileOutputStream fou = new FileOutputStream(\r
+ AllTestSuit.TEST_DATA_PATH + "TO1381.aln.written");\r
+ SequenceUtil.writeClustal(fou, fseqs, gapChar);\r
+ fou.close();\r
+ \r
+ } catch (FileNotFoundException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ } catch (IOException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ }\r
+ }\r
+\r
+ /**\r
+ * This test tests the loading of horizontally formatted Jronn output file\r
+ */\r
@Test\r
public void LoadJronnFile() {\r
\r
}\r
}\r
}\r
+\r