Class ControlsStateChangeDetailedMiner
java.lang.Object
org.biopax.paxtools.pattern.miner.MinerAdapter
org.biopax.paxtools.pattern.miner.ControlsStateChangeDetailedMiner
- All Implemented Interfaces:
Miner
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
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.miner.MinerAdapter
blacklist, description, idFetcher, idMap, name -
Constructor Summary
ConstructorsConstructorDescriptionConstructor that sets name and description. -
Method Summary
Modifier and TypeMethodDescriptionConstructs the pattern.Gets the header of the result file.Creates values for the result file columns.voidwriteResult(Map<BioPAXElement, List<Match>> matches, OutputStream out) 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.Methods inherited from class org.biopax.paxtools.pattern.miner.MinerAdapter
concat, createSIFInteraction, fetchIDs, getCellularLocations, getChain, getCompoundName, getDeltaCompartments, getDeltaModifications, getDescription, getGeneSymbol, getGeneSymbol, getIdentifiers, getIdMap, getMediatorLabels, getModifications, getModifications, getModificationTerm, getName, getPattern, getPositionInString, getPositionStart, getRelationType, getSourcePELabels, getTargetPELabels, getUniprotNameForHuman, getUniprotNameForHuman, isInhibition, labeledInactive, removeCommon, setBlacklist, setDescription, setIDFetcher, setIdMap, setName, sign, sign, toString, toStringSet, writeResultAsSIF, writeResultDetailed, writeSIFsUsingSIFFramework
-
Constructor Details
-
ControlsStateChangeDetailedMiner
public ControlsStateChangeDetailedMiner()Constructor that sets name and description.
-
-
Method Details
-
constructPattern
Constructs the pattern.- Specified by:
constructPatternin classMinerAdapter- Returns:
- pattern
-
writeResult
public void writeResult(Map<BioPAXElement, List<Match>> matches, OutputStream out) throws IOExceptionWrites 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 resultout- output stream- Throws:
IOException- when there's a problem writing to the output stream
-
getHeader
Gets the header of the result file.- Overrides:
getHeaderin classMinerAdapter- Returns:
- header
-
getValue
Creates values for the result file columns.- Overrides:
getValuein classMinerAdapter- Parameters:
m- current matchcol- current column- Returns:
- value of the given match at the given column
-