Package org.gvt.util

Examples of org.gvt.util.PathwayHolder


      if (graph.isMechanistic())
      {
        graph.forgetLayout();
        Model model = graph.getBiopaxModel();
        PathwayHolder p = graph.getPathway();
        p.removeFromModel(model);

        main.getAllPathwayNames().remove(p.getName());
      }
    }
  }
View Full Code Here


    // Record layout
    graph.recordLayout();

    // Create updated graph
    PathwayHolder p = graph.getPathway();

    // Update pathway components if update needed

    if (withContent != null)
    {
      p.updateContentWith(withContent);
    }

    // Excise pathway

    BioPAXGraph newGraph = main.getRootGraph().excise(p);
View Full Code Here

    {
      BioPAXGraph graph = (BioPAXGraph) root;

      if (graph.isMechanistic() && graph.getPathway() == null)
      {
        PathwayHolder p = new PathwayHolder(getOwlModel());

        p.setName(adviceTabName(graph.getName()));

        graph.setName(p.getName());

        graph.setPathway(p);
        graph.registerContentsToPathway();
        allPathwayNames.add(p.getName());
      }
      else
      {
        graph.setName(graph.getPathway() != null ? graph.getPathway().getName() :
          adviceTabName(graph.getName()));
View Full Code Here

        return;
      }

      original.recordLayout();

      PathwayHolder p = original.getPathway();
      BioPAXGraph graph = main.getRootGraph().excise(p);
      graph.setPathway(null);

      String name = p.getName();

      // If the name contains a copy number at the end (like "pathway name (2)"), remove it

      if (name.indexOf(" ") > 0)
      {
View Full Code Here

  }

  public PathwayHolder getPathway()
  {
    if (pathway == null) return null;
    return new PathwayHolder(pathway);
  }
View Full Code Here

    {
      Map<String, PathwayHolder> map = new HashMap<String, PathwayHolder>();

      for (Pathway p : biopaxModel.getObjects(Pathway.class))
      {
        PathwayHolder ph = new PathwayHolder(p);
        map.put(ph.getName(), ph);
      }
      return map;
    }
    return null;
  }
View Full Code Here

  }

  public PathwayHolder getPathway()
  {
    if (pathway == null) return null;
    return new PathwayHolder(pathway);
  }
View Full Code Here

    {
      Map<String, PathwayHolder> map = new HashMap<String, PathwayHolder>();

      for (pathway p : biopaxModel.getObjects(pathway.class))
      {
        PathwayHolder ph = new PathwayHolder(p);
        map.put(ph.getName(), ph);
      }
      return map;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.gvt.util.PathwayHolder

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.