Class CommonStreamQuery

java.lang.Object
org.biopax.paxtools.query.algorithm.CommonStreamQuery

public class CommonStreamQuery extends Object
Searches common downstream or common upstream of a specified set of entities based on the given direction within the boundaries of a specified length limit. Takes a source set of entities, direction of the query and distance limit.
Author:
Ozgun Babur, Merve Cakir, Shatlyk Ashyralyev
  • Constructor Details

    • CommonStreamQuery

      public CommonStreamQuery(Set<Node> sourceNodeSet, Direction direction, int limit)
      Constructor for Common Stream with Selected Nodes.
      Parameters:
      sourceNodeSet - Source nodes
      direction - Common upstream or downstream. Cannot be bothstream
      limit - Search length limit
    • CommonStreamQuery

      public CommonStreamQuery(Collection<Set<Node>> sourceStateSet, Direction direction, int limit)
      Constructor for Common Stream with Entity States.
      Parameters:
      sourceStateSet - Collection of source node sets
      direction - Common upstream or downstream. Cannot be bothstream
      limit - Search length limit
  • Method Details

    • run

      public Set<GraphObject> run()
      Method to run the query.
      Returns:
      Common stream