Package org.obolibrary.oboformat.parser

Examples of org.obolibrary.oboformat.parser.XrefExpander$ReverseGenusDifferentiaExpansion


public class XrefExpanderTest extends OboFormatTestBasics {

    @Test
    public void testExpand() {
        OBODoc obodoc = parseOBOFile("treat_xrefs_test.obo");
        XrefExpander x = new XrefExpander(obodoc);
        x.expandXrefs();
        OBODoc tdoc = obodoc.getImportedOBODocs().iterator().next();
        assertTrue(!tdoc.getTermFrames().isEmpty());
        Frame termFrame = tdoc.getTermFrame("ZFA:0001689");
        assert termFrame != null;
        assertEquals(2, termFrame.getClauses(OboFormatTag.TAG_INTERSECTION_OF)
View Full Code Here


    }

    @Test
    public void testExpandIntoSeparateBridges() {
        OBODoc obodoc = parseOBOFile("treat_xrefs_test.obo");
        XrefExpander x = new XrefExpander(obodoc, "bridge");
        x.expandXrefs();
        int n = 0;
        for (OBODoc tdoc : obodoc.getImportedOBODocs()) {
            Frame hf = tdoc.getHeaderFrame();
            if (hf == null) {
                continue;
View Full Code Here

TOP

Related Classes of org.obolibrary.oboformat.parser.XrefExpander$ReverseGenusDifferentiaExpansion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.