Class DirectedRelationMiner

java.lang.Object
org.biopax.paxtools.pattern.miner.MinerAdapter
org.biopax.paxtools.pattern.miner.DirectedRelationMiner
All Implemented Interfaces:
Miner

public class DirectedRelationMiner extends MinerAdapter
Miner for the directed relations between proteins.
Author:
Ozgun Babur
  • Constructor Details

    • DirectedRelationMiner

      public DirectedRelationMiner()
      Constructor that sets name and description.
  • Method Details

    • constructPattern

      public Pattern constructPattern()
      Constructs the pattern.
      Specified by:
      constructPattern in class MinerAdapter
      Returns:
      pattern
    • writeResult

      public void writeResult(Map<BioPAXElement,List<Match>> matches, OutputStream out) throws IOException
      Writes the result as "A B", where A and B are gene symbols, and whitespace is tab.
      Parameters:
      matches - pattern search result
      out - output stream
      Throws:
      IOException - when there's a problem writing to the output stream
    • getHeader

      public String getHeader()
      Sets header of the output.
      Overrides:
      getHeader in class MinerAdapter
      Returns:
      header
    • getSourceLabel

      public String getSourceLabel()
    • getTargetLabel

      public String getTargetLabel()
    • getMediatorLabels

      public String[] getMediatorLabels()
      Description copied from class: MinerAdapter
      If a SIF miner wants to tell which essential BioPAX elements mediated this relation, then they need to override this method and pass the labels of elements.
      Overrides:
      getMediatorLabels in class MinerAdapter
      Returns:
      labels of elements to collect publication refs