@BeforeClass
public static void setUpBeforeClass() throws Exception
{
-
-
+
jalview.bin.Cache.initLogger();
disc = JalviewJabawsTestUtils.getJabawsDiscoverer();
-
+
for (Jws2Instance svc : disc.getServices())
{
-
+
if (svc.getServiceTypeURI().toLowerCase().contains("rnaalifoldws"))
{
rnaalifoldws = svc;
}
}
-
+
System.out.println("State of rnaalifoldws: " + rnaalifoldws);
-
- if (rnaalifoldws == null) System.exit(0);
-
+
+ if (rnaalifoldws == null)
+ System.exit(0);
+
jalview.io.FileLoader fl = new jalview.io.FileLoader(false);
-
+
af = fl.LoadFileWaitTillLoaded(testseqs, jalview.io.FormatAdapter.FILE);
-
+
assertNotNull("Couldn't load test data ('" + testseqs + "')", af);
-
+
}
@AfterClass
@Test
public void testRNAStructExport()
{
-
-
+
alifoldClient = new RNAalifoldClient(rnaalifoldws, af, null, null);
-
+
af.getViewport().getCalcManager().startWorker(alifoldClient);
-
-
+
do
{
try
}
;
} while (af.getViewport().getCalcManager().isWorking());
-
-
+
AlignmentI orig_alig = af.getViewport().getAlignment();
-
+
testAnnotationFileIO("Testing RNAalifold Annotation IO", orig_alig);
}
{
try
{
- // what format would be appropriate for RNAalifold annotations?
+ // what format would be appropriate for RNAalifold annotations?
String aligfileout = new FormatAdapter().formatSequences("PFAM",
al.getSequencesArray());
-
-
+
String anfileout = new AnnotationFile().printAnnotations(
al.getAlignmentAnnotation(), al.getGroups(),
al.getProperties());