Examples of toBELLongForm()


Examples of org.openbel.framework.common.model.Term.toBELLongForm()

            try {
                List<BelTerm> terms = kAMStore.getSupportingTerms(kamNode);
                if (!terms.isEmpty()) {
                    BelTerm bt = terms.get(0);
                    Term t = BELParser.parseTerm(bt.getLabel());
                    label = displayLongForm ? t.toBELLongForm() : t
                            .toBELShortForm();
                }
            } catch (Exception e) {
                // TODO exception
            }
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

public class BELStatementParserTest {

    @Test
    public void testOneParam() {
        Term term = BELParser.parseTerm("proteinAbundance(HGNC:AKT1)");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testMultipleParams() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testMultipleParams() {
        Term term =
                BELParser
                        .parseTerm("list(HGNC:AKT1,HGNC:AKT2,GO:\"mito moto\")");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testMultipleInnerTerms() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testMultipleInnerTerms() {
        Term term =
                BELParser
                        .parseTerm("complexAbundance(proteinAbundance(HGNC:AKT1),proteinAbundance(HGNC:AKT2),abundance(CHEBI:TLH21))");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testFunctionThenParams() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testFunctionThenParams() {
        Term term =
                BELParser
                        .parseTerm("translocation(proteinAbundance(HGNC:DIABLO),GO:mitochondrion,GO:cytoplasm)");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testEmptyModifcation() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testEmptyModifcation() {
        Term term =
                BELParser
                        .parseTerm("proteinAbundance(HGNC:MAP3K1,modification())");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testAminoAcidModifcation() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testAminoAcidModifcation() {
        Term term =
                BELParser
                        .parseTerm("proteinAbundance(HGNC:MAP3K1,modification(P))");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testThreeLevelNesting() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testThreeLevelNesting() {
        Term term =
                BELParser
                        .parseTerm("complexAbundance(complexAbundance(proteinAbundance(HGNC:GABPA),proteinAbundance(HGNC:GABPB1)),complexAbundance(proteinAbundance(HGNC:GABPA),proteinAbundance(HGNC:GABPB1)))");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testNestedReaction() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testNestedReaction() {
        Term term =
                BELParser
                        .parseTerm("reaction(reactants(complexAbundance(proteinAbundance(HGNC:ESR1),proteinAbundance(PFAM:\"Ncor Family\"))),products(complexAbundance(proteinAbundance(PFAM:\"Ncoa Family\"),proteinAbundance(HGNC:ESR1))))");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testModificationTwoParams() {
        Term term =
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELLongForm()

    @Test
    public void testModificationTwoParams() {
        Term term =
                BELParser
                        .parseTerm("reaction(reactants(proteinAbundance(HGNC:AR)),products(proteinAbundance(HGNC:AR,proteinModification(A,K632))))");
        System.out.println(term.toBELLongForm());
    }

    @Test
    public void testCollidingParamWithFunction() {
        Term term = BELParser.parseTerm("proteinAbundance(MGI:t)");
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.