Package org.sbml.jsbml

Examples of org.sbml.jsbml.SBMLReader


   * Tries to validate biomodels file with id 228.
   */
  @Test public void checkConsistency228() throws IOException, XMLStreamException {
    String fileName = DATA_FOLDER + "/l2v4/BIOMD0000000228.xml";
   
    SBMLDocument doc = new SBMLReader().readSBML(fileName);
    try {
      int nbErrors = doc.checkConsistency();

      System.out.println("Found " + nbErrors + " errors on Biomodels 228 with the unit checking turned off.");

View Full Code Here


   * Tries to validate biomodels file with id 228.
   */
  @Test public void checkConsistency025() throws IOException, XMLStreamException {
    String fileName = DATA_FOLDER + "/l2v1/BIOMD0000000025.xml";
   
    SBMLDocument doc = new SBMLReader().readSBML(fileName);
    try {
      int nbErrors = doc.checkConsistency();

      System.out.println("Found " + nbErrors + " errors on Biomodels 025 with the unit checking turned off.");

View Full Code Here

  }
 
  /** @param args Expects a valid path to an SBML file. */
  public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    new JSBMLvisualizer((new SBMLReader()).readSBML(args[0]));
  }
View Full Code Here

   * Tries to use getNotesString on a model without a notes element.
   */
  @Test public void getNotesStringOnModel() throws IOException, XMLStreamException {
    String fileName = DATA_FOLDER + "/libsbml-test-data/l1v1-minimal.xml";
   
    SBMLDocument doc = new SBMLReader().readSBML(fileName);
        assertNotNull(doc.getModel().getNotesString());
    assertTrue(doc.getModel().getNotesString() == "");
  }
View Full Code Here

    // Getting the sbml file name from the arguments passed to the java program
    String fileName = args[0];

    // Reading the file and creating the jsbml objects structure
    SBMLDocument testDocument = new SBMLReader().readSBML(fileName);
   
    // Getting the model
    Model model = testDocument.getModel();
 
    // creating a variable to store all the ids of the reactions we want to keep
View Full Code Here

    // Getting the sbml file name from the arguments passed to the java program
    String fileName = args[0];

    // Reading the file and creating the jsbml objects structure
    SBMLDocument testDocument = new SBMLReader().readSBML(fileName);
   
    // Getting the model
    Model model = testDocument.getModel();
 
    // creating a variable to store all the ids of the reactions we want to keep
View Full Code Here

   * Tries to use getNotesString on a model without a notes element.
   */
  @Test public void getNotesStringOnModel() throws IOException, XMLStreamException {
    String fileName = DATA_FOLDER + "/libsbml-test-data/l1v1-minimal.xml";
   
    SBMLDocument doc = new SBMLReader().readSBML(fileName);
        assertNotNull(doc.getModel().getNotesString());
    assertTrue(doc.getModel().getNotesString() == "");
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.SBMLReader

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.