All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.biopax.paxtools.examples.Macros Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package org.biopax.paxtools.examples;

import org.biopax.paxtools.io.BioPAXIOHandler;
import org.biopax.paxtools.io.SimpleIOHandler;
import org.biopax.paxtools.model.Model;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * Created with IntelliJ IDEA.
 * User: emek
 * Date: 10/8/13
 * Time: 3:00 PM
 * To change this template use File | Settings | File Templates.
 */
public class Macros

{
	public static Model open(String filename) throws FileNotFoundException
	{

		BioPAXIOHandler handler = new SimpleIOHandler();
		FileInputStream fileInputStream = new FileInputStream(filename);
		return handler.convertFromOWL(fileInputStream);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy