Package org.biopax.paxtools.model.level2

Examples of org.biopax.paxtools.model.level2.pathway


    return !biopaxModel.getObjects(org.biopax.paxtools.model.level3.Pathway.class).isEmpty();
  }

  public String createGlobalPathway(String name)
  {
    Pathway p = biopaxModel.addNew(Pathway.class,
      "http://chisiobiopaxeditor/#" + System.currentTimeMillis());

    for (Interaction inter : biopaxModel.getObjects(Interaction.class))
    {
      p.addPathwayComponent(inter);
    }
    p.setDisplayName(makeUniquePathwayName(name));
    return p.getDisplayName();
  }
View Full Code Here


    return p.getDisplayName();
  }

  public String createPathway(String name, List<String> intids)
  {
    Pathway p = biopaxModel.addNew(Pathway.class,
      "http://chisiobiopaxeditor/#" + System.currentTimeMillis());

    for (Interaction inter : biopaxModel.getObjects(Interaction.class))
    {
      if (intids.contains(inter.getRDFId()))
      {
        p.addPathwayComponent(inter);
      }
    }
    p.setDisplayName(makeUniquePathwayName(name));
    return p.getDisplayName();
  }
View Full Code Here

TOP

Related Classes of org.biopax.paxtools.model.level2.pathway

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.