Package org.openbel.framework.common.protonetwork.model

Examples of org.openbel.framework.common.protonetwork.model.ProtoNetwork


     * @param networks
     */
    private void processDirectories(final File[] networks) {
        phaseOutput(format("=== %s ===", getApplicationName()));

        ProtoNetwork network = stage1(networks);
        Set<EquivalenceDataIndex> eqs = stage2();

        if (!eqs.isEmpty()) {
            network = stage3(network, eqs);
        }
View Full Code Here


            final String netPath = asPath(root, PROTO_NETWORK_FILENAME);
            final File networkBin = new File(netPath);
            nds.add(new BinaryProtoNetworkDescriptor(networkBin));
        }

        ProtoNetwork ret = p2.stage1Merger(nds);

        new File(artifactPath.getAbsolutePath() + "/merged").mkdirs();

        p2.stage4WriteEquivalentProtoNetwork(ret,
                artifactPath.getAbsolutePath() + "/merged");
View Full Code Here

     */
    private int stage3Parameter(final ProtoNetwork network,
            Set<EquivalenceDataIndex> equivalences, final StringBuilder bldr) {
        bldr.append("Equivalencing parameters");
        stageOutput(bldr.toString());
        ProtoNetwork ret = network;
        int ct = 0;
        try {
            ct = p2.stage3EquivalenceParameters(ret, equivalences);
            stageOutput("(" + ct + " equivalences)");
        } catch (IOException ioex) {
View Full Code Here

    private void reconstituteNetwork(final File file) {

        BinaryProtoNetworkDescriptor inputProtoNetworkDesc =
                new BinaryProtoNetworkDescriptor(file);
        ProtoNetworkExternalizer pne = new BinaryProtoNetworkExternalizer();
        ProtoNetwork global = null;

        try {
            global = pne.readProtoNetwork(inputProtoNetworkDesc);
        } catch (ProtoNetworkError e) {
            error(e.getUserFacingMessage());
View Full Code Here

     *
     * @param pn Proto-network input by user
     */
    private void processNetwork(final ProtoNetwork pn) {
        // Inject protein families
        ProtoNetwork pfamMerged = stage1(pn);
        // Inject named complexes
        ProtoNetwork ncMerged = stage2(pfamMerged);
        // Inject gene scaffolding
        ProtoNetwork geneMerged = stage3(ncMerged);
        // Inject homology knowledge
        ProtoNetwork orthoMerged = stage4(geneMerged);
        // Equivalence the network
        ProtoNetwork equived = stage5(orthoMerged);
        stage6(equived);
    }
View Full Code Here

        }
        stageOutput(bldr.toString());

        stageOutput("Compiling pruned protein families");
        t1 = currentTimeMillis();
        ProtoNetwork pfpn = p3.compile(pfDoc);
        t2 = currentTimeMillis();

        bldr.setLength(0);
        markTime(bldr, t1, t2);
        stageOutput(bldr.toString());
View Full Code Here

        bldr.append(" statements remain after pruning");
        stageOutput(bldr.toString());

        stageOutput("Compiling named complexes proto-network");
        t1 = currentTimeMillis();
        ProtoNetwork ncpn = p3.compile(ncDoc);
        t2 = currentTimeMillis();

        bldr.setLength(0);
        markTime(bldr, t1, t2);
        stageOutput(bldr.toString());
View Full Code Here

        bldr.append(" statements remain after pruning");
        stageOutput(bldr.toString());

        stageOutput("Compiling gene scaffolding proto-network");
        t1 = currentTimeMillis();
        ProtoNetwork gpn = p3.compile(gsDoc);
        t2 = currentTimeMillis();

        bldr.setLength(0);
        markTime(bldr, t1, t2);
        stageOutput(bldr.toString());
View Full Code Here

        }

        final Iterator<ResourceLocation> it = resources.iterator();

        final ResourceLocation first = it.next();
        final ProtoNetwork orthoMerge = pruneResource(pn, first);

        while (it.hasNext()) {
            final ResourceLocation resource = it.next();
            final ProtoNetwork opn = pruneResource(pn, resource);

            try {
                p3.merge(orthoMerge, opn);
            } catch (ProtoNetworkError e) {
                e.printStackTrace();
View Full Code Here

                .getProteinFamilyResource();

        final Document pfdoc = readResource(pfResource);
        p3.pruneFamilies(false, pfdoc, orthoPn);
        p3.inferFamilies(pfdoc, orthoPn);
        final ProtoNetwork pfpn = p3.compile(pfdoc);
        p3.merge(orthoPn, pfpn);

        final ResourceLocation ncResource = resourceIndex
                .getNamedComplexesResource();
        final Document ncdoc = readResource(ncResource);
        p3.pruneComplexes(false, ncdoc, orthoPn);
        final ProtoNetwork ncpn = p3.compile(ncdoc);
        p3.merge(orthoPn, ncpn);

        final ResourceLocation gsResource = resourceIndex
                .getGeneScaffoldingResource();
        final Document gsdoc = readResource(gsResource);
        p3.pruneGene(gsdoc, orthoPn);
        final ProtoNetwork gspn = p3.compile(gsdoc);
        p3.merge(orthoPn, gspn);
    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.protonetwork.model.ProtoNetwork

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.