@Test
public void pfamFileIO() throws Exception
{
- test(new File(PfamFile));
- AppletFormatAdapter af = new AppletFormatAdapter();
- AlignmentI al = af.readFile(PfamFile, af.FILE, new IdentifyFile().Identify(PfamFile, af.FILE));
- int numpdb=0;
- for (SequenceI sq:al.getSequences())
+ testFileIOwithFormat(new File(PfamFile), "STH");
+ }
+ @Test
+ public void pfamFileDataExtraction() throws Exception
+ { AppletFormatAdapter af = new AppletFormatAdapter();
+ AlignmentI al = af.readFile(PfamFile, af.FILE,
+ new IdentifyFile().Identify(PfamFile, af.FILE));
+ int numpdb = 0;
+ for (SequenceI sq : al.getSequences())
+ {
+ if (sq.getPDBId() != null)
{
- if (sq.getPDBId()!=null)
- {
- numpdb+=sq.getPDBId().size();
- }
+ numpdb += sq.getPDBId().size();
}
- assertTrue("PF00111 seed alignment has at least 1 PDB file, but the reader found none.",numpdb>0);
+ }
+ assertTrue(
+ "PF00111 seed alignment has at least 1 PDB file, but the reader found none.",
+ numpdb > 0);
}
+
@Test
public void rfamFileIO() throws Exception
{