Class ControlsStateChangeDetailedMiner

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

public class ControlsStateChangeDetailedMiner extends MinerAdapter
Miner for the controls-state-change-detailed pattern. Different from the controls-state-change pattern, this miner also records the modifications of the controller, and gained and lost modifications of the changed gene.
Author:
Ozgun Babur
  • Constructor Details

    • ControlsStateChangeDetailedMiner

      public ControlsStateChangeDetailedMiner()
      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 modifications-of-A B gains-of-B loss-of-B", where A and B are gene symbols, and whitespace is tab. Modifications are comma separated.
      Parameters:
      matches - pattern search result
      out - output stream
      Throws:
      IOException - when there's a problem writing to the output stream
    • getHeader

      public String getHeader()
      Gets the header of the result file.
      Overrides:
      getHeader in class MinerAdapter
      Returns:
      header
    • getValue

      public String getValue(Match m, int col)
      Creates values for the result file columns.
      Overrides:
      getValue in class MinerAdapter
      Parameters:
      m - current match
      col - current column
      Returns:
      value of the given match at the given column