Search in sources :

Example 1 with SequencePageView

use of org.nextprot.api.core.domain.ui.page.impl.SequencePageView in project nextprot-api by calipho-sib.

the class PageViewTest method shouldDoIt.

@Ignore
@Test
public void shouldDoIt() throws Exception {
    // String entryName="NX_Q8WZ42";  // TITIN, 1st most annotated protein: 147ms processing
    // String entryName="NX_Q5VST9";  // OBSCN, 3rd most annotated protein:  25ms processing
    String entryName = "NX_P02649";
    // String entryName="NX_P52701";
    // String entryName="NX_P01308";
    Entry entry = entryBuilderService.build(EntryConfig.newConfig(entryName).withEverything());
    System.out.println("- - - - - before - - - - -");
    System.out.println("annot categ : " + entry.getAnnotationsByCategory().size());
    System.out.println("annot count : " + entry.getAnnotations().size());
    System.out.println("xrefs       : " + entry.getXrefs().size());
    showXref(entry, "UniProt");
    PageView pageDef = new SequencePageView();
    long t0 = System.currentTimeMillis();
    List<DbXref> xrefs = pageDef.getFurtherExternalLinksXrefs(entry);
    t0 = System.currentTimeMillis() - t0;
    System.out.println("- - - - - after  - - - - -");
    showXref(xrefs);
    System.out.println("xrefs       : " + xrefs.size());
    System.out.println("proc time ms: " + t0);
    System.out.println("- - - - - end  - - - - -");
}
Also used : SequencePageView(org.nextprot.api.core.domain.ui.page.impl.SequencePageView) PageView(org.nextprot.api.core.domain.ui.page.PageView) DbXref(org.nextprot.api.core.domain.DbXref) Entry(org.nextprot.api.core.domain.Entry) SequencePageView(org.nextprot.api.core.domain.ui.page.impl.SequencePageView) Ignore(org.junit.Ignore) WebIntegrationBaseTest(org.nextprot.api.web.dbunit.base.mvc.WebIntegrationBaseTest) Test(org.junit.Test)

Aggregations

Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 DbXref (org.nextprot.api.core.domain.DbXref)1 Entry (org.nextprot.api.core.domain.Entry)1 PageView (org.nextprot.api.core.domain.ui.page.PageView)1 SequencePageView (org.nextprot.api.core.domain.ui.page.impl.SequencePageView)1 WebIntegrationBaseTest (org.nextprot.api.web.dbunit.base.mvc.WebIntegrationBaseTest)1