import static org.junit.Assert.assertTrue;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
import org.junit.Before;
AlignmentI al;
+ String pdbStr = "examples/2GIS.pdb";
@Before
public void setup() throws Exception
{
FileLoader loader = new FileLoader(false);
- AlignFrame af = loader.LoadFileWaitTillLoaded("examples/1gaq.txt",
+ AlignFrame af = loader.LoadFileWaitTillLoaded(pdbStr,
FormatAdapter.FILE);
al = af.getViewport().getAlignment();
}
}
@Test
+ public void checkPDBannotationSource()
+ {
+
+ for (SequenceI asq : al.getSequences())
+ {
+ for (AlignmentAnnotation aa : asq.getAnnotation())
+ {
+
+ System.out.println("CalcId: " + aa.getCalcId());
+ assertTrue(MCview.PDBfile.isCalcIdForFile(aa.getCalcId(), pdbStr));
+ }
+ }
+ }
+
+ @Test
public void checkAnnotationWiring()
{
assertTrue(al.getAlignmentAnnotation() != null);