Uses of Interface
org.biopax.paxtools.model.Model
Packages that use Model
Package
Description
This package contains classes for implementing undoable editing the model.
This package contains various methods and algorithms for traversing and manipulating the model.
This package contains a tools for upgrading BioPAX L1 and L2 to L3.
This package contains the default BioPAX Model implementations.
This package contains classes that handle IO operations including reading and writing BioPAX from files and streams..
This package contains the interfaces that maps to the OWL classes defined in the BioPAX specification.
-
Uses of Model in org.biopax.paxtools.command
Constructors in org.biopax.paxtools.command with parameters of type ModelModifierConstructorDescriptionAbstractAddRemoveCommand(Model model, Set<BioPAXElement> bpes) AddCommand(Model model, Set<BioPAXElement> bpes) CommandManager(Model model) RemoveCommand(Model model, Set<BioPAXElement> bpes) -
Uses of Model in org.biopax.paxtools.controller
Methods in org.biopax.paxtools.controller that return ModelModifier and TypeMethodDescriptionCloner.clone(Set<BioPAXElement> toBeCloned) For each element from the 'toBeCloned' list, it creates a copy in the new model, setting all the data properties; however, object property values that refer to BioPAX elements not in 'toBeCloned' list are ignored.Cloner.clone(Model source, Set<BioPAXElement> toBeCloned) Deprecated.static ModelModelUtils.getAllChildren(BioPAXElement bpe, Filter<PropertyEditor>... filters) Deprecated.useFetcher.fetch(BioPAXElement, Model)instead (with Fetcher.nextStepFilter or without)static ModelModelUtils.getDirectChildren(BioPAXElement bpe) Gets direct children of a given BioPAX element and adds them to a new model.static ModelCuts the BioPAX model off other models and BioPAX objects by essentially performing write/read to/from OWL.Methods in org.biopax.paxtools.controller with parameters of type ModelModifier and TypeMethodDescriptionstatic voidModelUtils.addMissingEntityReference(Model model, SimplePhysicalEntity pe) For a non-generic simple physical entity (memberPhysicalEntity property is empty) that does not have entityReference property defined, this method generates and adds a new entity reference of proper type to both this entity and the model, and also copies names and xrefs from the source physical entity to the generated entity reference (UnificationXrefs are converted to RelationshipXref and then also deleted from the original entity.)static voidModelUtils.breakPathwayComponentCycle(Model model) Removes cyclic pathway inclusions, non-trivial infinite loops, in 'pathwayComponent' biopax property.Cloner.clone(Model source, Set<BioPAXElement> toBeCloned) Deprecated.useCloner.clone(Set)instead ('source' model was not used in previous versions)Completer.complete(Collection<BioPAXElement> elements, Model model) Deprecated.useCompleter.complete(Collection)instead (- model is never explicitly used there)<T extends BioPAXElement>
TCreates a copy of the BioPAX object with all its properties are the same, and also adds it to a model.voidFetcher.fetch(BioPAXElement element, Model model) Adds the element and all its children (found via traversing into object properties that pass all the filters defined in the Constructor, and also taking #isSkipSubPathways into account) to the target model.static voidModelUtils.fixControlled(Model model, Control control) In Paxtools v6, controlled property won't accept multiple values (due to the OWL functional property restriction, which we so far forgot of); so, let's make sure every Control has at most one controlled process.static voidModelUtils.fixDanglingInverseProperties(BioPAXElement bpe, Model model) Unlinks inverse properties of the BioPAX object from values the model does not have.static voidModelUtils.fixDanglingObjectProperties(BioPAXElement bpe, Model model) Unlinks object properties of the BioPAX object from values the model does not have.static Map<Class<? extends BioPAXElement>, Integer> ModelUtils.generateClassMetrics(Model model) Generates simple counts of different elements in the model.static <T extends BioPAXElement>
TA more strict, type-safe way to ask for a biopax object from the model, unlikegetByID(String).static <T extends BioPAXElement>
Set<T> ModelUtils.getRootElements(Model model, Class<T> filterClass) Finds "root" BioPAX objects that belong to a particular class (incl.PathAccessor.getValueFromModel(Model model) This method runs the path query on all the elements within the model.voidMerges the source models into target model.voidSimpleMerger.merge(Model target, Collection<? extends BioPAXElement> elements) Merges the elements and all their child biopax objects into the target model.voidSimpleMerger.merge(Model target, BioPAXElement source) Merges the source element (and its "downstream" dependents) into target model.voidMerges the source models into target model, one after another (in the order they are listed).static voidModelUtils.mergeEquivalentInteractions(Model model) Merges equivalent interactions (currently - Conversions only).static voidModelUtils.mergeEquivalentPhysicalEntities(Model model) Merges equivalent physical entities.static voidModelUtils.normalizeGeneric(Model model, PhysicalEntity generic) In all interactions and complexes, replace generic physical entities (having members) with their corresponding members; clone the parent object, if needed, for each member.static voidModelUtils.normalizeGenerics(Model model) Converts each generic simple (except a Complex) physical entity having memberPhysicalEntity property set into equivalent physical entity with a generic entity reference (have memberEntityReference values).static <T extends BioPAXElement>
Set<BioPAXElement> ModelUtils.removeObjectsIfDangling(Model model, Class<T> clazz) Iteratively removes "dangling" elements of given type and its sub-types, e.g.static voidModelUtils.replace(Model model, Map<? extends BioPAXElement, ? extends BioPAXElement> subs) Replaces BioPAX elements in the model with ones from the map, updates corresponding BioPAX object references.static voidModelUtils.replaceEquivalentFeatures(Model model) This method iterates over the features in a model and tries to find equivalent objects and merges them.<D extends BioPAXElement>
void<D extends BioPAXElement>
voidTraverse and visitVisitorall properties of the element.voidTraverserBilinked.traverse(BioPAXElement element, Model model) protected voidTraverser.traverseElements(BioPAXElement element, Model model, PropertyEditor<?, ?> editor, Set<?> valueSet) static voidModelUtils.updateUri(Model model, BioPAXElement el, String newUri) Replaces the URI of a BioPAX object in the Model using java reflection.protected abstract voidAbstractTraverser.visit(Object range, BioPAXElement domain, Model model, PropertyEditor<?, ?> editor) This is to implement a real action here: do something, return or even to continue (traverse) into the child (range) element's properties if it's a BioPAX object.voidAbstractTraverser.visit(BioPAXElement domain, Object range, Model model, PropertyEditor<?, ?> editor) Calls the protected abstract method visit that is to be implemented in subclasses of this abstract class.voidCloner.visit(BioPAXElement domain, Object range, Model targetModel, PropertyEditor editor) voidCompleter.visit(BioPAXElement domain, Object range, Model model, PropertyEditor editor) voidMerger.visit(BioPAXElement domain, Object range, Model model, PropertyEditor editor) Checks whether model contains bpe element, and if it does, then it updates the value of the equivalent element for bpe by using the specific editor.voidShallowCopy.visit(BioPAXElement domain, Object range, Model model, PropertyEditor editor) An implementation of this method should perform a BioPAX element and editor dependent operation on the model.voidVisitor.visit(BioPAXElement domain, Object range, Model model, PropertyEditor<?, ?> editor) An implementation of this method should perform a BioPAX element and editor dependent operation on the model.static ModelCuts the BioPAX model off other models and BioPAX objects by essentially performing write/read to/from OWL.Constructors in org.biopax.paxtools.controller with parameters of type ModelModifierConstructorDescriptionIntegrator(EditorMap editorMap, Model target, Model... sources) ReusedPEPHelper(Model model) -
Uses of Model in org.biopax.paxtools.converter
Methods in org.biopax.paxtools.converter that return ModelModifier and TypeMethodDescriptionConverts a BioPAX Model, Level 1 or 2, to the Level 3.Methods in org.biopax.paxtools.converter with parameters of type ModelModifier and TypeMethodDescriptionConverts a BioPAX Model, Level 1 or 2, to the Level 3.protected voidLevelUpgrader.preparePep2PEIDMap(Model model) protected voidLevelUpgrader.visit(Object value, BioPAXElement parent, Model newModel, PropertyEditor editor) -
Uses of Model in org.biopax.paxtools.impl
Classes in org.biopax.paxtools.impl that implement ModelMethods in org.biopax.paxtools.impl with parameters of type ModelModifier and TypeMethodDescription<T extends BioPAXElement>
T[]<T extends BioPAXElement>
T[]voidThis is default implementation that uses the id-based merging (SimpleMerger.merge(Model, Model...)) NOTE: some applications, such as those dealing with persistence/transactions or advanced BioPAX alignment/comparison algorithms (like the Patch), may have to implement and use a more specific method instead. -
Uses of Model in org.biopax.paxtools.io
Methods in org.biopax.paxtools.io that return ModelModifier and TypeMethodDescriptionBioPAXIOHandler.convertFromOWL(InputStream in) This method will read the OWL document given by the input stream and will convert it into an in memory BioPAX model.BioPAXIOHandlerAdapter.convertFromOWL(InputStream in) Reads a BioPAX model from an OWL file input stream (in) and converts it to a model.Methods in org.biopax.paxtools.io with parameters of type ModelModifier and TypeMethodDescriptionprotected voidBioPAXIOHandlerAdapter.bindValue(String valueString, PropertyEditor editor, BioPAXElement bpe, Model model) This method binds the value to the bpe.static StringSimpleIOHandler.convertToOwl(Model model) Serializes a (not too large) BioPAX model to the RDF/XML (OWL) formatted string.voidBioPAXIOHandler.convertToOWL(Model model, OutputStream outputStream) This method will write the model to the output stream.voidBioPAXIOHandler.convertToOWL(Model model, OutputStream outputStream, String... ids) This method will "excise" a new model from the given model that contains the objects with given ids and their dependents.voidBioPAXIOHandlerAdapter.convertToOWL(Model model, OutputStream outputStream, String... ids) Similar toBioPAXIOHandler.convertToOWL(org.biopax.paxtools.model.Model, java.io.OutputStream)(org.biopax.paxtools.model.Model, Object)}, but extracts a sub-model, converts it into BioPAX (OWL) format, and writes it into the outputStream.voidSimpleIOHandler.convertToOWL(Model model, OutputStream outputStream) Converts a model into BioPAX (OWL) format, and writes it into the outputStream.protected voidBioPAXIOHandlerAdapter.createAndAdd(Model model, String id, String localName) This method is called by the reader for each OWL instance in the OWL model.protected abstract voidBioPAXIOHandlerAdapter.createAndBind(Model model) This method provides a hook for the implementers of this abstract class to create objects themselves and bind the properties to the objects.protected voidSimpleIOHandler.createAndBind(Model model) -
Uses of Model in org.biopax.paxtools.model
Methods in org.biopax.paxtools.model that return ModelMethods in org.biopax.paxtools.model with parameters of type Model
Cloner.clone(Set)instead ('source' model was not used in previous versions)