Package org.openbel.framework.core.compiler.expansion

Examples of org.openbel.framework.core.compiler.expansion.ModificationExpansionRule.expand()


        List<Statement> stmts;

        // valid substitution
        term = BELParser.parseTerm("p(HGNC:TNF,sub(V,599,E))");
        assertThat(rule.match(term), is(true));
        stmts = rule.expand(term);
        assertThat(stmts.size(), is(1));
        assertThat(stmts.get(0).toBELShortForm(),
                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,sub(V,599,E))"));

        // valid truncation
View Full Code Here


                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,sub(V,599,E))"));

        // valid truncation
        term = BELParser.parseTerm("p(HGNC:TNF,trunc(S,1099))");
        assertThat(rule.match(term), is(true));
        stmts = rule.expand(term);
        assertThat(stmts.size(), is(1));
        assertThat(stmts.get(0).toBELShortForm(),
                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,trunc(S,1099))"));

        // valid protein modification
View Full Code Here

                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,trunc(S,1099))"));

        // valid protein modification
        term = BELParser.parseTerm("p(HGNC:TNF,pmod(P,Y))");
        assertThat(rule.match(term), is(true));
        stmts = rule.expand(term);
        assertThat(stmts.size(), is(1));
        assertThat(stmts.get(0).toBELShortForm(),
                is("p(HGNC:TNF) hasModification p(HGNC:TNF,pmod(P,Y))"));

        // valid fusion
View Full Code Here

                is("p(HGNC:TNF) hasModification p(HGNC:TNF,pmod(P,Y))"));

        // valid fusion
        term = BELParser.parseTerm("p(HGNC:TNF,fus(HGNC:ABL1))");
        assertThat(rule.match(term), is(true));
        stmts = rule.expand(term);
        assertThat(stmts.size(), is(1));
        assertThat(stmts.get(0).toBELShortForm(),
                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,fus(HGNC:ABL1))"));

        // invalid based on outer function
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.