001package org.biopax.paxtools.examples;
002
003import org.biopax.paxtools.io.BioPAXIOHandler;
004import org.biopax.paxtools.io.SimpleIOHandler;
005import org.biopax.paxtools.model.Model;
006
007import java.io.FileInputStream;
008import java.io.FileNotFoundException;
009
010/**
011 * Created with IntelliJ IDEA.
012 * User: emek
013 * Date: 10/8/13
014 * Time: 3:00 PM
015 * To change this template use File | Settings | File Templates.
016 */
017public class Macros
018
019{
020        public static Model open(String filename) throws FileNotFoundException
021        {
022
023                BioPAXIOHandler handler = new SimpleIOHandler();
024                FileInputStream fileInputStream = new FileInputStream(filename);
025                return handler.convertFromOWL(fileInputStream);
026        }
027
028}