Package org.openbel.framework.api.KamTestUtil

Examples of org.openbel.framework.api.KamTestUtil.TestKamNode


    public KamBuilder addNodes(final String... nodes) {
        if (hasItems(nodes)) {
            for (final String n : nodes) {
                final Term term = BELParser.parseTerm(n);
                final String bel = getBEL(term);
                knodes.put(bel, new TestKamNode(knodes.size(), term
                        .getFunctionEnum(), bel));
            }
        }

        return this;
View Full Code Here


    }

    public KamBuilder addEdges(final Edge... edges) {
        if (hasItems(edges)) {
            for (final Edge e : edges) {
                final TestKamNode subjectNode = knodes.get(e.subject);
                if (subjectNode == null) {
                    throw new IllegalStateException("Subject node does not exist, error on: " + e);
                }
                final TestKamNode objectNode = knodes.get(e.object);
                if (objectNode == null) {
                    throw new IllegalStateException("Object node does not exist, error on: " + e);
                }

                String bel = e.subject + " " + e.rel + " " + e.object;
View Full Code Here

            e.printStackTrace();
            fail(e.getMessage());
        }

        final TestKamNode[] testKamNodes = new TestKamNode[] {
                new TestKamNode(1, COMPLEX_ABUNDANCE, "complex(p(1), p(2))"),
                new TestKamNode(2, PROTEIN_ABUNDANCE, "p(1)"),
                new TestKamNode(3, PROTEIN_ABUNDANCE, "p(2)"),
                new TestKamNode(4, KINASE_ACTIVITY, "kin(p(2))"),
                new TestKamNode(5, BIOLOGICAL_PROCESS, "bp(3)")
        };

        final TestKamEdge[] testKamEdges =
                new TestKamEdge[] {
                        new TestKamEdge(1, testKamNodes[0], HAS_COMPONENT,
View Full Code Here

            fail(e.getMessage());
        }

        final TestKamNode[] testKamNodes =
                new TestKamNode[] {
                        new TestKamNode(1, GENE_ABUNDANCE, "geneAbundance(23)"),
                        new TestKamNode(2, RNA_ABUNDANCE, "rnaAbundance(23)"),
                        new TestKamNode(3, PROTEIN_ABUNDANCE,
                                "proteinAbundance(23)"),
                        new TestKamNode(
                                4,
                                COMPLEX_ABUNDANCE,
                                "complexAbundance(abundance(22),proteinAbundance(23))"),
                        new TestKamNode(5, CATALYTIC_ACTIVITY,
                                "catalyticActivity(proteinAbundance(23))"),
                        new TestKamNode(6, ABUNDANCE, "abundance(29)"),
                        new TestKamNode(7, ABUNDANCE, "abundance(22)"),
                        new TestKamNode(
                                8,
                                COMPOSITE_ABUNDANCE,
                                "compositeAbundance(abundance(22),abundance(29))"),
                        new TestKamNode(
                                9,
                                COMPLEX_ABUNDANCE,
                                "complexAbundance(abundance(22),proteinAbundance(28))"),
                        new TestKamNode(10, CATALYTIC_ACTIVITY,
                                "catalyticActivity(proteinAbundance(28))"),
                        new TestKamNode(11, PROTEIN_ABUNDANCE,
                                "proteinAbundance(28)"),
                        new TestKamNode(12, RNA_ABUNDANCE, "rnaAbundance(28)"),
                        new TestKamNode(13, GENE_ABUNDANCE, "geneAbundance(28)"),
                };

        final TestKamEdge[] testKamEdges =
                new TestKamEdge[] {
                        new TestKamEdge(1, testKamNodes[0], TRANSCRIBED_TO,
View Full Code Here

            e.printStackTrace();
            fail(e.getMessage());
        }

        final TestKamNode[] testKamNodes = new TestKamNode[] {
                new TestKamNode(1, COMPLEX_ABUNDANCE, "complex(p(1), p(2))"),
                new TestKamNode(2, PROTEIN_ABUNDANCE, "p(1)"),
                new TestKamNode(3, PROTEIN_ABUNDANCE, "p(2)"),
                new TestKamNode(4, KINASE_ACTIVITY, "kin(p(2))"),
                new TestKamNode(5, BIOLOGICAL_PROCESS, "bp(3)")
        };

        final TestKamEdge[] testKamEdges =
                new TestKamEdge[] {
                        new TestKamEdge(1, testKamNodes[0], HAS_COMPONENT,
View Full Code Here

TOP

Related Classes of org.openbel.framework.api.KamTestUtil.TestKamNode

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.